You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/statistical_functions.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ def cumulative_prod(
28
28
Parameters
29
29
----------
30
30
x: array
31
-
input array. Should have a numeric data type.
31
+
input array. Should have one or more dimensions (axes). Should have a numeric data type.
32
32
axis: Optional[int]
33
33
axis along which a cumulative product must be computed. If ``axis`` is negative, the function must determine the axis along which to compute a cumulative product by counting from the last dimension.
34
34
@@ -58,6 +58,8 @@ def cumulative_prod(
58
58
Notes
59
59
-----
60
60
61
+
- When ``x`` is a zero-dimensional array, behavior is unspecified and thus implementation-defined.
62
+
61
63
**Special Cases**
62
64
63
65
For both real-valued and complex floating-point operands, special cases must be handled as if the operation is implemented by successive application of :func:`~array_api.multiply`.
0 commit comments