SG++-Doxygen-Documentation
|
This class can be used to generate multi-indices with bounded 1-norm. More...
#include <BoundedSumMultiIndexIterator.hpp>
Public Member Functions | |
BoundedSumMultiIndexIterator (size_t dim, size_t maxIndexSum) | |
size_t | indexAt (size_t d) const |
Returns a particular component (in dimension d, starting from 0) of the current multi-index. More... | |
bool | isValid () |
The iterator is valid iff the current value exists (i. More... | |
int | moveToNext () |
Moves the iterator forward to the next multi-index. More... | |
void | reset () |
Start again from the beginning of the sequence. More... | |
MultiIndex & | value () |
Returns the current multi-index. More... | |
This class can be used to generate multi-indices with bounded 1-norm.
For example, using a BoundedSumMultiIndexIterator with dim = 2 and maxIndexSum = 2 will generate the indices (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (2, 0).
|
inline |
|
inline |
Returns a particular component (in dimension d, starting from 0) of the current multi-index.
|
inline |
The iterator is valid iff the current value exists (i.
e. the end of the sequence has not been reached yet).
Referenced by sgpp::combigrid::LevelManager::getRegularLevels(), and sgpp::combigrid::LevelManager::getRegularLevelsByNumPoints().
|
inline |
Moves the iterator forward to the next multi-index.
Referenced by sgpp::combigrid::LevelManager::getRegularLevels(), and sgpp::combigrid::LevelManager::getRegularLevelsByNumPoints().
|
inline |
Start again from the beginning of the sequence.
References python.statsfileInfo::i.
|
inline |
Returns the current multi-index.
Referenced by sgpp::combigrid::LevelManager::getRegularLevels(), and sgpp::combigrid::LevelManager::getRegularLevelsByNumPoints().