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

example_imsl_lslrg.py

General real system (LSLRG)

example_imsl_lslrg.svg

example_imsl_lslpb.py

Positive definite banded (LSLPB)

example_imsl_lslpb.svg

example_imsl_lsqrr.py

Least squares (LSQRR)

example_imsl_lsqrr.svg

example_imsl_iterative_solvers.py

Iterative solvers: CG / GMRES / BiCG

example_imsl_iterative_solvers.svg

example_imsl_cholesky_solve.py

Cholesky factorization (cholfact / cholsolve)

example_imsl_cholesky_solve.svg

example_imsl_tridiagonal.py

Tridiagonal Thomas algorithm (tridiag_solve)

example_imsl_tridiagonal.svg

example_imsl_ridge_regression.py

Ridge regression (Tikhonov)

example_imsl_ridge_regression.svg

example_imsl_triangular_qr.py

Triangular solvers and QR

example_imsl_triangular_qr.svg

example_imsl_norms_conditioning.py

Norms and conditioning

example_imsl_norms_conditioning.svg

example_imsl_banded_sparse.py

Banded and sparse solvers

example_imsl_banded_sparse.svg

example_imsl_constrained_ls.py

Constrained / bounded LS and cyclic tridiag

example_imsl_constrained_ls.svg

Detailed pages by family: