Lazylinop’s documentation#
Lazylinop is a python toolbox to ease and accelerate computations with (“matrix-free”) linear operators. It provides glue to combine linear operators as easily as NumPy arrays, PyTorch/CuPy compatibility, standard signal/image processing linear operators, as well as advanced tools to approximate large matrices by efficient butterfly operators.
Lazylinop philosophy – what is a LazyLinOp object?#
A LazyLinOp is a high-level linear operator based on an arbitrary underlying implementation, such as:
custom Python functions,
a NumPy array,
a SciPy matrix,
a CuPy array,
a torch tensor,
a Faust object,
any Python linear operator.
Main benefits of Lazylinop#
Lazylinop aims at providing:
a unified NumPy/SciPy-like API for any underlying implementation (including transparent use of efficient third-party libraries for advanced linear operators such as wavelets, etc.),
an easy way to combine existing operators into more complex operators with all the LazyLinOp operations at your fingertips (and in particular the adjoint),
potential performance gains & memory sparing offered by the lazy paradigm,
many pre-built operators and related APIs, delivered in specialized Lazylinop sub-packages (polynomials of operators, signal-processing oriented operators, etc.).
easy convertion to SciPy LinearOperator-s <https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse. linalg.LinearOperator.html> to use compatible algorithms: svds, eigsh, etc.
Lazylinop is also an alternative or a complement to other related libraries that harness the power of the lazy paradigm. See the section Related lazy libraries for more details.
Beta stage
Lazylinop is currently in a beta stage of development. It is thus intensively evolving and we invite you to consult this documentation regularly. We welcome all beta testers and any feedback.
Getting started with lazylinop#
Quick install using Anaconda
conda config --add channels conda-forge
conda config --add channels lazylinop
conda install lazylinop
Quick install using PIP
pip install lazylinop
Python beginners willing to safely install Lazylinop with a virtual environment can consult this guide.
Installing all extra/optional dependencies
pip install -r lz_requirements.txt
Download the dependency file lz_requirements.txt
Quick introduction
For a quick introduction to the use of Lazylinop go to this notebook. The raw notebook is available here.
version 1.23.0 documentation