Registry / data / pybammsolvers

pybammsolvers

JSON →
library0.8.2pypypi✓ verified 86d ago

Python interface for the IDAKLU solver for block algebraic multigrid methods. Current version 0.8.1, requires Python >=3.10,<3.15. Development is active with occasional releases.

pip install pybammsolvers
INSTALL
IMPORT
SIG · PYBAMMSOLVERS
P
pybammsolvers
datapythonv0.8.2
Install
7.0s avg
Import
16ms
Disk
351MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.0s · import 0.016s · 348MB
351MB installed
● package 351MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

idaklu
from pybammsolvers import idaklu
import idaklu
The solver is inside the pybammsolvers namespace.

Solves a sparse linear system A x = b using the IDAKLU solver.

import numpy as np from scipy.sparse import csr_matrix from pybammsolvers import idaklu # Create a simple sparse matrix (CSR format) n = 100 A = csr_matrix(np.random.rand(n, n) + 10 * np.eye(n)) b = np.random.rand(n) # Solve using IDAKLU x = idaklu(A, b) print(x[:5])
Debug
Known issues
gotchaThe idaklu function expects the matrix A in CSR or CSC format. Dense arrays will fail or produce incorrect results.
fix
Convert to scipy.sparse.csr_matrix before passing to idaklu.
affects: *
gotchaThe solver may not converge for indefinite matrices; it is designed for SPD-like systems.
fix
Ensure the matrix is symmetric positive definite or at least positive real.
affects: *
deprecatedThe function signature changed between 0.7.x and 0.8.x: previously the order of arguments was (A, b, ...) but now also supports additional options as keyword arguments.
fix
Review call signature: idaklu(A, b, reorder=1) works for basic usage.
affects: >=0.8.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'idaklu'
Importing the solver directly without the package prefix.
fix
Use 'from pybammsolvers import idaklu' instead of 'import idaklu'.
TypeError: idaklu() missing 2 required positional arguments: 'A' and 'b'
Calling idaklu with only one argument or with keyword arguments incorrectly.
fix
Call idaklu(A, b) with the matrix first, right-hand side second.
Upgrade
Version history
0.8.2latest on PyPI · released May 28, 2026
Audit
Dependencies
numpyrequiredArray manipulation and solver inputs
scipyrequiredSparse matrix support (CSR, CSC)
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
pybammsolvers — pip install pybammsolvers · libregistry