MLX arrays with other than 2 dimensions are converted to a 1 column matrix, with a warning.
Usage
# S3 method for class 'mlx'
as.matrix(x, ...)Examples
x <- mlx_matrix(1:4, 2, 2)
as.matrix(x)
#> [,1] [,2]
#> [1,] 1 3
#> [2,] 2 4
MLX arrays with other than 2 dimensions are converted to a 1 column matrix, with a warning.
# S3 method for class 'mlx'
as.matrix(x, ...)x <- mlx_matrix(1:4, 2, 2)
as.matrix(x)
#> [,1] [,2]
#> [1,] 1 3
#> [2,] 2 4