diff --git a/pyopencl/array.py b/pyopencl/array.py index 97dc28dc405fd23941c4a80da6111806205639fc..2fafb6599a7a867ea3b752766f9c4694790d4ab2 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -339,6 +339,7 @@ class Array: .. automethod :: __sub__ .. automethod :: __iadd__ .. automethod :: __isub__ + .. automethod :: __pos__ .. automethod :: __neg__ .. automethod :: __mul__ .. automethod :: __div__ @@ -1102,6 +1103,9 @@ class Array: self._axpbz(self, self.dtype.type(1), self, -other) return self + def __pos__(self): + return self + def __neg__(self): result = self._new_like_me() result.add_event(self._axpbz(result, -1, self, 0))