Examples¶
The package ships runnable example scripts in examples/ and generated
visual outputs in test_output/ as SVG files.
This page is an overview. Detailed inputs, outputs, and figures are split by example family in the pages linked below.
Run examples from the package root:
python examples/example_imsl_lslrg.py
python examples/example_imsl_lslpb.py
python examples/example_imsl_lsqrr.py
python examples/example_imsl_iterative_solvers.py
python examples/example_imsl_cholesky_solve.py
python examples/example_imsl_tridiagonal.py
python examples/example_imsl_ridge_regression.py
python examples/example_imsl_triangular_qr.py
python examples/example_imsl_norms_conditioning.py
python examples/example_imsl_banded_sparse.py
python examples/example_imsl_constrained_ls.py
Regenerate the documentation figures by rerunning the relevant examples from the
package root. Each script updates one or more SVG files in test_output/.
Example Script Map¶
Script |
Primary topic |
Generated SVG outputs |
|---|---|---|
|
General real system (LSLRG) |
|
|
Positive definite banded (LSLPB) |
|
|
Least squares (LSQRR) |
|
|
Iterative solvers: CG / GMRES / BiCG |
|
|
Cholesky factorization (cholfact / cholsolve) |
|
|
Tridiagonal Thomas algorithm (tridiag_solve) |
|
|
Ridge regression (Tikhonov) |
|
|
Triangular solvers and QR |
|
|
Norms and conditioning |
|
|
Banded and sparse solvers |
|
|
Constrained / bounded LS and cyclic tridiag |
|
Detailed pages by family:
- LSLRG Example — General Linear System Solver
- LSLPB Example — Banded Positive Definite Solver
- LSQRR Example — Least Squares Polynomial Fitting
- Iterative Solvers Example — CG, GMRES, and BiCG
- Cholesky Factorization Example — cholfact and cholsolve
- Tridiagonal Solver Example — Thomas Algorithm
- Ridge Regression Example — Tikhonov Regularization
- Triangular Systems and QR Solve
- Matrix Norms and Conditioning
- Banded and Sparse Solvers
- Constrained Least Squares and Advanced Tridiagonal