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
c81c1a88
Commit
c81c1a88
authored
Mar 02, 2018
by
Martin Reinecke
Browse files
fix by Silvan
parent
103043d1
Pipeline
#25684
passed with stages
in 5 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty4/operators/linear_operator.py
View file @
c81c1a88
...
...
@@ -138,11 +138,10 @@ class LinearOperator(NiftyMetaBase()):
other
=
self
.
_toOperator
(
other
,
self
.
domain
)
return
SumOperator
.
make
([
self
,
other
],
[
False
,
True
])
# MR FIXME: this might be more complicated ...
def
__rsub__
(
self
,
other
):
from
.sum_operator
import
SumOperator
other
=
self
.
_toOperator
(
other
,
self
.
domain
)
return
SumOperator
.
make
(
other
,
self
,
[
False
,
True
])
return
SumOperator
.
make
(
[
other
,
self
]
,
[
False
,
True
])
@
abc
.
abstractproperty
def
capability
(
self
):
...
...
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