dpnp.prod
- dpnp.prod(x1, axis=None, dtype=None, out=None, keepdims=False, initial=None, where=True)[source]
Calculate product of array elements over a given axis.
For full documentation refer to
numpy.prod
.Limitations
Parameter
where
is unsupported. Input array data types are limited by DPNP Data types.Examples
>>> import dpnp as np >>> np.prod(np.array([[1, 2], [3, 4]])) 24 >>> np.prod(np.array([1, 2])) 2