Printing an array only evaluates it if it is of small size (less than 100 elements and 2 dimensions)
Usage
# S3 method for class 'mlx'
print(x, ...)Arguments
- x
An mlx array, or an R array/matrix/vector that will be converted via
as_mlx().- ...
Additional arguments (ignored)
Examples
x <- mlx_matrix(1:4, 2, 2)
print(x)
#> mlx array [2 x 2]
#> dtype: float32
#> device: gpu
#> values:
#> [,1] [,2]
#> [1,] 1 3
#> [2,] 2 4