Skip to contents

Elementwise maximum of two mlx arrays

Usage

mlx_maximum(x, y)

Arguments

x, y

mlx arrays or objects coercible with as_mlx().

Value

An mlx array containing the elementwise maximum.

See also

Examples

mlx_maximum(1:3, c(3, 2, 1))
#> mlx array [3]
#>   dtype: float32
#>   device: gpu
#>   values:
#> [1] 3 2 3