pub fn cummax<B: Backend, T: Num>(
x: &Array<B, T>,
axis: usize,
reverse: bool,
) -> Array<B, T>Expand description
The cumulative maximum along axis (lax.cummax), from the end with
reverse. NaN propagates.
ยงExamples
use ruxla_core::{Array, Native, lax};
let x = Array::<Native, f32>::from_vec(vec![1.0, 3.0, 2.0, 5.0], [4]);
assert_eq!(lax::cummax(&x, 0, false).to_vec(), [1.0, 3.0, 3.0, 5.0]);