MUMPSpy
A python wrapper for the sparse direct solver.
The wrapper allows:
- real and complex factorization of symmetric or non-symmetric matrices
- single and double precision
- Schur complement calculation
Requirements
Ubuntu/Debian users can use the following command to install the required packages:
apt-get install python-mpi4py libmumps-dev
The cmake version of MUMPS could be also used. See https://github.com/scivision/mumps for details and CI file for some syntax.
Installation
pip install mumpspy
Usage
import mumpspy
import numpy as np
import scipy.sparse as sp
row = np.array([0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3])
col = np.array([0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 0, 1])
val = np.array([1, 2, 2, 1, 1, 3, -1, 2, 1, 1, 3, 1], dtype='d')
b = np.array([15, 12, 3, 5], dtype='d')
A = sp.coo_matrix((val, (row, col)), shape=(4, 4))
solver = mumpspy.MumpsSolver() # initialize solver, real-valued system
solver.set_mtx(A) # set sparse matrix
x = solver.solve(b) # solve system for a given right-hand side
print(x)
Additional examples of syntax can be found in test file.
Testing
pytest can be used to run testing and coverage in the package.
Compatibility
Tested for the following MUMPS library versions (see Actions for current working versions):
- 4.10.0
- 5.0.2
- 5.1.2
- 5.2.1
- 5.4.1
- 5.5.x
- 5.6.x
- 5.7.x
- 5.8.2
Metadata
Release files for mumpspy 1.4.1
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 | Actions |
|---|---|---|---|---|
| mumpspy-1.4.1.tar.gz | 11.1 kB | Without provenance | Details for mumpspy-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mumpspy-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for mumpspy-1.4.1-py3-none-any.whl |
Total release size: 21.5 kB
Release files / mumpspy-1.4.1.tar.gz
| Download URL | mumpspy-1.4.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a10087516e7a655931f1d4c60f1df3c23fb5bded5a9e753391b7e447d835b15
|
|
BLAKE2b-256 checksum How to use checksums |
045d72f18409663c257144207292834a5d17ea9bab991885a38a4f89974513f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / mumpspy-1.4.1-py3-none-any.whl
| Download URL | mumpspy-1.4.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfdaeb520966acb15b49a65ff9ea5c26b1862940853e382bd86e91bc4e1e6201
|
|
BLAKE2b-256 checksum How to use checksums |
13edf48cf779062c0826f77e5e6ae1f03f6fffe3c3842755b60af2403c4a8fbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for mumpspy 1.4.1
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.