Open kaushikcfd opened 2 years ago
I think a canned implementation in terms of where
s makes sense, though perhaps not with pressing urgency. The main reason to me would be that select
could boil down to $\log(n)$ actually executed ternaries as opposed to $n$.
Should we support
np.select
? It's a bit controversial because one could chainnp.where
to emulatenp.select
, but I thought this would be a cleaner way to implement https://github.com/inducer/meshmode/issues/355.