From f2e74949a72942d6c85199706189b06aaf5ba8e7 Mon Sep 17 00:00:00 2001
From: Martin Weigert <mweigert@mpi-cbg.de>
Date: Tue, 12 Feb 2019 17:55:08 +0100
Subject: [PATCH] Remove unnecessary copy in inplace dision

---
 pyopencl/array.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/array.py b/pyopencl/array.py
index 4107feac..7c290fdb 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(
-- 
GitLab