Skip to main content

pymatsolver: Matrix Solvers for Python

Project description

Latest PyPI version MIT license. Coverage status

A (sparse) matrix solver for python.

Solving Ax = b should be as easy as:

Ainv = Solver(A)
x = Ainv * b

In pymatsolver we provide a number of wrappers to existing numerical packages. Nothing fancy here.

Solvers Available

All solvers work with scipy.sparse matricies, and a single or multiple right hand sides using numpy:

  • L/U Triangular Solves

  • Wrapping of SciPy matrix solvers (direct and indirect)

  • Pardiso solvers

  • Mumps solvers

Installing Solvers

Often, there are faster solvers available for your system than the default scipy factorizations available. pymatsolver provides a consistent interface to both MKL’s Pardiso routines and the MUMPS solver package. To make use of these we use intermediate wrappers for the libraries that must be installed separately.

Pardiso

The Pardiso interface is recommended for Intel processor based systems. The interface is enabled by the pydiso python package, which can be installed through conda-forge as:

conda install -c conda-forge pydiso

Mumps

Mumps is available for all platforms. The mumps interface is enabled by installing the python-mumps wrapper package. This can easily be installed through conda-forge with:

conda install -c conda-forge python-mumps

Code: https://github.com/simpeg/pymatsolver

Tests: https://github.com/simpeg/pymatsolver/actions

Bugs & Issues: https://github.com/simpeg/pymatsolver/issues

License: MIT

Project details


Download files

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

Source Distribution

pymatsolver-0.3.0.tar.gz (14.7 kB view details)

Uploaded Source

File details

Details for the file pymatsolver-0.3.0.tar.gz.

File metadata

  • Download URL: pymatsolver-0.3.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pymatsolver-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e3dd7451ae03f7fb663d1657c159592c62e5dd8e44e2aa4f5815894550032ccb
MD5 4bbc9259e2dc7114e1969315c95ab32a
BLAKE2b-256 4d5936ae6f711e95beebb9d99a47eee73497b19811a401962071d98c1f278ac0

See more details on using hashes here.

Supported by

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