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.4.0.tar.gz (14.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pymatsolver-0.4.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymatsolver-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0ef77e92ac5a780df08d921cc772e0fe230d88e114355eaa2958a2ffa5b35004
MD5 0132b6e1304983d2f8b7e051dc1271d7
BLAKE2b-256 545b1046bcf7f580755b1b96e9a0a640510cb79ae89e2d1099175e106e5b10ac

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