Allium  0.1.0
allium::CgSolverBase< N > Class Template Referenceabstract

Base for the conjugate gradient method. More...

#include <cg.hpp>

Public Types

using Number = N
 
using Real = real_part_t< N >
 

Public Member Functions

 CgSolverBase (Real tolerance=1e-8)
 
void solve (VectorStorage< N > &solution, const VectorStorage< N > &rhs, InitialGuess initial_guess=InitialGuess::NOT_PROVIDED)
 
int iteration_count ()
 

Protected Member Functions

virtual void matvec (VectorStorage< N > &out, const VectorStorage< N > &in)=0
 

Protected Attributes

Real m_tol
 
int m_iteration_count
 

Detailed Description

template<typename N>
class allium::CgSolverBase< N >

Base for the conjugate gradient method.


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