numpy.ma.masked_array.product

method

masked_array.product(self, axis=None, dtype=None, out=None, keepdims=<no value>) [source]

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

Masked elements are set to 1 internally for computation.

Refer to numpy.prod for full documentation.

See also

numpy.ndarray.prod

corresponding function for ndarrays

numpy.prod

equivalent function

Notes

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

© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.ma.masked_array.product.html