Skip to content

Commit 5287fb8

Browse files
__neg__ (unary -) for array (#1107)
1 parent 224a683 commit 5287fb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpnp/dpnp_array.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ def __mul__(self, other):
208208
def __ne__(self, other):
209209
return dpnp.not_equal(self, other)
210210

211-
# '__neg__',
211+
def __neg__(self):
212+
return dpnp.negative(self)
213+
212214
# '__new__',
213215
# '__or__',
214216
# '__pos__',

0 commit comments

Comments
 (0)