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
db5ecf60
Commit
db5ecf60
authored
Jun 28, 2018
by
Christoph Lienhard
Browse files
added docu for SumOperator make
parent
2824435b
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/sum_operator.py
View file @
db5ecf60
...
...
@@ -133,6 +133,16 @@ class SumOperator(LinearOperator):
@
staticmethod
def
make
(
ops
,
neg
):
"""Build a SumOperator (or something simpler if possible)
Parameters
----------
ops: list of LinearOperator
Individual operators of the sum.
negs: list of bool
Same length as ops.
If True then the equivalent operator gets a minus in the sum.
"""
ops
=
tuple
(
ops
)
neg
=
tuple
(
neg
)
if
len
(
ops
)
==
0
:
...
...
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