Construct coordinate arrays from input vectors
mlx_meshgrid.Rdmlx_meshgrid() mirrors mlx.core.meshgrid(),
returning coordinate arrays suitable for vectorised evaluation on MLX devices.
Usage
mlx_meshgrid(..., sparse = FALSE, indexing = c("xy", "ij"), device = NULL)Arguments
- ...
- One or more arrays (or a single list) convertible via - as_mlx()representing coordinate vectors.
- sparse
- Logical flag producing broadcast-friendly outputs when - TRUE.
- indexing
- Either - "xy"(Cartesian) or- "ij"(matrix) indexing.
- device
- Execution target: supply - "gpu",- "cpu", or an- mlx_streamcreated via- mlx_new_stream(). Default:- mlx_default_device().