- cupy.nanvar(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False)[source]#
Returns the variance along an axis ignoring NaN values.
a (cupy.ndarray) – Array to compute variance.
axis (int) – Along which axis to compute variance. The flattened array is used by default.
dtype – Data type specifier.
out (cupy.ndarray) – Output array.
keepdims (bool) – If
True, the axis is remained as an axis of size one.
The variance of the input array along the axis.
- Return type