Base class for linear iterative solvers.
More...
#include <IterativeSolverBase.h>
template<typename Derived>
class Eigen::IterativeSolverBase< Derived >
Base class for linear iterative solvers.
- See also
- class SimplicialCholesky, DiagonalPreconditioner, IdentityPreconditioner
Definition at line 21 of file IterativeSolverBase.h.
◆ Index
template<typename Derived>
◆ MatrixType
template<typename Derived>
◆ Preconditioner
template<typename Derived>
◆ RealScalar
template<typename Derived>
◆ Scalar
template<typename Derived>
◆ IterativeSolverBase() [1/2]
template<typename Derived>
◆ IterativeSolverBase() [2/2]
template<typename Derived>
Initialize the solver with matrix A for further Ax=b
solving.
This constructor is a shortcut for the default constructor followed by a call to compute().
- Warning
- this class stores a reference to the matrix A as well as some precomputed values that depend on it. Therefore, if A is changed this class becomes invalid. Call compute() to update it with the new matrix A, or modify a copy of A.
Definition at line 52 of file IterativeSolverBase.h.
◆ ~IterativeSolverBase()
template<typename Derived>
◆ _solve_sparse()
template<typename Derived>
template<typename Rhs , typename DestScalar , int DestOptions, typename DestIndex >
◆ analyzePattern()
template<typename Derived>
Initializes the iterative solver for the sparcity pattern of the matrix A for further solving Ax=b
problems.
Currently, this function mostly call analyzePattern on the preconditioner. In the future we might, for instance, implement column reodering for faster matrix vector products.
Definition at line 65 of file IterativeSolverBase.h.
◆ cols()
template<typename Derived>
◆ compute()
template<typename Derived>
Initializes the iterative solver with the matrix A for further solving Ax=b
problems.
Currently, this function mostly initialized/compute the preconditioner. In the future we might, for instance, implement column reodering for faster matrix vector products.
- Warning
- this class stores a reference to the matrix A as well as some precomputed values that depend on it. Therefore, if A is changed this class becomes invalid. Call compute() to update it with the new matrix A, or modify a copy of A.
Definition at line 103 of file IterativeSolverBase.h.
◆ derived() [1/2]
template<typename Derived>
◆ derived() [2/2]
template<typename Derived>
◆ error()
template<typename Derived>
◆ factorize()
template<typename Derived>
Initializes the iterative solver with the numerical values of the matrix A for further solving Ax=b
problems.
Currently, this function mostly call factorize on the preconditioner.
- Warning
- this class stores a reference to the matrix A as well as some precomputed values that depend on it. Therefore, if A is changed this class becomes invalid. Call compute() to update it with the new matrix A, or modify a copy of A.
Definition at line 83 of file IterativeSolverBase.h.
◆ info()
template<typename Derived>
- Returns
- Success if the iterations converged, and NoConvergence otherwise.
Definition at line 190 of file IterativeSolverBase.h.
◆ init()
template<typename Derived>
◆ iterations()
template<typename Derived>
◆ maxIterations()
template<typename Derived>
◆ preconditioner() [1/2]
template<typename Derived>
- Returns
- a read-write reference to the preconditioner for custom configuration.
Definition at line 130 of file IterativeSolverBase.h.
◆ preconditioner() [2/2]
template<typename Derived>
◆ rows()
template<typename Derived>
◆ setMaxIterations()
template<typename Derived>
◆ setTolerance()
template<typename Derived>
◆ solve() [1/2]
template<typename Derived>
template<typename Rhs >
◆ solve() [2/2]
template<typename Derived>
template<typename Rhs >
◆ tolerance()
template<typename Derived>
◆ m_analysisIsOk
template<typename Derived>
◆ m_error
template<typename Derived>
◆ m_factorizationIsOk
template<typename Derived>
◆ m_info
template<typename Derived>
◆ m_isInitialized
template<typename Derived>
◆ m_iterations
template<typename Derived>
◆ m_maxIterations
template<typename Derived>
◆ m_preconditioner
template<typename Derived>
◆ m_tolerance
template<typename Derived>
◆ mp_matrix
template<typename Derived>
The documentation for this class was generated from the following file: