numpy.ma.MaskedArray.cumprod#
method
- ma.MaskedArray.cumprod(axis=None,dtype=None,out=None)[source]#
Return the cumulative product of the array elements over the given axis.
Masked values are set to 1 internally during the computation.However, their position is saved, and the result will be masked atthe same locations.
Refer to
numpy.cumprodfor full documentation.See also
numpy.ndarray.cumprodcorresponding function for ndarrays
numpy.cumprodequivalent function
Notes
The mask is lost ifout is not a valid MaskedArray !
Arithmetic is modular when using integer types, and no error israised on overflow.
On this page