Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

cumprod

Compute the cumulative product of a sequence.

Arguments

  • sequence - The sequence to operate.

Returns

  • Array<T> - The cumulative product of sequence.

Fully qualified path: alexandria_numeric::cumprod::cumprod

pub fn cumprod<T, +Mul<T>, +Copy<T>, +Drop<T>>(mut sequence: Span<T>) -> Array<T>