[SciPy-Dev] LinearOperator and new solver

Matteo Ravasi matteoravasi at gmail.com
Wed Dec 12 14:24:33 EST 2018


Dear Scipy-dev community,
I would like to bring forward two proposals related to your scipy.sparse.linalg.LinearOperator class and linear solvers in general:

LinearOperator: I am the main developer and maintainer of the PyLops library that has been recently open-sourced (git repo: https://github.com/Statoil/pylops, doc: https://pylops.readthedocs.io/en/latest/index.html). As you will see I heavily rely on your LinearOperator class and build on top of it creating various basic linear operators and more specific ones for signal processing and geoscience applications of inverse problems. When I started working on this I was surprised to find very little information and examples online on how to use your LinearOperator and the possibility to subclass it was only mentioned in one line of your documentation and nowhere else online to my knowledge. I wonder if you would consider pointing to PyLops in your documentation to facilitate users i) to know how to get started with LinearOperator, ii) avoid rebuilding the wheel if what they are after can be done or is done already in PyLops. I find your class fantastic and saved me lots of time but I feel is one of those things that few people realize exist and understand how to use it ;)
Solvers: I would like to know if you would be interested to add a new solver to your suite of linear solvers. Specifically the solver is called SPGL1 and it is a very popular solver in the mathematical community for sparsity-promoting linear optimization. It was developed at UBC (University of British Columbia) https://www.cs.ubc.ca/~mpf/spgl1/ and has a Matlab open-source code. I have been thinking about porting it to python for a while and recently another python user started a git repo called https://github.com/drrelyea/SPGL1_python_port. However this is something I would more naturally see as part of scipy instead of an indipendent library. I am willing to contact the author of this repo and help him out directly to finish the porting and make it to (or close to) scipy standards... so far the code and repo is not ready to be included in professional code like scipy in my opinion. But I would like to hear what you think, if you would consider adding this to scipy once in good shape or if you think this is not in the scope of scipy library :)

Looking forward to hearing from you,
Best wishes
MR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20181212/e2d2530a/attachment.html>


More information about the SciPy-Dev mailing list