Reshapes the MLX array to the specified dimensions. The total number of elements must remain the same.
Usage
# S3 method for class 'mlx'
dim(x) <- valueArguments
- x
An mlx array, or an R array/matrix/vector that will be converted via
as_mlx().- value
Integer vector of new dimensions