diff --git a/pyopencl/array.py b/pyopencl/array.py index 4107feac0b056caf7bbfe61f6b0fe06c1c0e4e9d..7c290fdb52c63b93746d21d35419df9fd2d2797c 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -1091,7 +1091,7 @@ class Array(object): self._div(self, self, other)) else: if other == 1: - return self.copy() + return self else: # cast 1/other to float32, as float64 might not be available... self.add_event(