PyMUMPS: A parallel sparse direct solver
Requirements
Installation
PyMUMPS can be installed from PyPI using pip:
pip install pymumps
Custom build flags, e.g. to specify the MUMPS installation location,
can be specified using -C:
pip install -v \
-Cbuild.verbose=true \
-Ccmake.define.MUMPS_ROOT=<PATH_OF_MUMPS_INSTALLATION> \
pymumps
There is also conda recipe:
conda install -c conda-forge pymumps
Examples
Centralized input & output. The sparse matrix and right hand side are input only on the rank 0 process. The system is solved using all available processes and the result is available on the rank 0 process.
from mumps import DMumpsContext
ctx = DMumpsContext()
if ctx.myid == 0:
ctx.set_centralized_sparse(A)
x = b.copy()
ctx.set_rhs(x) # Modified in place
ctx.run(job=6) # Analysis + Factorization + Solve
ctx.destroy() # Cleanup
Re-use symbolic or numeric factorizations.
from mumps import DMumpsContext
ctx = DMumpsContext()
if ctx.myid == 0:
ctx.set_centralized_assembled_rows_cols(A.row+1, A.col+1) # 1-based
ctx.run(job=1) # Analysis
if ctx.myid == 0:
ctx.set_centralized_assembled_values(A.data)
ctx.run(job=2) # Factorization
if ctx.myid == 0:
x = b1.copy()
ctx.set_rhs(x)
ctx.run(job=3) # Solve
# Reuse factorizations by running `job=3` with new right hand sides
# or analyses by supplying new values and running `job=2` to repeat
# the factorization process.
Metadata
Release files for PyMUMPS 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pymumps-0.4.0.tar.gz | 10.2 kB | Without provenance | Details |
Release files / pymumps-0.4.0.tar.gz
| Download URL | pymumps-0.4.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b55cdc7c3998fda874d8078d2348228a6759cc5bed00f3f1fc1745ce727e43d
|
|
BLAKE2b-256 checksum How to use checksums |
4b7586ea6d61d3095c6d8bbf4df58b0ca7d2951d249b9848da411c4a5cfcb036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.2 cpython/3.12.2 HTTPX/0.27.0
|
Security for PyMUMPS 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.