#include <SGrid.hpp>
Inheritance diagram for SGridTable< T, t_entry >:


Public Member Functions | |
| void | PrintInfo (unsigned disp_type=SG_DISP_RED) |
| Prints the information about the grid table. | |
| int | Dimension () const |
| Returns the dimensionality. | |
| void | AddLevel (int level) |
| Adds a new level with all the entries and the grid functions. | |
| virtual void | CreateGridVec (Array< int > &position, t_entry &vec)=0 |
| User-defined function that resets the sizes of the grid assinged to a given grid table position. By this function the user provides the method of translation of the positions to grid sizes. | |
| virtual GridVec< T > & | Solution (t_entry &entry)=0 |
| User-defined function that returns the reference to the solution kept in the contents of a given grid table entry. | |
| virtual void | InitSolution (t_entry &entry) |
| User-defined function that initializes the grid functions in the contents, for ex. sets the initial conditions. This function should not return any value but may throw an exception on an error. | |
| virtual void | ComputeSolution (t_entry &entry) |
| User-defined function that computes the solution on one grid. This function should not return any value but may throw an exception on an error. | |
| void | InitAllSolutions () |
| Initializes the grid functions on all the grids. | |
| void | ComputeAllSolutions () |
| Computes the grid functions on all the grids. | |
| virtual void | LookAtPartialSol (SGridTableEntry< T, t_entry > &entry) |
| This function servers the debugging. | |
| SGridTable () | |
| The dummy constructor. | |
| SGridTable (int the_dim, int max_level=0) | |
| Creates a blank table. | |
| virtual | ~SGridTable () |
| Virtual destructor. | |
Static Public Member Functions | |
| static long | binom_coef (long r, long k) |
| Computes binomial coefficients. | |
| SGridTable< T, t_entry >::SGridTable | ( | ) | [inline] |
The dummy constructor.
| SGridTable< T, t_entry >::SGridTable | ( | int | the_dim, | |
| int | max_level = 0 | |||
| ) | [inline] |
Creates a blank table.
| [in] | the_dim | The dimensionality |
| [in] | max_level | The finest level |
| virtual SGridTable< T, t_entry >::~SGridTable | ( | ) | [inline, virtual] |
Virtual destructor.
| void SGridTable< T, t_entry >::PrintInfo | ( | unsigned | disp_type = SG_DISP_RED |
) | [inline] |
Prints the information about the grid table.
| [in] | disp_type | How much to print |
| int SGridTable< T, t_entry >::Dimension | ( | ) | const [inline] |
Returns the dimensionality.
| void SGridTable< T, t_entry >::AddLevel | ( | int | level | ) | [inline] |
Adds a new level with all the entries and the grid functions.
| [in] | level | The level to add |
| virtual void SGridTable< T, t_entry >::CreateGridVec | ( | Array< int > & | position, | |
| t_entry & | vec | |||
| ) | [pure virtual] |
User-defined function that resets the sizes of the grid assinged to a given grid table position. By this function the user provides the method of translation of the positions to grid sizes.
| [in] | position | Position in the grid table |
| [in] | vec | The grid function to reset |
Implemented in SparseGridTable< T >.
| virtual GridVec<T>& SGridTable< T, t_entry >::Solution | ( | t_entry & | entry | ) | [pure virtual] |
User-defined function that returns the reference to the solution kept in the contents of a given grid table entry.
| [in] | entry | The entry of the grid table |
Implemented in SparseGridTable< T >.
| virtual void SGridTable< T, t_entry >::InitSolution | ( | t_entry & | entry | ) | [inline, virtual] |
User-defined function that initializes the grid functions in the contents, for ex. sets the initial conditions. This function should not return any value but may throw an exception on an error.
| [in] | entry | The grid table entry to place the solution in |
Reimplemented in SparseGridTable< T >.
| virtual void SGridTable< T, t_entry >::ComputeSolution | ( | t_entry & | entry | ) | [inline, virtual] |
User-defined function that computes the solution on one grid. This function should not return any value but may throw an exception on an error.
| [in] | entry | The grid table entry to place the solution in |
Reimplemented in SparseGridTable< T >.
| void SGridTable< T, t_entry >::InitAllSolutions | ( | ) | [inline] |
Initializes the grid functions on all the grids.
| void SGridTable< T, t_entry >::ComputeAllSolutions | ( | ) | [inline] |
Computes the grid functions on all the grids.
| virtual void SGridTable< T, t_entry >::LookAtPartialSol | ( | SGridTableEntry< T, t_entry > & | entry | ) | [inline, virtual] |
This function servers the debugging.
This function is called during the computation of the combination of the partial solutions, separately for every solution. The USER should override this function to print or plot the partial solution and its factor in the conbination. DO NOT CHANGE anything in the grid-table entry in this function!
| [in] | entry | Table entry of the partial solution. |
| static long SGridTable< T, t_entry >::binom_coef | ( | long | r, | |
| long | k | |||
| ) | [inline, static] |
Computes binomial coefficients.
| [in] | r | r |
| [in] | k | k |
1.5.2