From 62687fab5d2aac6c50ca518cabc9d8cdff257b57 Mon Sep 17 00:00:00 2001 From: Matthias Diener <mdiener@illinois.edu> Date: Tue, 1 Jun 2021 12:13:39 -0500 Subject: [PATCH] implement sin() --- arraycontext/impl/pytato.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arraycontext/impl/pytato.py b/arraycontext/impl/pytato.py index e2a76fe..a221351 100644 --- a/arraycontext/impl/pytato.py +++ b/arraycontext/impl/pytato.py @@ -102,6 +102,11 @@ class _PytatoFakeNumpyNamespace(BaseFakeNumpyNamespace): from meshmode.dof_array import obj_or_dof_array_vectorize return obj_or_dof_array_vectorize(pt.exp, x) + def sin(self, x): + import pytato as pt + from meshmode.dof_array import obj_or_dof_array_vectorize + return obj_or_dof_array_vectorize(pt.sin, x) + def reshape(self, a, newshape): import pytato as pt -- GitLab