SG++-Doxygen-Documentation
|
Point ordering class that uses the identity mapping to compute a level-independent index (i.e. More...
#include <IdentityPointOrdering.hpp>
Public Member Functions | |
virtual size_t | convertIndex (size_t level, size_t numPoints, size_t index) |
Converts a level-independent index into a corresponding level-dependent index in for the PointDistribution. More... | |
virtual std::shared_ptr< AbstractPermutationIterator > | getSortedPermutationIterator (size_t level, std::vector< double > const &points, size_t numPoints) |
Returns a permutation iterator which first returns the level-independent index of the leftmost point, then the level-independent index of the second-leftmost point, etc. More... | |
IdentityPointOrdering (std::shared_ptr< AbstractGrowthStrategy > growthStrategy, bool isSorted=false) | |
virtual size_t | numPoints (size_t level) |
Returns the number of points in the given level. More... | |
virtual | ~IdentityPointOrdering () |
Public Member Functions inherited from sgpp::combigrid::AbstractPointOrdering | |
virtual | ~AbstractPointOrdering () |
Point ordering class that uses the identity mapping to compute a level-independent index (i.e.
it can be used for non-nested settings or for points which are already ordered correctly, e.g. Leja points). The growth strategy can be configured via a constructor parameter. If isSorted is set to false in the constructor, the sorted permutation is determined using a sorting algorithm.
sgpp::combigrid::IdentityPointOrdering::IdentityPointOrdering | ( | std::shared_ptr< AbstractGrowthStrategy > | growthStrategy, |
bool | isSorted = false |
||
) |
|
virtual |
|
virtual |
Converts a level-independent index into a corresponding level-dependent index in for the PointDistribution.
level | The level where the index is considered |
numPoints | The number of points at the level |
index | The index of the concrete point in the level |
Implements sgpp::combigrid::AbstractPointOrdering.
|
virtual |
Returns a permutation iterator which first returns the level-independent index of the leftmost point, then the level-independent index of the second-leftmost point, etc.
Implements sgpp::combigrid::AbstractPointOrdering.
|
virtual |
Returns the number of points in the given level.
Implements sgpp::combigrid::AbstractPointOrdering.