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

Uploaded Source

File details

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

File metadata

  • Download URL: pymatsolver-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 24b02d1022eaca2ec0199fa25052f5c0fa8ebee73ab26523c441385b4ece0651
MD5 c1c57af5bf16806ecdd7ebf65a4f0314
BLAKE2b-256 d9e83fd89c623e1d8ecd37b6674d21e627c829cd6d4e8e770afd41b3ec75fc26

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