Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- arnoldi
- Arnoldi iteration: build an orthonormal Krylov basis for
A. - backward_
substitution - Backward substitution: solve U x = b where U is upper triangular (CSR).
- banded_
matrix - Build a CSR matrix from a banded stencil.
- bicgstab_
solve - Biconjugate Gradient Stabilised (BICGStab) solver for non-symmetric systems A x = b.
- cg_
solve - Conjugate Gradient solver for symmetric positive-definite systems
A x = b. - col_
scale - Column-scale a CSR matrix: A D_c where D_c = diag(scales).
- coo_
to_ csr - Convert COO (coordinate format) triplets directly to CSR.
- diagonal_
preconditioner - Build a diagonal (Jacobi) preconditioner: returns
1 / a_iifor eachi. - equilibration_
scales - Two-sided equilibration scaling: compute row/col scale vectors so that the scaled matrix has unit diagonal (i.e., sqrt(|A_ii|) scaling).
- forward_
substitution - Forward substitution: solve L x = b where L is lower triangular (CSR).
- gauss_
seidel_ solve - Gauss-Seidel iterative solver for A x = b.
- identity_
csr - Return the n×n identity matrix in CSR format.
- jacobi_
scale - Diagonal (Jacobi) scaling: return D^{-1} A where D = diag(A).
- jacobi_
solve - Jacobi iterative solver.
- lanczos
- Lanczos iteration: build a tridiagonal approximation of a symmetric matrix A.
- laplacian_
1d - 1-D finite-difference Laplacian on
ninterior nodes. - laplacian_
2d - 2-D finite-difference Laplacian on an
nx × nygrid (5-point stencil). - lower_
triangular - Extract the lower triangular part of a sparse matrix (including diagonal).
- minres_
solve - Minimum Residual (MINRES) method for symmetric (possibly indefinite) systems A x = b.
- multi_
rhs_ cg - Solve A X = B for multiple right-hand sides simultaneously using CG.
- pcg_
solve - Preconditioned Conjugate Gradient solver.
- ritz_
values - Compute Ritz values from a Lanczos tridiagonal matrix via QR iteration.
- row_
scale - Row-scale a CSR matrix: D_r A where D_r = diag(scales).
- saddle_
point_ solve - Solve the saddle-point system: [ A B^T ] [ x ] [ f ] [ B 0 ] [ p ] = [ g ]
- sor_
solve - Successive Over-Relaxation (SOR) solver. Use
omega = 1for Gauss-Seidel. - sparse_
eig_ power - Compute the dominant eigenvalue and eigenvector of a sparse matrix using the power method.
- sparse_
eig_ smallest - Compute the smallest eigenvalue of a sparse SPD matrix using inverse iteration (shift-and-invert with the ILU preconditioner).
- spectral_
radius_ estimate - Estimate the spectral radius (largest singular value approximation) via the power method applied to A^T A.
- spgemm
- Sparse-sparse matrix multiply: C = A * B.