GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing neurojson.org — NeuroJSON: Page/blocksolver
BLIT — Block Iterative Linear SolversHigh-performance sparse solvers for symmetric FEM matrices
Real Symmetric
Complex Symmetric (A = Aᵀ)
Sparse & Dense
OpenMP Parallel
Python
MATLAB
Fortran
C++
Get Started
GitHub
🐍 PyPI (v0.9.4)
Why Block QMR?🧮 Block SolverMultiple RHS simultaneously, sharing Krylov subspace for 4× fewer iterations ∑ Complex SymmetryQuasi inner product ⟨x,y⟩ = Σxₖyₖ — natural for A = Aᵀ systems 🛡️ PreconditionedBuilt-in ILU, Jacobi, and split preconditioners ⚡ Up to 84× FasterOutperforms SuperLU and PARDISO for large sparse systems 💾 Memory EfficientShort three-term recurrences, not full Krylov basis 🔀 OpenMP ParallelMulti-threaded RHS solving with automatic BLAS thread control Applications🔬 Diffuse Optical Tomography
📡 Frequency-Domain EM
🔊 Acoustic Scattering
🩺 Microwave Imaging
🌊 Helmholtz Equations
⚙️ Structural Dynamics
Simple API# pip install blocksolver import numpy as np from blocksolver import blqmr from scipy.sparse import diags # Complex symmetric FEM matrix n = 5000 A = diags([-1, 4+0.1j, -1], [-1, 0, 1], shape=(n, n), dtype=complex) # Block solve: 16 RHS at once B = np.random.randn(n, 16) + 0j result = blqmr(A, B, tol=1e-10, precond_type='diag') print(f"Converged: {result.converged}") % Complex symmetric FEM matrix n = 5000; K = spdiags([-ones(n,1) 4*ones(n,1) -ones(n,1)], -1:1, n, n); A = K + 0.1i * speye(n); % Block solve: 16 RHS at once B = rand(n, 16) + 1i*rand(n, 16); opt.precond = 'diag'; [X, flag] = blqmr(A, B, 1e-10, 1000, [], [], [], opt); program solve_fem use blit_blqmr_real implicit none type(BLQMRSolver) :: qmr integer :: n, nnz, nrhs integer, allocatable :: Ap(:), Ai(:) real(8), allocatable :: Ax(:), B(:,:), X(:,:) n = 5000; nnz = 14998; nrhs = 16 ! ... allocate and fill CSC arrays ... call BLQMRCreate(qmr, n) qmr%maxit = 1000 qmr%qtol = 1.0d-10 qmr%pcond_type = 3 ! Jacobi call BLQMRPrep(qmr, Ap, Ai, Ax, nnz) call BLQMRSolve(qmr, Ap, Ai, Ax, nnz, X, B, nrhs) call BLQMRDestroy(qmr) end program #include "blit_solvers.h" int main() { const int n = 5000, nnz = 14998, nrhs = 16; std::vector<int> Ap(n+1), Ai(nnz); std::vector<double> Ax(nnz), b(n*nrhs), x(n*nrhs); BlitBLQMR<double> solver(n, nrhs, 1000, 1e-3); solver.Prepare(Ap.data(), Ai.data(), Ax.data(), nnz); solver.Solve(x.data(), b.data(), nrhs); return 0; } PerformanceComplex symmetric Helmholtz FEM matrix (tetrahedral mesh), Jacobi split preconditioner, OpenMP with nblock=1. Tested on 20-core workstation. 84× vs SuperLU (64K, 2 RHS) 4.9× vs PARDISO (64K, 2 RHS) 4.3× OpenMP Speedup (20 threads) ~130 Iterations (all RHS counts) 📊 BLQMR vs SuperLU — Solve Time (4 RHS)Scaling: SuperLU grows as O(n²) due to fill-in. BLQMR scales nearly linearly with nnz — 70× faster at 40³ grid.
📊 BLQMR vs PARDISO — Solve Time (4 RHS)Finding: PARDISO (MKL, multi-threaded) is much faster than SuperLU but BLQMR still wins — 4.7× faster at 40³.
⚡ Speedup vs SuperLU by Grid SizeTrend: Speedup increases with problem size. Even at 128 RHS, BLQMR is 6.8× faster for the 40³ grid.
⚡ Speedup vs PARDISO by Grid SizeCrossover: BLQMR beats PARDISO for ≤8 RHS at all grid sizes, and for ≤16 RHS at grids ≥25³.
🎯 Crossover: BLQMR vs SuperLUSpeedup = SuperLU_time / BLQMR_time. Green (>1.0) = BLQMR wins.
BLQMR Wins
SuperLU Wins
Dominance: BLQMR wins in 49 of 56 test cases. SuperLU only wins for the smallest grid (10³) with ≥2 RHS. For n ≥ 3,375, BLQMR always wins.
🎯 Crossover: BLQMR vs PARDISO (MKL)Speedup = PARDISO_time / BLQMR_time. Green (>1.0) = BLQMR wins. PARDISO uses real 2×2 block form for complex matrices.
BLQMR Wins
Break-even
PARDISO Wins
Key Insight: BLQMR beats PARDISO for ≤8 RHS at all sizes and for ≤16 RHS when n ≥ 16K. PARDISO's advantage grows with RHS count since its factorization cost is amortized. At 40³ with 32 RHS, BLQMR still wins at 1.1×.
Real symmetric 3D Laplacian (7-point stencil), 4 RHS, MATLAB R2024a. 14× Max Speedup vs Direct 4-16 Optimal Block Size <1/m Super-linear Iteration Reduction 2× Faster than point-QMR 📊 Speedup vs Direct Solver (Complex, 4 RHS)Finding: BLQMR achieves 14× speedup at 125K nodes. For single RHS, speedup reaches 65×!
⏱️ Solve Time ComparisonScaling: Direct solver time grows as O(n²), while BLQMR scales nearly linearly — O(nnz + nm²).
🔢 Block Size Optimization (64 RHS, 20³)Optimal: Block size 16-32 balances iteration reduction with per-iteration cost.
📉 Iteration EfficiencySuper-linear: RHS-grouping resulting in iteration reduction, better than theoretical 1/m — Krylov info sharing works!
🎯 Crossover Analysis: BLQMR vs Direct Solver (MATLAB)Speedup = Direct_time / BLQMR_time. Green (>1.0) = BLQMR wins.
BLQMR Wins
Break-even
Direct Wins
Key Insight: For n ≥ 3,375 nodes, BLQMR wins with few RHS. Larger systems benefit even with many RHS. The crossover shifts right as problem size decreases.
Get Started1
Python
2
Fortran Backend (Optional)Linux: 3
MATLAB/Octave
4
Register for future updatesReferencesMicrowave image reconstruction from 3-D fields coupled to 2-D parameter estimation
Fang Q, Meaney PM, Geimer SD, et al.
IEEE Transactions on Medical Imaging, 23(4):475-484, 2004
Download
A block QMR method for computing multiple simultaneous solutions
Boyse WE, Seidl AA
SIAM Journal on Scientific Computing, 17(1):263-274, 1996
Last edited February 13, 2026 9:24 by pool-108-20-123... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |