mlx_rs::ops

Function maximum

Source
pub fn maximum(a: impl AsRef<Array>, b: impl AsRef<Array>) -> Result<Array>
Expand description

Element-wise maximum.

Take the element-wise max of two arrays with numpy-style broadcasting semantics. Either or both input arrays can also be scalars.