scico
scico copied to clipboard
Revisit mechanism supporting math operations involving `LinearOperator` objects
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_subwrapper defined in_linop.pyduplicates the__add__and__sub__definitions in classLinearOperator. - It's not clear whether applying the wrapper to methods of classes derived from
LinearOperatoris really necessary.
For an example of a class that we hope could be simpler, see ScaledIdentity.