Skip to content
Snippets Groups Projects
Commit 4a6d95ea authored by Matthias Diener's avatar Matthias Diener
Browse files

pt.where (not working)

parent 62687fab
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,11 @@ class _PytatoFakeNumpyNamespace(BaseFakeNumpyNamespace):
from meshmode.dof_array import obj_or_dof_array_vectorize_n_args
return obj_or_dof_array_vectorize_n_args(pt.minimum, x, y)
def where(self, criterion, then, else_):
import pytato as pt
from meshmode.dof_array import obj_or_dof_array_vectorize_n_args
return obj_or_dof_array_vectorize_n_args(pt.where, criterion, then, else_)
def sum(self, a, dtype=None):
import pytato as pt
if dtype not in [a.dtype, None]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment