Skip to main content

A package dedicated to lazy linear operators based on diverse backends/libraries.

Project description

Lazylinop philosophy – what is a LazyLinearOp object?

Starting from a numpy array, a scipy matrix, a Faust object, or potentially many other compatible linear operators with efficient implementatons, a .LazyLinearOp object follows the lazy evaluation paradigm. In short, one can aggregate low-level .LazyLinearOp objects into higher-level ones using many classical operations (addition, concatenation, adjoint, real part, etc.), without actually building arrays. The actual effect of these operations is delayed until the resulting linear operator is actually applied to a vector (or to a collection of vectors, seen as a matrix).

The main interest of this paradigm is to enable the construction of processing pipelines that exploit as building blocks efficient implementations of “low-level” linear operators.

LazyLinearOperators are complementary to other “lazy” objects such as LazyTensors in Kheops, or the ones of lazyarray, WeldNumpy an pylops libraries, which, to the best of our knowledge, primarily provide compact descriptions of arrays which entries can be evaluated efficiently on the fly.

Note that pylops has a particular position among those libraries. It is in fact a dependency of the lazylinop package because it is used as alternate implementations of some functions (as for instance .kron). However, the way pylops exhibits LinearOperator-s in its API is different. Indeed, in the case of kron, which is similar to the scipy function but returns a .LazyLinearOp, pylops provides rather a class Kronecker.

Getting started with lazylinop

For a straightforward installation of lazylinop go to this guide. Then for a quick introduction to lazylinop go to this notebook. The raw notebook is available here.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazylinop-1.0.16-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file lazylinop-1.0.16-py3-none-any.whl.

File metadata

  • Download URL: lazylinop-1.0.16-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for lazylinop-1.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0dc0bcc9128c5a4871f7a3525c9e6256d5dd74c2eba61274dc5f9a65ac7f8ee0
MD5 f509643b77670c77e7dbac84b4f68cae
BLAKE2b-256 166fac6e680621301ef908f054dd395f9b99a93762ae596468e3a95830383b3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page