LoAdSG
AdaptiveSparseGrid_Base Class Reference

#include <sparseGrid.h>

Inheritance diagram for AdaptiveSparseGrid_Base:

Public Member Functions

void printCoordinates ()
 Prints coordinates of adaptive sparse grid.

 
void Print_gnu (string name)
 Prints coordinates of adaptive sparse grid in gnu-file.
 
void PrintActiveHanging (int level)
 prints active nodes (o) and hanging nodes (x)
 
void PrintGridIndices (int level, IndexDimension *Indices, int numberofindices)
 prints all nodes and highlights given Indices
 
bool occupied (unsigned long &indexOfData, IndexDimension I)
 
IndexDimension getIndexOfTable (unsigned long i)
 
unsigned long hash (IndexDimension index)
 

Protected Member Functions

 AdaptiveSparseGrid_Base ()
 
unsigned long getFreeSpaceNumberInSecondTable ()
 

Protected Attributes

unsigned long * secondTable
 

‍0 means empty; v>0 means v-1 is array index


 
bool * isActiveNodeTable
 

‍0 means empty; 1 means occupied, but no next; v>1 means v-2 is next array index


 
int * indicesSecondTable
 

‍true means AdaptiveSparseGrid_Base::getIndexOfTable (i) is active node.


 
int * indicesSupportMin
 

‍Contains coded indices. Length: secondTableLength*DimensionSparseGrid


 

Detailed Description

adaptive sparse grid

                           |       |        |       |
                           |       |        |       | <--- minimalEmpty
                           | prime |        |second | 
(index,...) ------------>  | table | -----> |table  | <--|
            hashfunction   |       |        |       |    |
                           |       |        |       | ---|

Constructor & Destructor Documentation

◆ AdaptiveSparseGrid_Base()

AdaptiveSparseGrid_Base::AdaptiveSparseGrid_Base ( )
protected

>for every point we need to store three indices i.e. i_x and i_y

>for every point we need to store three indices i.e. i_x and i_y

>for every point we need to store three indices i.e. i_x and i_y

Member Function Documentation

◆ getFreeSpaceNumberInSecondTable()

unsigned long AdaptiveSparseGrid_Base::getFreeSpaceNumberInSecondTable ( )
protected
Returns
index k such that secondTable[k] is empty
Here is the caller graph for this function:

◆ getIndexOfTable()

IndexDimension AdaptiveSparseGrid_Base::getIndexOfTable ( unsigned long  i)
inline
Parameters
ikodierung des Index als langer unsigned long
Returns
IndexDimension "=(i_1,...,i_d)"
Here is the caller graph for this function:

◆ hash()

unsigned long AdaptiveSparseGrid_Base::hash ( IndexDimension  index)
inline
Returns
unsigned key
Here is the caller graph for this function:

◆ occupied()

bool AdaptiveSparseGrid_Base::occupied ( unsigned long &  indexOfData,
IndexDimension  I 
)
inline

schaut nach ob Punkt im Gitter ist

Parameters
Iindex des Punktes
indexOfDatareturn: index der daten, falls Punkt im Gitter ist
Returns
true, false je nachdem ob Punkt im Gitter ist
Here is the caller graph for this function:

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