|
| typedef _MatrixType | MatrixType |
| |
| typedef MatrixType::Scalar | Scalar |
| |
| typedef MatrixType::StorageIndex | StorageIndex |
| |
| typedef MatrixType::RealScalar | RealScalar |
| |
| typedef _Preconditioner | Preconditioner |
| |
| typedef Matrix< Scalar, Dynamic, Dynamic > | DenseMatrix |
| |
| typedef Matrix< RealScalar, Dynamic, Dynamic > | DenseRealMatrix |
| |
| typedef Matrix< Scalar, Dynamic, 1 > | DenseVector |
| |
| typedef Matrix< RealScalar, Dynamic, 1 > | DenseRealVector |
| |
| typedef Matrix< std::complex< RealScalar >, Dynamic, 1 > | ComplexVector |
| |
| enum | |
| |
| typedef internal::traits< DGMRES< _MatrixType, _Preconditioner > >::MatrixType | MatrixType |
| |
| typedef internal::traits< DGMRES< _MatrixType, _Preconditioner > >::Preconditioner | Preconditioner |
| |
| typedef MatrixType::Scalar | Scalar |
| |
| typedef MatrixType::StorageIndex | StorageIndex |
| |
| typedef MatrixType::RealScalar | RealScalar |
| |
|
| | DGMRES () |
| |
| template<typename MatrixDerived > |
| | DGMRES (const EigenBase< MatrixDerived > &A) |
| |
| | ~DGMRES () |
| |
| template<typename Rhs , typename Dest > |
| void | _solve_vector_with_guess_impl (const Rhs &b, Dest &x) const |
| |
| Index | restart () |
| |
| void | set_restart (const Index restart) |
| |
| void | setEigenv (const Index neig) |
| |
| Index | deflSize () |
| |
| void | setMaxEigenv (const Index maxNeig) |
| |
| template<typename Rhs , typename Dest > |
| void | _solve_impl (const Rhs &b, Dest &x) const |
| |
| template<typename Rhs , typename DestDerived > |
| void | _solve_with_guess_impl (const Rhs &b, SparseMatrixBase< DestDerived > &aDest) const |
| |
| template<typename Rhs , typename DestDerived > |
| internal::enable_if< Rhs::ColsAtCompileTime!=1 &&DestDerived::ColsAtCompileTime!=1 >::type | _solve_with_guess_impl (const Rhs &b, MatrixBase< DestDerived > &aDest) const |
| |
| template<typename Rhs , typename DestDerived > |
| internal::enable_if< Rhs::ColsAtCompileTime==1||DestDerived::ColsAtCompileTime==1 >::type | _solve_with_guess_impl (const Rhs &b, MatrixBase< DestDerived > &dest) const |
| |
| | IterativeSolverBase () |
| |
| | IterativeSolverBase (const EigenBase< MatrixDerived > &A) |
| |
| | ~IterativeSolverBase () |
| |
| DGMRES< _MatrixType, _Preconditioner > & | analyzePattern (const EigenBase< MatrixDerived > &A) |
| |
| DGMRES< _MatrixType, _Preconditioner > & | factorize (const EigenBase< MatrixDerived > &A) |
| |
| DGMRES< _MatrixType, _Preconditioner > & | compute (const EigenBase< MatrixDerived > &A) |
| |
| EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| |
| EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| |
| RealScalar | tolerance () const |
| |
| DGMRES< _MatrixType, _Preconditioner > & | setTolerance (const RealScalar &tolerance) |
| |
| Preconditioner & | preconditioner () |
| |
| const Preconditioner & | preconditioner () const |
| |
| Index | maxIterations () const |
| |
| DGMRES< _MatrixType, _Preconditioner > & | setMaxIterations (Index maxIters) |
| |
| Index | iterations () const |
| |
| RealScalar | error () const |
| |
| const SolveWithGuess< DGMRES< _MatrixType, _Preconditioner >, Rhs, Guess > | solveWithGuess (const MatrixBase< Rhs > &b, const Guess &x0) const |
| |
| ComputationInfo | info () const |
| |
| void | _solve_with_guess_impl (const Rhs &b, SparseMatrixBase< DestDerived > &aDest) const |
| |
| internal::enable_if< Rhs::ColsAtCompileTime!=1 &&DestDerived::ColsAtCompileTime!=1 >::type | _solve_with_guess_impl (const Rhs &b, MatrixBase< DestDerived > &aDest) const |
| |
| internal::enable_if< Rhs::ColsAtCompileTime==1||DestDerived::ColsAtCompileTime==1 >::type | _solve_with_guess_impl (const Rhs &b, MatrixBase< DestDerived > &dest) const |
| |
| void | _solve_impl (const Rhs &b, Dest &x) const |
| |
| DGMRES< _MatrixType, _Preconditioner > & | derived () |
| |
| const DGMRES< _MatrixType, _Preconditioner > & | derived () const |
| |
| | SparseSolverBase () |
| |
| | ~SparseSolverBase () |
| |
| Derived & | derived () |
| |
| const Derived & | derived () const |
| |
| template<typename Rhs > |
| const Solve< Derived, Rhs > | solve (const MatrixBase< Rhs > &b) const |
| |
| template<typename Rhs > |
| const Solve< Derived, Rhs > | solve (const SparseMatrixBase< Rhs > &b) const |
| |
| template<typename Rhs , typename Dest > |
| void | _solve_impl (const SparseMatrixBase< Rhs > &b, SparseMatrixBase< Dest > &dest) const |
| |
|
| template<typename Rhs , typename Dest > |
| void | dgmres (const MatrixType &mat, const Rhs &rhs, Dest &x, const Preconditioner &precond) const |
| | Perform several cycles of restarted GMRES with modified Gram Schmidt,.
|
| |
| template<typename Dest > |
| Index | dgmresCycle (const MatrixType &mat, const Preconditioner &precond, Dest &x, DenseVector &r0, RealScalar &beta, const RealScalar &normRhs, Index &nbIts) const |
| | Perform one restart cycle of DGMRES.
|
| |
| Index | dgmresComputeDeflationData (const MatrixType &mat, const Preconditioner &precond, const Index &it, StorageIndex &neig) const |
| |
| template<typename RhsType , typename DestType > |
| Index | dgmresApplyDeflation (const RhsType &In, DestType &Out) const |
| |
| ComplexVector | schurValues (const ComplexSchur< DenseMatrix > &schurofH) const |
| |
| ComplexVector | schurValues (const RealSchur< DenseMatrix > &schurofH) const |
| |
| void | dgmresInitDeflation (Index &rows) const |
| |
| void | init () |
| |
| const ActualMatrixType & | matrix () const |
| |
| void | grab (const InputType &A) |
| |
template<typename _MatrixType, typename _Preconditioner>
class Eigen::DGMRES< _MatrixType, _Preconditioner >
A Restarted GMRES with deflation. This class implements a modification of the GMRES solver for sparse linear systems. The basis is built with modified Gram-Schmidt. At each restart, a few approximated eigenvectors corresponding to the smallest eigenvalues are used to build a preconditioner for the next cycle. This preconditioner for deflation can be combined with any other preconditioner, the IncompleteLUT for instance. The preconditioner is applied at right of the matrix and the combination is multiplicative.
- Template Parameters
-
| _MatrixType | the type of the sparse matrix A, can be a dense or a sparse matrix. |
| _Preconditioner | the type of the preconditioner. Default is DiagonalPreconditioner Typical usage :
BiCGSTAB< SparseMatrix< double > > solver Definition BiCGSTAB_simple.cpp:5
Scalar * b Definition benchVecAdd.cpp:17
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A Definition bench_gemm.cpp:48
A Restarted GMRES with deflation. This class implements a modification of the GMRES solver for sparse... Definition DGMRES.h:102
void set_restart(const Index restart) Definition DGMRES.h:163
The matrix class, also used for vectors and row-vectors. Definition Matrix.h:180
A versatible sparse matrix representation. Definition SparseMatrix.h:98
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x Definition gnuplot_common_settings.hh:12
|
DGMRES can also be used in a matrix-free context, see the following example .
References : [1] D. NUENTSA WAKAM and F. PACULL, Memory Efficient Hybrid Algebraic Solvers for Linear Systems Arising from Compressible Flows, Computers and Fluids, In Press, https://doi.org/10.1016/j.compfluid.2012.03.023
[2] K. Burrage and J. Erhel, On the performance of various adaptive preconditioned GMRES strategies, 5(1998), 101-121. [3] J. Erhel, K. Burrage and B. Pohl, Restarted GMRES preconditioned by deflation,J. Computational and Applied Mathematics, 69(1996), 303-318.