{ } Raw JSON

bundles / numpy 2.4.4 / numpy / ma / core / cumprod

function

numpy.ma.core:cumprod

source: /numpy/ma/core.py :7063

Signature

def   cumprod ( self axis = None dtype = None out = None )

Summary

Return the cumulative product of the array elements over the given axis.

Extended Summary

Masked values are set to 1 internally during the computation. However, their position is saved, and the result will be masked at the same locations.

Refer to numpy.cumprod for full documentation.

Notes

The mask is lost if out is not a valid MaskedArray !

Arithmetic is modular when using integer types, and no error is raised on overflow.

See also

numpy.cumprod

equivalent function

numpy.ndarray.cumprod

corresponding function for ndarrays

Aliases

  • numpy.ma.cumprod