Description
Shift-and-invert operator of a generalized eigenvalue problem with sparse matrices and a complex shift.
For the problem As*v = lambda*Bs*v and the shift sigma, the operator is A = (As - sigma*Bs)^-1 * Bs, whose eigenvalues are 1/(lambda - sigma). Each product A*x solves a linear system with the matrix As - sigma*Bs, which the constructor factorizes once.
#include <ChKrylovSchurEig.h>


Public Member Functions | |
| ShiftInvertOperator (const ChSparseMatrix &As, const ChSparseMatrix &Bs, std::complex< double > sigma, std::shared_ptr< ChDirectSolverLScomplex > linear_solver) | |
| Construct the operator and factorize As - sigma*Bs with the given direct solver. More... | |
| virtual void | Apply (const ChVectorDynamic< std::complex< double >> &x, ChVectorDynamic< std::complex< double >> &y) override |
| Compute the product y = A*x. | |
Constructor & Destructor Documentation
◆ ShiftInvertOperator()
| chrono::ChKrylovSchurEig::ShiftInvertOperator::ShiftInvertOperator | ( | const ChSparseMatrix & | As, |
| const ChSparseMatrix & | Bs, | ||
| std::complex< double > | sigma, | ||
| std::shared_ptr< ChDirectSolverLScomplex > | linear_solver | ||
| ) |
Construct the operator and factorize As - sigma*Bs with the given direct solver.
Throws std::invalid_argument if the factorization fails, as when sigma is an eigenvalue or almost one.
- Parameters
-
As matrix As Bs matrix Bs sigma shift linear_solver direct solver for As - sigma*Bs
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/solver/ChKrylovSchurEig.h
- /builds/uwsbel/chrono/src/chrono/solver/ChKrylovSchurEig.cpp