VecAccumulator< T > Class Template Reference

Identity interpolation. More...

#include <SGrid.hpp>

Inheritance diagram for VecAccumulator< T >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

small_matrix< T > & Matrix ()
 Returns the reference to the solution.
Solution ()
 Returns the reference to the solution in the scalar case.
void Rewind ()
 Sets the values to zero.
void AddGridVec (T factor, GridVec< T > &vec)
 Adds a grid function to the current combination.
 VecAccumulator (int the_vec_no, int n_rows=1, int n_cols=1)
 Constructor.

Detailed Description

template<typename T>
class VecAccumulator< T >

Identity interpolation.

No interpolation at all, merely the identity function. The grid function is considered as an array of values of a matrix of a given size. (This, the grid functions should have a fixed number of the entries.) These values are multiplied by the given factor and added to the 'solution'


Constructor & Destructor Documentation

template<typename T>
VecAccumulator< T >::VecAccumulator ( int  the_vec_no,
int  n_rows = 1,
int  n_cols = 1 
) [inline]

Constructor.

Parameters:
[in] the_vec_no The index of the grid function in the grid vecs
[in] n_rows Number of rows of the matrix
[in] n_cols Number of columns of the matrix


Member Function Documentation

template<typename T>
small_matrix<T>& VecAccumulator< T >::Matrix (  )  [inline]

Returns the reference to the solution.

template<typename T>
T VecAccumulator< T >::Solution (  )  [inline]

Returns the reference to the solution in the scalar case.

template<typename T>
void VecAccumulator< T >::Rewind (  )  [inline, virtual]

Sets the values to zero.

Implements GridVecInterpolation< T >.

template<typename T>
void VecAccumulator< T >::AddGridVec ( factor,
GridVec< T > &  vec 
) [inline, virtual]

Adds a grid function to the current combination.

Parameters:
[in] factor The factor to multiply the grid function by
[in] vec The grid function to add

Implements GridVecInterpolation< T >.


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