Row sums for mlx arrays
Usage
rowSums(x, ...)
# Default S3 method
rowSums(x, na.rm = FALSE, dims = 1, ...)
# S3 method for class 'mlx'
rowSums(x, na.rm = FALSE, dims = 1, ...)Examples
x <- mlx_matrix(1:6, 3, 2)
rowSums(x)
#> mlx array [3]
#> dtype: float32
#> device: gpu
#> values:
#> [1] 5 7 9