Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
e3bcf635
Commit
e3bcf635
authored
Apr 02, 2018
by
Martin Reinecke
Browse files
add missing comparison operators
parent
560e8417
Pipeline
#26728
passed with stage
in 11 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/data_objects/distributed_do.py
View file @
e3bcf635
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment