MG.h
Go to the documentation of this file.
unsigned int numberOfRestrictionIter
Number of iteration at restriction step.
Definition: MG.h:66
size_t maxNumberOfLevels
Max number of multi-grid levels.
Definition: MG.h:63
MGRelaxFunc< BlasType > relaxFunc
Relaxation function such as Jacobi or Gauss-Seidel.
Definition: MG.h:78
const BlasType::VectorType & operator[](size_t i) const
Definition: MG-Impl.h:101
std::function< void(const typename BlasType::VectorType &finer, typename BlasType::VectorType *coarser)> MGRestrictFunc
Multi-grid restriction function type.
Definition: MG.h:50
std::function< void(const typename BlasType::VectorType &coarser, typename BlasType::VectorType *finer)> MGCorrectFunc
Multi-grid correction function type.
Definition: MG.h:56
std::function< void(const typename BlasType::MatrixType &A, const typename BlasType::VectorType &b, unsigned int numberOfIterations, double maxTolerance, typename BlasType::VectorType *x, typename BlasType::VectorType *buffer)> MGRelaxFunc
Multi-grid relax function type.
Definition: MG.h:44
unsigned int numberOfCoarsestIter
Number of iteration at coarsest step.
Definition: MG.h:72
MGResult MGCycle(const MGMatrix< BlasType > &A, MGParameters< BlasType > params, MGVector< BlasType > *x, MGVector< BlasType > *b, MGVector< BlasType > *buffer)
Performs Multi-grid with V-cycle.
unsigned int numberOfFinalIter
Number of iteration at final step.
Definition: MG.h:75
Definition: pybind11Utils.h:24
unsigned int numberOfCorrectionIter
Number of iteration at correction step.
Definition: MG.h:69
double lastResidualNorm
Lastly measured norm of residual.
Definition: MG.h:94
MGCorrectFunc< BlasType > correctFunc
Correction function that maps coarser to finer grid.
Definition: MG.h:84
const BlasType::MatrixType & operator[](size_t i) const
Definition: MG-Impl.h:77
MGRestrictFunc< BlasType > restrictFunc
Restrict function that maps finer to coarser grid.
Definition: MG.h:81