You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we support np.select? It's a bit controversial because one could chain np.where to emulate np.select, but I thought this would be a cleaner way to implement inducer/meshmode#355.
I think a canned implementation in terms of wheres 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$.
Activity
inducer commentedon Oct 14, 2022
I think a canned implementation in terms of$\log(n)$ actually executed ternaries as opposed to $n$ .
wheres makes sense, though perhaps not with pressing urgency. The main reason to me would be thatselectcould boil down to