superlu

Solve large, sparse nonsymmetric systems of linear equations

brewmacoslinux
Try with needOr install directly
Source

About

Solve large, sparse nonsymmetric systems of equations

Commands

superlu

Examples

Link SuperLU library in C/C++ code for sparse matrix solving$ gcc -I$(brew --prefix superlu)/include myprogram.c -L$(brew --prefix superlu)/lib -lsuperlu -o myprogram
Use SuperLU in Python via scipy.sparse.linalg after installation$ python -c "from scipy.sparse.linalg import spsolve; import numpy as np; A = np.array([[3,1],[1,2]]); b = np.array([9,8]); print(spsolve(A, b))"
Check SuperLU installation and library location$ brew --prefix superlu && ls -la $(brew --prefix superlu)/lib/