diff --git a/arraycontext/impl/pyopencl/fake_numpy.py b/arraycontext/impl/pyopencl/fake_numpy.py index 4e9d48be..33b0c056 100644 --- a/arraycontext/impl/pyopencl/fake_numpy.py +++ b/arraycontext/impl/pyopencl/fake_numpy.py @@ -269,6 +269,11 @@ def rec_equal(x, y): return result + def astype(self, a, dtype): + return rec_map_array_container( + lambda ary: ary.astype(dtype, queue=self._array_context.queue), + a) + # }}}