The mechanism supporting math operations involving LinearOperator objects (specifically scalar multiplication and addition and subtraction of two LinearOperator objects) should be revisited to determine whether it can be simplified. Specific issues include:
The _wrap_add_sub wrapper defined in _linop.py duplicates the __add__ and __sub__ definitions in class LinearOperator.
It's not clear whether applying the wrapper to methods of classes derived from LinearOperator is really necessary.
The mechanism supporting math operations involving
LinearOperator
objects (specifically scalar multiplication and addition and subtraction of twoLinearOperator
objects) should be revisited to determine whether it can be simplified. Specific issues include:_wrap_add_sub
wrapper defined in_linop.py
duplicates the__add__
and__sub__
definitions in classLinearOperator
.LinearOperator
is really necessary.