Row means for mlx arrays
Usage
rowMeans(x, ...)
# Default S3 method
rowMeans(x, na.rm = FALSE, dims = 1, ...)
# S3 method for class 'mlx'
rowMeans(x, na.rm = FALSE, dims = 1, ...)Examples
x <- mlx_matrix(1:6, 3, 2)
rowMeans(x)
#> mlx array [3]
#> dtype: float32
#> device: gpu
#> values:
#> [1] 2.5 3.5 4.5