multik icon indicating copy to clipboard operation
multik copied to clipboard

Comparison and getting boolean mask

Open ashutoshIITK opened this issue 2 years ago • 0 comments

I have an NDArray (say idmap1) and would like to compare it with a number to get a boolean mask (numpy boolean style), as shown below:

mask = ((idmap1 == 0) & (idmap2 != 1))
idmap1[mask] = idmap2[mask]

Is there a way to realize this using multik library? Thank you!

ashutoshIITK avatar Nov 17 '22 02:11 ashutoshIITK