Skip to main content

Python bindings for MUMPS, a parallel sparse direct solver

Project description

PyMUMPS: A parallel sparse direct solver


Getting Started

Install using python install or run from the local checkout.


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:
    x = b.copy()
    ctx.set_rhs(x) # Modified in place # 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 # Analysis

if ctx.myid == 0:
    ctx.set_centralized_assembled_values( # Factorization

if ctx.myid == 0:
    x = b1.copy()
    ctx.set_rhs(x) # 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.

Project details

Download files

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

Files for PyMUMPS, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size PyMUMPS-0.3.2.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page