pg_utils.numerics.linalg.StdLinSolver
- class pg_utils.numerics.linalg.StdLinSolver[source]
Bases:
LinSysSolver
Standard linear solver, built on numpy/scipy, to double precision or other default precision depending on the platform
Methods
__init__
()eig
(A, **kwargs)Calculate eigenvalues and eigenvectors of a matrix
eig_g
(A, B, **kwargs)Calculate eigenvalues and eigenvectors of a generalized eigenproblem
eigh
(A, **kwargs)Calculate eigenvalues and eigenvectors of a Hermitian matrix
inv
(A, **kwargs)Invert a matrix
solve
(A, B[, diag, explicit])Solve a linear system; this is the final interface for solving linear systems.
solve_diag
(A, B, **kwargs)Solve a diagonal linear system
solve_explicit
(A, B, **kwargs)Solve a linear system via explicit inversion
- eig(A: ndarray, **kwargs) Tuple[ndarray, ndarray] [source]
Calculate eigenvalues and eigenvectors of a matrix
- eig_g(A: ndarray, B: ndarray, **kwargs) Tuple[ndarray] [source]
Calculate eigenvalues and eigenvectors of a generalized eigenproblem
- eigh(A: ndarray, **kwargs) Tuple[ndarray, ndarray] [source]
Calculate eigenvalues and eigenvectors of a Hermitian matrix