cunumeric.place#
- cunumeric.place(arr: ndarray, mask: ndarray, vals: ndarray) None #
Change elements of an array based on conditional and input values.
- Parameters:
arr (array_like) – Array to put data into.
mask (array_like) – Mask array. Must have the same size as arr.
vals (1-D sequence) – Values to put into arr. Only the first N elements are used, where N is the number of True values in mask. If vals is smaller than N, it will be repeated, and if elements of a are to be masked, this sequence must be non-empty.
See also
- Availability:
Multiple GPUs, Multiple CPUs