CG.hpp File Reference

Go to the source code of this file.

Classes

struct  CubbyFlow::NullCGPreconditioner< BLASType >
 No-op pre-conditioner for conjugate gradient. More...
 

Namespaces

 CubbyFlow
 

Functions

template<typename BLASType >
void CubbyFlow::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 CubbyFlow::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...