Next: runsum, Previous: runord, Up: Internal Routines [Contents][Index]
runprod(x [, axis])
Running product of numerical x
along the indicated
axis
. If axis
is absent, then x
is treated as if it were one-dimensional. In the result, each next
number in the direction of the selected axis
is equal to
the corresponding number from x
times the previous number
in the selected axis
. The first number in the selected
axis
is just copied to the result.
For example, if x
is equal to [2,4,3]
, then
runprod(
will yield x
)[2,8,24]
.
See also: runsum