SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::combigrid::AveragingPriorityEstimator Class Reference

the AveragingLevelManager from holzmudd's combigrid module: The priority returned is the average of delta divided by the number of grid points (as a measure for work intensity) over all the predecessor grids. More...

#include <AveragingPriorityEstimator.hpp>

Inheritance diagram for sgpp::combigrid::AveragingPriorityEstimator:
sgpp::combigrid::PriorityEstimator

Public Member Functions

 AveragingPriorityEstimator (FullGrid::LevelOccupancy levelOccupancy=FullGrid::LevelOccupancy::TwoToThePowerOfL)
 
double estimatePriority (const LevelVector &levelVector, const std::map< LevelVector, double > &deltasOfDownwardNeighbors) const override
 get a priority estimate based on the downward neighbors' deltas
 
- Public Member Functions inherited from sgpp::combigrid::PriorityEstimator
virtual ~PriorityEstimator ()
 empty virtual destructor
 

Detailed Description

the AveragingLevelManager from holzmudd's combigrid module: The priority returned is the average of delta divided by the number of grid points (as a measure for work intensity) over all the predecessor grids.

Constructor & Destructor Documentation

◆ AveragingPriorityEstimator()

sgpp::combigrid::AveragingPriorityEstimator::AveragingPriorityEstimator ( FullGrid::LevelOccupancy  levelOccupancy = FullGrid::LevelOccupancy::TwoToThePowerOfL)

Member Function Documentation

◆ estimatePriority()

double sgpp::combigrid::AveragingPriorityEstimator::estimatePriority ( const LevelVector levelVector,
const std::map< LevelVector, double > &  deltasOfDownwardNeighbors 
) const
overridevirtual

get a priority estimate based on the downward neighbors' deltas

Parameters
levelVectorthe level of the level vector considered
deltasOfDownwardNeighborsthe levels and deltas of the downward neighbors of levelVector
Returns
double the priority

Implements sgpp::combigrid::PriorityEstimator.

References sgpp::combigrid::FullGrid::getNumberOfPointsFromLevel().


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