- cupy.ptp(a, axis=None, out=None, keepdims=False)¶
Returns the range of values (maximum - minimum) along an axis.
The name of the function comes from the acronym for ‘peak to peak’.
When at least one element is NaN, the corresponding ptp value will be NaN.
The minimum of
a, along the axis if specified.
- Return type
When cuTENSOR accelerator is used, the output value might be collapsed for reduction axes that have one or more NaN elements.