Solve large, sparse nonsymmetric systems of linear equations
Solve large, sparse nonsymmetric systems of equations
superlu$ gcc -I$(brew --prefix superlu)/include myprogram.c -L$(brew --prefix superlu)/lib -lsuperlu -o myprogram$ 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))"$ brew --prefix superlu && ls -la $(brew --prefix superlu)/lib/