`p=cumprod(x)`

Inputs | |

`x` |
A two-dimensional array of real of complex numbers. |

Outputs | |

`p` |
An array of the same size as the input. |

The cumulative product of an element in a two-dimensional array is defined to be the product of all the elements above it in its column and itself.

The cumulative product of an element in a row is defined to be the product of all the elements to the left of it in the row and itself.

`cumprod`

returns an array of the same size as the input, and
each element of the output array is the cumulative product of
corresponding element of the input array.