From 53f832a786c02de920ab7dd0ea0469b07c26374b Mon Sep 17 00:00:00 2001
From: Thomas Gibson <gibsonthomas1120@hotmail.com>
Date: Fri, 21 May 2021 22:25:05 -0500
Subject: [PATCH] Add actx.np.reshape

---
 arraycontext/impl/pyopencl.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arraycontext/impl/pyopencl.py b/arraycontext/impl/pyopencl.py
index 1f632a5..1906509 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(
-- 
GitLab