Extends base row() and col() so they also accept mlx arrays. When
as.factor = FALSE the result stays on the MLX backend, avoiding
round-tripping through base R.
Usage
row(x, as.factor = FALSE)
# Default S3 method
row(x, as.factor = FALSE)
# S3 method for class 'mlx'
row(x, as.factor = FALSE)
col(x, as.factor = FALSE)
# Default S3 method
col(x, as.factor = FALSE)
# S3 method for class 'mlx'
col(x, as.factor = FALSE)