- cupy.nancumsum(a, axis=None, dtype=None, out=None)[source]#
Returns the cumulative sum of an array along a given axis treating Not a Numbers (NaNs) as zero.
a (cupy.ndarray) – Input array.
axis (int) – Axis along which the cumulative sum is taken. If it is not specified, the input is flattened.
dtype – Data type specifier.
out (cupy.ndarray) – Output array.
The result array.
- Return type