Skip to main content

Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations

Project description

# PyPardisoProject [![Anaconda-Server Badge](https://anaconda.org/haasad/pypardiso/badges/version.svg)](https://anaconda.org/haasad/pypardiso) [![PyPardiso-Tests](https://github.com/haasad/PyPardisoProject/actions/workflows/conda-pytest.yaml/badge.svg?branch=master)](https://github.com/haasad/PyPardisoProject/actions/workflows/conda-pytest.yaml)

Python interface to the [Intel MKL Pardiso library](https://software.intel.com/en-us/node/470282) 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 [![Anaconda-Server Badge](https://anaconda.org/haasad/pypardiso/badges/installer/conda.svg)](https://conda.anaconda.org/haasad)

Use PyPardiso with the [anaconda](https://www.continuum.io/downloads) python distribution (use [miniconda](http://conda.pydata.org/miniconda.html) if you need to install it). PyPardiso makes use of the Intel Math Kernel Library that is [included for free with conda](https://www.continuum.io/blog/developer-blog/anaconda-25-release-now-mkl-optimizations) 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](https://docs.scipy.org/doc/scipy-0.18.1/reference/sparse.linalg.html). ` >>> from pypardiso import spsolve >>> x = spsolve(A,b) `

## Changelog

__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__

__v0.2.2__

  • CSR-matrix format is forced in spsolve and factorized. This fixes a serious compatibility issue with [brightway2](https://brightwaylca.org), 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


Download files

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

Source Distribution

pypardiso-0.3.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

pypardiso-0.3.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypardiso-0.3.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for pypardiso-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c3846870dc2590250980d98568e9dfc99b0271e9e5a9c8714a85cc373e839788
MD5 b8c5e6eb5fbe1867872f33d2b5b3c70a
BLAKE2b-256 a18094ee3b84870c464070644cd3c1219e73d203b66e84edd3ba9c18882b929f

See more details on using hashes here.

File details

Details for the file pypardiso-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pypardiso-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for pypardiso-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0201d78051ff21a6fb89e09b2065bf50eb371e42b4732df995d7b2f77f4115c1
MD5 e52a3d7b4de4e7c73d2ec88deac0d1f4
BLAKE2b-256 1ccaa80bc46ef7d95a55f029a6bb59671a2cba182a2ceec04cce547a4a229f8d

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