Qu

cumprod

Builtin index · Core maths

cumprod(x)

Input: x · Output: no output

What it is

Running product, same type/length as x (cumprod([1, 2, 3, 4]) is [1, 2, 6, 24]); a Signal stays a Signal; a Mat is read column-major and comes back as a Vec, exactly like cumsum. NaN propagates from where it appears. axis= is an error.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
cumprod(x)
x Signal, Mat, or Vecnot documented yet
not documented yetNaN propagates from where it appears. axis= is an error.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.