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_sub
wrapper defined in_linop.py
duplicates the__add__
and__sub__
definitions in classLinearOperator
. - It's not clear whether applying the wrapper to methods of classes derived from
LinearOperator
is really necessary.
For an example of a class that we hope could be simpler, see ScaledIdentity
.