Skip to content

Commit 5a3079e

Browse files
prod array method (#1033)
1 parent 315a135 commit 5a3079e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

dpnp/dpnp_array.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,19 @@ def ndim(self):
598598
# 'newbyteorder',
599599
# 'nonzero',
600600
# 'partition',
601-
# 'prod',
601+
602+
def prod(self, axis=None, dtype=None, out=None, keepdims=False, initial=None, where=True):
603+
"""
604+
Returns the prod along a given axis.
605+
606+
.. seealso::
607+
:obj:`dpnp.prod` for full documentation,
608+
:meth:`dpnp.dparray.sum`
609+
610+
"""
611+
612+
return dpnp.prod(self, axis, dtype, out, keepdims, initial, where)
613+
602614
# 'ptp',
603615
# 'put',
604616
# 'ravel',

tests/skipped_tests_gpu.tbl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,9 +1065,6 @@ tests/third_party/cupy/math_tests/test_rounding.py::TestRoundExtreme_param_6_{de
10651065
tests/third_party/cupy/math_tests/test_rounding.py::TestRounding::test_fix
10661066
tests/third_party/cupy/math_tests/test_rounding.py::TestRounding::test_rint
10671067
tests/third_party/cupy/math_tests/test_rounding.py::TestRounding::test_rint_negative
1068-
tests/third_party/cupy/math_tests/test_sumprod.py::TestSumprod::test_prod_all
1069-
tests/third_party/cupy/math_tests/test_sumprod.py::TestSumprod::test_prod_axis
1070-
tests/third_party/cupy/math_tests/test_sumprod.py::TestSumprod::test_prod_dtype
10711068
tests/third_party/cupy/math_tests/test_sumprod.py::TestSumprod::test_sum_all_transposed
10721069
tests/third_party/cupy/math_tests/test_sumprod.py::TestSumprod::test_sum_all_transposed2
10731070
tests/third_party/cupy/math_tests/test_sumprod.py::TestSumprod::test_sum_axes

0 commit comments

Comments
 (0)