Commit db5ecf60 authored by Christoph Lienhard's avatar Christoph Lienhard
Browse files

added docu for SumOperator make

parent 2824435b
......@@ -133,6 +133,16 @@ class SumOperator(LinearOperator):
def make(ops, neg):
"""Build a SumOperator (or something simpler if possible)
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:
Supports Markdown
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