Broadcast an array to a new shape
mlx_broadcast_to.Rdmlx_broadcast_to() mirrors mlx.core.broadcast_to(),
repeating singleton dimensions without copying data.
Arguments
- x
- An mlx array. 
- shape
- Integer vector describing the broadcasted shape. 
- device
- Execution target: supply - "gpu",- "cpu", or an- mlx_streamcreated via- mlx_new_stream(). Default:- mlx_default_device().