Commit e3bcf635 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

add missing comparison operators

parent 560e8417
Pipeline #26728 passed with stage
in 11 minutes and 9 seconds
......@@ -236,12 +236,24 @@ class data_object(object):
def __ipow__(self, other):
return self._binary_helper(other, op='__ipow__')
def __eq__(self, other):
return self._binary_helper(other, op='__eq__')
def __lt__(self, other):
return self._binary_helper(other, op='__lt__')
def __le__(self, other):
return self._binary_helper(other, op='__le__')
def __ne__(self, other):
return self._binary_helper(other, op='__ne__')
def __eq__(self, other):
return self._binary_helper(other, op='__eq__')
def __ge__(self, other):
return self._binary_helper(other, op='__ge__')
def __gt__(self, other):
return self._binary_helper(other, op='__gt__')
def __neg__(self):
return data_object(self._shape, -self._data, self._distaxis)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment