Skip to main content

cumulative

Function cumulative 

Source
pub fn cumulative<T: Element, const N: usize>(
    x: &[T],
    shape: &[usize],
    axis: usize,
    reverse: bool,
    op: CumulativeOp,
) -> [T; N]
Expand description

A cumulative reduction of x (of shape shape) along axis, in the order XLA combines the elements on CPU (ruxla_kernels::array::cumulative).

ยงPanics

Panics if x does not have N elements or shape does not fit it.