Elementwise maximum of two mlx arrays
Arguments
- x
An mlx array, or an R array/matrix/vector that will be converted via
as_mlx().- y
A second array, with the same accepted types as
x.
Examples
mlx_maximum(1:3, c(3, 2, 1))
#> mlx array [3]
#> dtype: float32
#> values:
#> [1] 3 2 3