bundles / numpy 2.4.3 / numpy / lib / _nanfunctions_impl / _copyto
function
numpy.lib._nanfunctions_impl:_copyto
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