![]() |
SG++-Doxygen-Documentation
|
Standard free refinement class for sparse grids with boundaries with a maximal level depth of refinement. More...
#include <HashRefinementBoundariesMaxLevel.hpp>
Public Member Functions | |
| size_t | getNumberOfRefinablePointsToMaxLevel (GridStorage &storage, unsigned int maxLevel) |
| Calculates the number of points, which can be refined. More... | |
| void | refineGridpoint1D (GridStorage &storage, GridPoint &point, size_t d, unsigned int maxLevel) |
| Refine one grid point along a single direction. More... | |
| void | refineToMaxLevel (GridStorage &storage, RefinementFunctor &functor, unsigned int maxLevel) |
| Performs the refinement on grid. More... | |
Public Member Functions inherited from sgpp::base::HashRefinementBoundaries | |
| void | free_refine (GridStorage &storage, RefinementFunctor &functor, std::vector< size_t > *addedPoints=0) override |
| Performs the refinement on grid. More... | |
| size_t | getNumberOfRefinablePoints (GridStorage &storage) override |
| Calculates the number of points, which can be refined. More... | |
| void | refineGridpoint1D (GridStorage &storage, GridPoint &point, size_t d) override |
| Refine one grid point along a single direction. More... | |
Public Member Functions inherited from sgpp::base::AbstractRefinement | |
| virtual size_t | getIndexOfMin (RefinementFunctor::value_type *array, size_t length) |
| Returns the index of the first occurrence of minimal element in array. More... | |
| bool | isRefinable (GridStorage &storage, GridPoint &point) |
| Check if the grid point is refinable. More... | |
| virtual void | refineGridpoint1D (GridStorage &storage, size_t seq, size_t d) |
| Refine one grid point along a single direction. More... | |
| virtual | ~AbstractRefinement () |
| Destructor. More... | |
Protected Member Functions | |
| void | refineGridpoint (GridStorage &storage, size_t refine_index, unsigned int maxLevel) |
| This method refines a grid point be generating the children in every dimension of the grid. More... | |
Protected Member Functions inherited from sgpp::base::HashRefinementBoundaries | |
| virtual void | addElementToCollection (const GridStorage::grid_map_iterator &iter, AbstractRefinement::refinement_list_type current_value_list, size_t refinements_num, AbstractRefinement::refinement_container_type &collection) |
| Adds elements to the collection. More... | |
| void | collectRefinablePoints (GridStorage &storage, RefinementFunctor &functor, AbstractRefinement::refinement_container_type &collection) override |
| Examines the grid points and stores the indices those that can be refined and have maximal indicator values. More... | |
| void | createGridpoint (GridStorage &storage, GridPoint &point) override |
| Wrapper for the two functions create_gridpoint_general and create_gridpoint_levelZeroConsistency which have both to be executed if a gridpoint is refined. More... | |
| void | createGridpoint1D (GridPoint &point, size_t d, GridStorage &storage, index_t &source_index, level_t &source_level) override |
| Creates children grid points along single direction. More... | |
| void | createGridpointGeneral (GridStorage &storage, GridPoint &point) |
| This method creates a new point on the grid. More... | |
| void | createGridpointLevelZeroConsistency (GridStorage &storage, GridPoint &point) |
| Assures that we have always a consistent grid with both functions 0,0 and 0,1 on level zero. More... | |
| AbstractRefinement::refinement_list_type | getIndicator (GridStorage &storage, const GridStorage::grid_map_iterator &iter, const RefinementFunctor &functor) const override |
| Generates a list with indicator elements. More... | |
| void | refineGridpoint (GridStorage &storage, size_t refine_index) override |
| This method refines a grid point be generating the children in every dimension of the grid. More... | |
| void | refineGridpointsCollection (GridStorage &storage, RefinementFunctor &functor, AbstractRefinement::refinement_container_type &collection) override |
| Extends the grid adding elements defined in collection. More... | |
Protected Member Functions inherited from sgpp::base::AbstractRefinement | |
| virtual void | createGridpointSubroutine (GridStorage &storage, GridPoint &point) |
| Subroutine for grid point creation. More... | |
Additional Inherited Members | |
Public Types inherited from sgpp::base::AbstractRefinement | |
| typedef std::vector< refinement_pair_type > | refinement_container_type |
| Container for the collection of the refinement atoms and the corresponding value. More... | |
| typedef AbstractRefinement_refinement_key | refinement_key_type |
| Type of the identifier of the refinement atom (e.g. More... | |
| typedef std::forward_list< AbstractRefinement::refinement_pair_type > | refinement_list_type |
| typedef std::pair< std::shared_ptr< refinement_key_type >, refinement_value_type > | refinement_pair_type |
| Pair for the refinement key and value. More... | |
| typedef double | refinement_value_type |
| Type of functor value assigned to each refinement atom. More... | |
Static Public Member Functions inherited from sgpp::base::AbstractRefinement | |
| static bool | compare_pairs (const refinement_pair_type &lhs, const refinement_pair_type &rhs) |
| Comparison of the refinement_pair_type. More... | |
Standard free refinement class for sparse grids with boundaries with a maximal level depth of refinement.
| size_t sgpp::base::HashRefinementBoundariesMaxLevel::getNumberOfRefinablePointsToMaxLevel | ( | GridStorage & | storage, |
| unsigned int | maxLevel | ||
| ) |
Calculates the number of points, which can be refined.
| storage | hashmap that stores the grid points |
| maxLevel | no points on higher levels than maxLevel will be created |
References sgpp::base::HashGridStorage::begin(), analyse_erg::counter, sgpp::base::HashGridStorage::end(), sgpp::base::HashGridStorage::find(), sgpp::base::HashGridPoint::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridStorage::getSize(), chess::point, and sgpp::base::HashGridPoint::set().
Referenced by sgpp::base::StretchedBoundaryGridGenerator::getNumberOfRefinablePointsToMaxLevel(), sgpp::base::L0BoundaryGridGenerator::getNumberOfRefinablePointsToMaxLevel(), and sgpp::base::BoundaryGridGenerator::getNumberOfRefinablePointsToMaxLevel().
|
protected |
This method refines a grid point be generating the children in every dimension of the grid.
| storage | hashmap that stores the gridpoints |
| refine_index | the index in the hashmap of the point that should be refined |
| maxLevel | no points on higher levels than maxLevel will be created |
References sgpp::base::HashGridStorage::getDimension(), chess::point, and refineGridpoint1D().
Referenced by refineToMaxLevel().
| void sgpp::base::HashRefinementBoundariesMaxLevel::refineGridpoint1D | ( | GridStorage & | storage, |
| GridPoint & | point, | ||
| size_t | d, | ||
| unsigned int | maxLevel | ||
| ) |
Refine one grid point along a single direction.
| storage | hashmap that stores the grid points |
| point | point to refine |
| d | direction |
| maxLevel | no points on higher levels than maxLevel will be created |
References sgpp::base::HashRefinementBoundaries::createGridpoint(), sgpp::base::HashGridPoint::get(), sgpp::base::HashGridStorage::isContaining(), sgpp::base::HashGridPoint::set(), and sgpp::base::HashGridPoint::setLeaf().
Referenced by refineGridpoint().
| void sgpp::base::HashRefinementBoundariesMaxLevel::refineToMaxLevel | ( | GridStorage & | storage, |
| RefinementFunctor & | functor, | ||
| unsigned int | maxLevel | ||
| ) |
Performs the refinement on grid.
| storage | hashmap that stores the grid points |
| functor | a function used to determine if refinement is needed |
| maxLevel | no points on higher levels than maxLevel will be created |
References sgpp::base::HashGridStorage::begin(), sgpp::base::HashGridStorage::end(), sgpp::base::HashGridStorage::find(), sgpp::base::HashGridPoint::get(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::AbstractRefinement::getIndexOfMin(), sgpp::base::RefinementFunctor::getRefinementsNum(), sgpp::base::RefinementFunctor::getRefinementThreshold(), sgpp::base::HashGridStorage::getSize(), python.statsfileInfo::i, chess::point, refineGridpoint(), sgpp::base::HashGridPoint::set(), and sgpp::base::RefinementFunctor::start().
Referenced by sgpp::base::StretchedBoundaryGridGenerator::refineMaxLevel(), sgpp::base::L0BoundaryGridGenerator::refineMaxLevel(), and sgpp::base::BoundaryGridGenerator::refineMaxLevel().