bundles / numpy latest / numpy / lib / _nanfunctions_impl / _copyto
function
numpy.lib._nanfunctions_impl:_copyto
source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_nanfunctions_impl.py:115
Signature
def _copyto(a, val, mask)Summary
Replace values in a with NaN where mask is True. This differs from copyto in that it will deal with the case where a is a numpy scalar.
Parameters
a: ndarray or numpy scalarArray or numpy scalar some of whose values are to be replaced by val.
val: numpy scalarValue used a replacement.
mask: ndarray, scalarBoolean array. Where True the corresponding element of
ais replaced byval. Broadcasts.
Returns
res: ndarray, scalarArray with elements replaced or scalar
val.
Aliases
numpy.lib._nanfunctions_impl._copyto