Linear Solver Skill
Solves $Ax=b$. Choose the backend based on your hardware and scale.
Contents
- Examples
- Code snippets for NumPy, JAX, PyTorch, and Lineax.
- Reference
- Detailed breakdown of methods (LU, Cholesky, CG, GMRES).
Quick Decision Tree
- CPU Only? -> Use
NumPy(scripts/numpy_dense.py). - GPU/TPU? -> Use
JAXorPyTorch. - Advanced/Stable JAX? -> Use
Lineax(scripts/lineax_solvers.py). - Tridiagonal? -> Use specialized solvers (
scripts/tridiagonal.py).