ndarray.put(indices, values, mode='raise')
Set a.flat[n] = values[n]
for all n
in indices.
Refer to numpy.put
for full documentation.
See also
numpy.put
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.ndarray.put.html