Convert MLX array to R vector
as.vector.mlx.RdConverts an MLX array to an R vector. For multi-dimensional arrays (2+ dimensions), a warning is issued and the array is flattened in column-major order (R's default).
Usage
# S3 method for class 'mlx'
as.vector(x, mode = "any")Arguments
- x
- An mlx array. 
- mode
- Character string specifying the type of vector to return (passed to - base::as.vector())