numpy.copyto(dst, src, casting='same_kind', where=None)
Copies values from one array to another, broadcasting as necessary.
Raises a TypeError if the casting
rule is violated, and if where
is provided, it selects which elements to copy.
New in version 1.7.0.
Parameters: |
dst : ndarray The array into which values are copied. src : array_like The array from which values are copied. casting : {‘no’, ‘equiv’, ‘safe’, ‘same_kind’, ‘unsafe’}, optional Controls what kind of data casting may occur when copying.
where : array_like of bool, optional A boolean array which is broadcasted to match the dimensions of |
---|
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.copyto.html