Return the minimum along a given axis. .. note:: Currently, it only supports non-``None`` values for ``axis`` and the default values for ``out`` and ``keepdims``. .. seealso:: :meth:`cupy.ndarray.prod`, :meth:`numpy.ndarray.prod`
(self, axis=None, dtype=None, out=None, keepdims=None)
| 591 | 'DistributedArray currently does not support partition.') |
| 592 | |
| 593 | def prod(self, axis=None, dtype=None, out=None, keepdims=None): |
| 594 | """Return the minimum along a given axis. |
| 595 | |
| 596 | .. note:: |
| 597 | |
| 598 | Currently, it only supports non-``None`` values for ``axis`` and |
| 599 | the default values for ``out`` and ``keepdims``. |
| 600 | |
| 601 | .. seealso:: |
| 602 | :meth:`cupy.ndarray.prod`, :meth:`numpy.ndarray.prod` |
| 603 | """ |
| 604 | if dtype is None: |
| 605 | return self.__cupy_override_reduction_kernel__( |
| 606 | _math.prod_auto_dtype, axis, dtype, out, keepdims) |
| 607 | else: |
| 608 | return self.__cupy_override_reduction_kernel__( |
| 609 | _math.prod_keep_dtype, axis, dtype, out, keepdims) |
| 610 | |
| 611 | def ptp(self, *args, **kwargs): |
| 612 | """Not supported.""" |
no test coverage detected