cupynumeric.put#
- cupynumeric.put( ) None #
Replaces specified elements of an array with given values. The indexing works as if the target array is first flattened.
- Parameters:
a (array_like) – Array to put data into
indices (array_like) – Target indices, interpreted as integers. WARNING: In case there are repeated entries in the indices array, Legate doesn’t guarantee the order in which values are updated.
values (array_like) – Values to place in a at target indices. If values array is shorter than indices, it will be repeated as necessary.
mode ({'raise', 'wrap', 'clip'}, optional) – Specifies how out-of-bounds indices will behave. ‘raise’ : raise an error. ‘wrap’ : wrap around. ‘clip’ : clip to the range.
See also
- Availability:
Multiple GPUs, Multiple CPUs