MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
sfm::ba::ConjugateGradient< T > Class Template Reference

#include <ba_conjugate_gradient.h>

Classes

class  Functor
 
struct  Options
 
struct  Status
 

Public Types

typedef SparseMatrix< T > Matrix
 
enum  ReturnInfo { CG_CONVERGENCE , CG_MAX_ITERATIONS , CG_INVALID_INPUT }
 
typedef DenseVector< T > Vector
 

Public Member Functions

 ConjugateGradient (Options const &opts)
 
Status solve (Functor const &A, Vector const &b, Vector *x, Functor const *P=nullptr)
 
Status solve (Matrix const &A, Vector const &b, Vector *x, Matrix const *P=nullptr)
 

Detailed Description

template<typename T>
class sfm::ba::ConjugateGradient< T >

Definition at line 21 of file ba_conjugate_gradient.h.

Member Typedef Documentation

◆ Matrix

template<typename T >
typedef SparseMatrix<T> sfm::ba::ConjugateGradient< T >::Matrix

Definition at line 24 of file ba_conjugate_gradient.h.

◆ Vector

template<typename T >
typedef DenseVector<T> sfm::ba::ConjugateGradient< T >::Vector

Definition at line 25 of file ba_conjugate_gradient.h.

Member Enumeration Documentation

◆ ReturnInfo

template<typename T >
enum sfm::ba::ConjugateGradient::ReturnInfo
Enumerator
CG_CONVERGENCE 
CG_MAX_ITERATIONS 
CG_INVALID_INPUT 

Definition at line 27 of file ba_conjugate_gradient.h.

Constructor & Destructor Documentation

◆ ConjugateGradient()

template<typename T >
sfm::ba::ConjugateGradient< T >::ConjugateGradient ( Options const &  opts)
inline

Definition at line 102 of file ba_conjugate_gradient.h.

Member Function Documentation

◆ solve() [1/2]

template<typename T >
ConjugateGradient< T >::Status sfm::ba::ConjugateGradient< T >::solve ( Functor const &  A,
Vector const &  b,
Vector x,
Functor const *  P = nullptr 
)

Definition at line 120 of file ba_conjugate_gradient.h.

◆ solve() [2/2]

template<typename T >
ConjugateGradient< T >::Status sfm::ba::ConjugateGradient< T >::solve ( Matrix const &  A,
Vector const &  b,
Vector x,
Matrix const *  P = nullptr 
)
inline

Definition at line 110 of file ba_conjugate_gradient.h.


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