AdaptiveCombinationTechnique< T > Class Template Reference

This is a "user interface" for the grid table. More...

#include <SparseGrid.hpp>

Inheritance diagram for AdaptiveCombinationTechnique< T >:

Inheritance graph
[legend]
Collaboration diagram for AdaptiveCombinationTechnique< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AdaptiveCombinationTechnique ()
 AdaptiveCombinationTechnique (int d, int maxLev)
int Initialize (int d, int maxLev)
 Set up the sparse grid in d dimensions and with a maximum of maxLev levels.
int GetRefinedGrids (List< Array< int > > &newGrids)
int SetSolutions (List< singleGridData< T > > &newSols)
 Refine the grid adaptively and return the new grid levels.
int GetValue (double)
 Get the single value, on which adaptivity is based, combined for the sparse grid.
int GetSolution (SparseGrid< T > &sg)
 Get the sparse grid solution sg, where in the single grid data
  • position... the grid levels
  • data..... the grid solution
  • weight.... the weight of the solution in the sparse grid.

int SetSolution (SparseGrid< T > &sg)
 Set the sparse grid solution sg, parameters as in GetSolution.
int PrintPattern2d ()

Detailed Description

template<typename T>
class AdaptiveCombinationTechnique< T >

This is a "user interface" for the grid table.

Information is exchanged via the regular grids that constitute the sparse grid also a parameter can be provided on which adaptivity is based.


Constructor & Destructor Documentation

template<typename T>
AdaptiveCombinationTechnique< T >::AdaptiveCombinationTechnique (  )  [inline]

template<typename T>
AdaptiveCombinationTechnique< T >::AdaptiveCombinationTechnique ( int  d,
int  maxLev 
) [inline]


Member Function Documentation

template<typename T>
int AdaptiveCombinationTechnique< T >::Initialize ( int  d,
int  maxLev 
) [inline]

Set up the sparse grid in d dimensions and with a maximum of maxLev levels.

Note:
maxLev can be chosen very large, because no memory for grids etc is allocated yet.

template<typename T>
int AdaptiveCombinationTechnique< T >::GetRefinedGrids ( List< Array< int > > &  newGrids  )  [inline]

template<typename T>
int AdaptiveCombinationTechnique< T >::SetSolutions ( List< singleGridData< T > > &  newSols  )  [inline]

Refine the grid adaptively and return the new grid levels.

Parameters:
[in] newSols A list of grid solutions to be included in the sparse grid.
Note:

-newSols.data..... the grid values of the solution, if they should be stored (NULL otherwise) -newSols.param.... the scalar derived value, on which adaptivity will be based

template<typename T>
int AdaptiveCombinationTechnique< T >::GetValue ( double   ) 

Get the single value, on which adaptivity is based, combined for the sparse grid.

template<typename T>
int AdaptiveCombinationTechnique< T >::GetSolution ( SparseGrid< T > &  sg  )  [inline]

Get the sparse grid solution sg, where in the single grid data

template<typename T>
int AdaptiveCombinationTechnique< T >::SetSolution ( SparseGrid< T > &  sg  )  [inline]

Set the sparse grid solution sg, parameters as in GetSolution.

template<typename T>
int AdaptiveCombinationTechnique< T >::PrintPattern2d (  )  [inline]


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 12:34:04 2007 for SG2 by  doxygen 1.5.2