|
| IterativeSolverBase () |
| Default constructor. More...
|
|
template<typename MatrixDerived > |
| IterativeSolverBase (const EigenBase< MatrixDerived > &A) |
| Initialize the solver with matrix A for further Ax=b solving. More...
|
|
| ~IterativeSolverBase () |
|
template<typename MatrixDerived > |
Derived & | analyzePattern (const EigenBase< MatrixDerived > &A) |
| Initializes the iterative solver for the sparsity pattern of the matrix A for further solving Ax=b problems. More...
|
|
template<typename MatrixDerived > |
Derived & | factorize (const EigenBase< MatrixDerived > &A) |
| Initializes the iterative solver with the numerical values of the matrix A for further solving Ax=b problems. More...
|
|
template<typename MatrixDerived > |
Derived & | compute (const EigenBase< MatrixDerived > &A) |
| Initializes the iterative solver with the matrix A for further solving Ax=b problems. More...
|
|
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
|
RealScalar | tolerance () const |
|
Derived & | setTolerance (const RealScalar &tolerance) |
| Sets the tolerance threshold used by the stopping criteria. More...
|
|
Preconditioner & | preconditioner () |
|
const Preconditioner & | preconditioner () const |
|
Index | maxIterations () const |
|
Derived & | setMaxIterations (Index maxIters) |
| Sets the max number of iterations. More...
|
|
Index | iterations () const |
|
RealScalar | error () const |
|
template<typename Rhs , typename Guess > |
const SolveWithGuess< Derived, Rhs, Guess > | solveWithGuess (const MatrixBase< Rhs > &b, const Guess &x0) const |
|
ComputationInfo | info () 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 |
|
template<typename Rhs , typename Dest > |
void | _solve_impl (const Rhs &b, Dest &x) const |
|
Derived & | derived () |
|
const Derived & | derived () const |
|
| SparseSolverBase () |
| Default constructor. More...
|
|
| ~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 Derived>
class Eigen::IterativeSolverBase< Derived >
Base class for linear iterative solvers.
- See also
- class SimplicialCholesky, DiagonalPreconditioner, IdentityPreconditioner
template<typename Derived >
template<typename MatrixDerived >
Initializes the iterative solver for the sparsity pattern of the matrix A for further solving Ax=b
problems.
Currently, this function mostly calls analyzePattern on the preconditioner. In the future we might, for instance, implement column reordering for faster matrix vector products.
template<typename Derived >
template<typename MatrixDerived >
Initializes the iterative solver with the matrix A for further solving Ax=b
problems.
Currently, this function mostly initializes/computes the preconditioner. In the future we might, for instance, implement column reordering 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.