Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations
Project description
PyPardisoProject
Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations
More documentation is coming soon. In the meantime, refer to the comments and docstrings in the source code.
Installation
Use PyPardiso with the anaconda python distribution (use miniconda if you need to install it). PyPardiso makes use of the Intel Math Kernel Library that is included for free with conda and therefore doesn't work with other distributions (at least for the moment).
To install PyPardiso:
conda install -c haasad pypardiso
Basic usage
PyPardiso provides a spsolve
and a factorized
method that are significantly faster than their counterparts in scipy.sparse.linalg.
>>> from pypardiso import spsolve
>>> x = spsolve(A,b)
Changelog
v0.3.3
- Release on PyPI and anaconda.org/haasad with github actions (see #19 and #20)
v0.3.2
- Change requirements in setup.py to fix failing conda-forge build
v0.3.1
- Revert to the old way of detecting the mkl_rt library on osx, since psutil doesn't work (see [#14])
v0.3.0
- Changed how pypardiso detects the mkl_rt library to fix a breaking change on windwos with mkl 2021.2.0. See #12 for details.
v0.2.2
- CSR-matrix format is forced in
spsolve
andfactorized
. This fixes a serious compatibility issue with brightway2, where a technosphere matrix in CSC-format produces wrong results, due to the bad conditioning of the matrix (see details in issue #7).
v0.2.1
- Switched from zero- to one-based indexing for the call to the pardiso library. This brings performance of the factorization phase back to the level of v0.1.0, v0.2.0 is much slower.
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 Distribution
Built Distribution
Hashes for pypardiso-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2100b5a6f444b8f26bddc0b94830801485d7111e2c8593adb7d59b8ee8b6e64 |
|
MD5 | 41c2c4c86d0b6218b18548bee30b7c95 |
|
BLAKE2b-256 | ac807efe950a48b29c403b4a86809c38329e36ee832bd5913310bb0c52e80c7a |