bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _nanfunctions_impl / _nan_mask
function
numpy.lib._nanfunctions_impl:_nan_mask
source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_nanfunctions_impl.py :43
Signature
def _nan_mask ( a , out = None ) Parameters
a: array-likeInput array with at least 1 dimension.
out: ndarray, optionalAlternate output array in which to place the result. The default is
None; if provided, it must have the same shape as the expected output and will prevent the allocation of a new array.
Returns
y: bool ndarray or TrueA bool array where
np.nanpositions are marked withFalseand other positions are marked withTrue. If the type ofais such that it can't possibly containnp.nan, returnsTrue.
Aliases
-
numpy.lib._nanfunctions_impl._nan_mask