diff --git a/arraycontext/impl/pyopencl.py b/arraycontext/impl/pyopencl.py index 1f632a5716944006a03410be7cbc688b2447d7c3..1906509dcdf1a2b47154971781148a5c3f4a094f 100644 --- a/arraycontext/impl/pyopencl.py +++ b/arraycontext/impl/pyopencl.py @@ -129,6 +129,10 @@ class PyOpenCLFakeNumpyNamespace(BaseFakeNumpyNamespace): queue=self._array_context.queue), *arrays) + def reshape(self, a, newshape): + import pyopencl.array as cla + return cla.reshape(a, newshape) + def concatenate(self, arrays, axis=0): import pyopencl.array as cla return cla.concatenate(