multik
multik copied to clipboard
Comparison and getting boolean mask
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!