@@ -271,6 +271,9 @@ def cumulative_sum(
271
271
axis (Optional[int, Tuple[int, ...]]):
272
272
axis along which cumulative sum must be computed.
273
273
If `None`, the sum is computed over the entire array.
274
+ If `x` is a one-dimensional array, providing an `axis` is optional;
275
+ however, if `x` has more than one dimension, providing an `axis`
276
+ is required.
274
277
Default: `None`.
275
278
dtype (Optional[dtype]):
276
279
data type of the returned array. If `None`, the default data
@@ -342,6 +345,9 @@ def cumulative_prod(
342
345
axis (Optional[int, Tuple[int, ...]]):
343
346
axis along which cumulative product must be computed.
344
347
If `None`, the product is computed over the entire array.
348
+ If `x` is a one-dimensional array, providing an `axis` is optional;
349
+ however, if `x` has more than one dimension, providing an `axis`
350
+ is required.
345
351
Default: `None`.
346
352
dtype (Optional[dtype]):
347
353
data type of the returned array. If `None`, the default data
@@ -414,6 +420,9 @@ def cumulative_logsumexp(
414
420
axis (Optional[int, Tuple[int, ...]]):
415
421
axis along which cumulative logsumexp must be computed.
416
422
If `None`, the logsumexp is computed over the entire array.
423
+ If `x` is a one-dimensional array, providing an `axis` is optional;
424
+ however, if `x` has more than one dimension, providing an `axis`
425
+ is required.
417
426
Default: `None`.
418
427
dtype (Optional[dtype]):
419
428
data type of the returned array. If `None`, the default data
0 commit comments