HILA
Loading...
Searching...
No Matches
CG< Op > Class Template Reference

The conjugate gradient operator. Applies the inverse square of an operator on a vector. More...

#include <conjugate_gradient.h>

Public Types

using vector_type = typename Op::vector_type
 Get the type the operator applies to.
 

Public Member Functions

 CG (Op &op)
 Constructor: initialize the operator.
 
 CG (Op &op, double _accuracy)
 Constructor: operator and accuracy.
 
 CG (Op &op, double _accuracy, int _maxiters)
 Constructor: operator, accuracy and maximum number of iterations.
 
void apply (Field< vector_type > &in, Field< vector_type > &out)
 

Detailed Description

template<typename Op>
class CG< Op >

The conjugate gradient operator. Applies the inverse square of an operator on a vector.

Definition at line 19 of file conjugate_gradient.h.

Member Function Documentation

◆ apply()

template<typename Op >
void CG< Op >::apply ( Field< vector_type > &  in,
Field< vector_type > &  out 
)
inline

The apply() -member runs the full conjugate gradient The operators themselves have the same structure. The conjugate gradient operator is Hermitean, so there is no dagger().

Definition at line 46 of file conjugate_gradient.h.


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