Jet  v1.3.3
Classes | Namespaces | Functions
cg.h File Reference
#include <jet/blas.h>
#include "detail/cg-inl.h"

Go to the source code of this file.

Classes

struct  jet::NullCgPreconditioner< BlasType >
 No-op preconditioner for conjugate gradient. More...
 

Namespaces

 jet
 

Functions

template<typename BlasType >
void jet::cg (const typename BlasType::MatrixType &A, const typename BlasType::VectorType &b, unsigned int maxNumberOfIterations, double tolerance, typename BlasType::VectorType *x, typename BlasType::VectorType *r, typename BlasType::VectorType *d, typename BlasType::VectorType *q, typename BlasType::VectorType *s, unsigned int *lastNumberOfIterations, double *lastResidualNorm)
 Solves conjugate gradient. More...
 
template<typename BlasType , typename PrecondType >
void jet::pcg (const typename BlasType::MatrixType &A, const typename BlasType::VectorType &b, unsigned int maxNumberOfIterations, double tolerance, PrecondType *M, typename BlasType::VectorType *x, typename BlasType::VectorType *r, typename BlasType::VectorType *d, typename BlasType::VectorType *q, typename BlasType::VectorType *s, unsigned int *lastNumberOfIterations, double *lastResidualNorm)
 Solves pre-conditioned conjugate gradient. More...