SG++-Doxygen-Documentation
|
Stores necessary information about the computation status of a level. More...
#include <LevelHelpers.hpp>
Public Member Functions | |
LevelInfo (size_t numPredecessors, size_t maxNewPoints, size_t numPoints) | |
Creates a new level in its earliest stage. More... | |
LevelInfo (double norm, size_t maxNewPoints, size_t numPoints) | |
Creates a new level in its latest stage, where everything has already been computed. More... | |
void | setPriority (MultiIndexQueue &queue, double priority) |
Updates the priority of this level in the priority queue. More... | |
Public Attributes | |
ComputationStage | computationStage |
The stage of computation of this level. More... | |
std::shared_ptr< MultiIndexQueue::handle_type > | handle |
Handle to the queue entry if there is any. More... | |
size_t | maxNewPoints |
Number of new function evaluations (grid points) that have to be done to add this level. More... | |
double | norm |
Norm of the difference (Delta) of this level (if already computed, zero otherwise). More... | |
size_t | numNotCompletedPredecessors |
Number of predecessor levels which are not in status ComputationStage::COMPLETED. More... | |
size_t | numNotStartedPredecessors |
Number of predecessor levels which are in status ComputationStage::NOT_STARTED. More... | |
size_t | numPoints |
Number of grid points in this level. More... | |
double | priority |
priority of the level used for adaptive refinement More... | |
Stores necessary information about the computation status of a level.
This is necessary for adaptive level generation.
|
inlineexplicit |
Creates a new level in its earliest stage.
This means that it is not ready for computation yet.
|
inlineexplicit |
Creates a new level in its latest stage, where everything has already been computed.
|
inline |
Updates the priority of this level in the priority queue.
References sgpp::combigrid::QueueEntry::priority, and sgpp::combigrid::BinaryHeap< T, Comparator >::update().
ComputationStage sgpp::combigrid::LevelInfo::computationStage |
The stage of computation of this level.
std::shared_ptr<MultiIndexQueue::handle_type> sgpp::combigrid::LevelInfo::handle |
Handle to the queue entry if there is any.
Via this handle, the QueueEntry can be retrieved and its priority can be updated.
size_t sgpp::combigrid::LevelInfo::maxNewPoints |
Number of new function evaluations (grid points) that have to be done to add this level.
double sgpp::combigrid::LevelInfo::norm |
Norm of the difference (Delta) of this level (if already computed, zero otherwise).
Referenced by python.uq.dists.MultivariateNormal.MultivariateNormal::pdf().
size_t sgpp::combigrid::LevelInfo::numNotCompletedPredecessors |
Number of predecessor levels which are not in status ComputationStage::COMPLETED.
size_t sgpp::combigrid::LevelInfo::numNotStartedPredecessors |
Number of predecessor levels which are in status ComputationStage::NOT_STARTED.
If this is > 0, then the computation for this level may not be started (to avoid evaluating the function multiple times at the same point).
size_t sgpp::combigrid::LevelInfo::numPoints |
Number of grid points in this level.
double sgpp::combigrid::LevelInfo::priority |
priority of the level used for adaptive refinement