Skip to content

Commit 16b38d3

Browse files
committed
Add a comment about cumulative_sum and 0-D inputs
1 parent c4587a4 commit 16b38d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

array_api_strict/_statistical_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def cumulative_sum(
3333
if dtype is None:
3434
dtype = x.dtype
3535

36+
# TODO: The standard is not clear about what should happen when x.ndim == 0.
3637
if axis is None:
3738
if x.ndim > 1:
3839
raise ValueError("axis must be specified in cumulative_sum for more than one dimension")

0 commit comments

Comments
 (0)