Loading...
Searching...
No Matches
MG.hpp
Go to the documentation of this file.
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
std::function< void(const typename BlasType::VectorType &finer, typename BlasType::VectorType *coarser)> MGRestrictFunc
Multi-grid restriction function type.
Definition MG.hpp:52
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.hpp:46
std::function< void(const typename BlasType::VectorType &coarser, typename BlasType::VectorType *finer)> MGCorrectFunc
Multi-grid correction function type.
Definition MG.hpp:58
MGResult MGVCycle(const MGMatrix< BlasType > &A, MGParameters< BlasType > params, MGVector< BlasType > *x, MGVector< BlasType > *b, MGVector< BlasType > *buffer)
Performs Multi-grid with V-cycle.
Definition MG-Impl.hpp:131
const BlasType::MatrixType & operator[](size_t i) const
Definition MG-Impl.hpp:81
unsigned int numberOfCorrectionIter
Number of iteration at correction step.
Definition MG.hpp:71
unsigned int numberOfCoarsestIter
Number of iteration at coarsest step.
Definition MG.hpp:74
size_t maxNumberOfLevels
Max number of multi-grid levels.
Definition MG.hpp:65
unsigned int numberOfFinalIter
Number of iteration at final step.
Definition MG.hpp:77
MGRestrictFunc< BlasType > restrictFunc
Restrict function that maps finer to coarser grid.
Definition MG.hpp:83
MGRelaxFunc< BlasType > relaxFunc
Relaxation function such as Jacobi or Gauss-Seidel.
Definition MG.hpp:80
MGCorrectFunc< BlasType > correctFunc
Correction function that maps coarser to finer grid.
Definition MG.hpp:86
unsigned int numberOfRestrictionIter
Number of iteration at restriction step.
Definition MG.hpp:68
double lastResidualNorm
Lastly measured norm of residual.
Definition MG.hpp:96
const BlasType::VectorType & operator[](size_t i) const
Definition MG-Impl.hpp:106
1.9.8