version 0.4
Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ > Class Template Reference

Iterative solver for solving linear systems using the truncated conjugate gradient method. More...

#include <ikarus/linearalgebra/truncatedconjugategradient.hh>

Inheritance diagram for Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >:
[legend]

Public Types

enum  { UpLo = UpLo_ }
 
typedef IterativeSolverBase< TruncatedConjugateGradientBase
 
typedef MatrixType_ MatrixType
 
typedef MatrixType::Scalar Scalar
 
typedef MatrixType::RealScalar RealScalar
 
typedef Preconditioner_ Preconditioner
 

Public Member Functions

 TruncatedConjugateGradient (TruncatedConjugateGradient &&other) noexcept
 
TCGInfo< typename MatrixType::RealScalar > getInfo ()
 Get information about the truncated conjugate gradient algorithm. More...
 
void setInfo (TCGInfo< typename MatrixType::RealScalar > _alginfo)
 Set information about the truncated conjugate gradient algorithm. More...
 
 TruncatedConjugateGradient ()
 
template<typename MatrixDerived >
 TruncatedConjugateGradient (const EigenBase< MatrixDerived > &A)
 
 ~TruncatedConjugateGradient ()
 
template<typename Rhs , typename Dest >
void _solve_vector_with_guess_impl (const Rhs &b, Dest &x) const
 

Detailed Description

template<typename MatrixType_, int UpLo_, typename Preconditioner_>
class Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >
Template Parameters
MatrixType_Type of the matrix A.
UpLo_Type of the triangular part of the matrix (Lower or Upper or both).
Preconditioner_Type of the preconditioner.

Member Typedef Documentation

◆ Base

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
typedef IterativeSolverBase<TruncatedConjugateGradient> Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::Base

◆ MatrixType

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
typedef MatrixType_ Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::MatrixType

◆ Preconditioner

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
typedef Preconditioner_ Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::Preconditioner

◆ RealScalar

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
typedef MatrixType::RealScalar Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::RealScalar

◆ Scalar

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
typedef MatrixType::Scalar Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::Scalar

Member Enumeration Documentation

◆ anonymous enum

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
anonymous enum
Enumerator
UpLo 

Constructor & Destructor Documentation

◆ TruncatedConjugateGradient() [1/3]

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::TruncatedConjugateGradient ( TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ > &&  other)
inlinenoexcept

◆ TruncatedConjugateGradient() [2/3]

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::TruncatedConjugateGradient ( )
inline

Default constructor.

◆ TruncatedConjugateGradient() [3/3]

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
template<typename MatrixDerived >
Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::TruncatedConjugateGradient ( const EigenBase< MatrixDerived > &  A)
inlineexplicit

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.

◆ ~TruncatedConjugateGradient()

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::~TruncatedConjugateGradient ( )
inline

Member Function Documentation

◆ _solve_vector_with_guess_impl()

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
template<typename Rhs , typename Dest >
void Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::_solve_vector_with_guess_impl ( const Rhs &  b,
Dest &  x 
) const
inline

◆ getInfo()

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
TCGInfo< typename MatrixType::RealScalar > Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::getInfo ( )
inline
Returns
Information about the algorithm.

◆ setInfo()

template<typename MatrixType_ , int UpLo_, typename Preconditioner_ >
void Eigen::TruncatedConjugateGradient< MatrixType_, UpLo_, Preconditioner_ >::setInfo ( TCGInfo< typename MatrixType::RealScalar >  _alginfo)
inline
Parameters
_alginfoInformation about the algorithm.

The documentation for this class was generated from the following file: