Get length of MLX array
Usage
# S3 method for class 'mlx'
length(x)Arguments
- x
An mlx array, or an R array/matrix/vector that will be converted via
as_mlx().
Examples
x <- mlx_matrix(1:6, 2, 3)
length(x)
#> [1] 6
Get length of MLX array
# S3 method for class 'mlx'
length(x)An mlx array, or an R array/matrix/vector that will be converted via as_mlx().
x <- mlx_matrix(1:6, 2, 3)
length(x)
#> [1] 6