Navigation

Operators and Keywords

Function List:

C++ API

: cumprod (x)
: cumprod (x, dim)

Cumulative product of elements along dimension dim.

If dim is omitted, it defaults to the first non-singleton dimension. For example:

cumprod ([1, 2; 3, 4; 5, 6])
  ⇒  1   2
      3   8
     15  48

See also: prod, cumsum.

Package: octave