Skip to main content

Crate solow_linalg

Crate solow_linalg 

Source
Expand description

§solow-linalg

Pure-Rust dense linear algebra for the Solow statistical stack. No system LAPACK/BLAS is required: the decompositions are implemented here and validated against an authoritative reference.

Structs§

Lu
An LU factorization with partial (row) pivoting: P A = L U.

Functions§

cholesky
Lower-triangular Cholesky factor L such that A = L Lᵀ.
cholesky_solve
Solve a symmetric-positive-definite system A x = b via Cholesky (A = L Lᵀ).
det
Determinant of a square matrix (product of LU pivots times the swap sign).
eigh
Eigendecomposition of a real symmetric matrix via the cyclic Jacobi method.
inv
Inverse of a square matrix.
lstsq
Minimum-norm least-squares solution to A x ≈ b via the pseudoinverse.
lstsq_qr
Fast least-squares for a tall, full-column-rank design via Householder QR.
lu_factor
Compute the LU factorization of a square matrix with partial pivoting.
matrix_rank
Numerical rank of a matrix using the reference convention tol = max(s) * max(m, n) * eps.
pinv
Moore–Penrose pseudoinverse via the SVD, together with the singular values.
pinv_rcond
pinv with an explicit relative cutoff.
qr
Reduced (economy) Householder QR of a tall-or-square matrix A (m ≥ n): returns (Q, R) with Q of shape m × n (orthonormal columns) and R upper-triangular of shape n × n, such that A = Q R.
solve
Solve the square linear system A x = b.
solve_matrix
Solve A X = B for a matrix right-hand side.
svd
Singular value decomposition A = U diag(s) Vᵀ (economy / thin form).