Dense linear algebra solvers with provable contracts.
Solvers
- LU: Partial pivoting, PA = LU
- QR: Householder reflections, A = QR
- SVD: One-sided Jacobi, A = UΣV^T
- Cholesky: A = LL^T for positive definite matrices
Example
use lu_factorize;
// Solve Ax = b where A = [[2, 1], [1, 3]]
let a = ;
let lu = lu_factorize.unwrap;
let x = lu.solve.unwrap;
// x ≈ [1.6, 1.8]
assert!;
assert!;