scico icon indicating copy to clipboard operation
scico copied to clipboard

Revisit mechanism supporting math operations involving `LinearOperator` objects

Open bwohlberg opened this issue 4 months ago • 1 comments

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:

  1. The _wrap_add_sub wrapper defined in _linop.py duplicates the __add__ and __sub__ definitions in class LinearOperator.
  2. It's not clear whether applying the wrapper to methods of classes derived from LinearOperator is really necessary.

bwohlberg avatar Feb 07 '24 22:02 bwohlberg