#include <SGrid.hpp>
Inheritance diagram for VecAccumulator< T >:


Public Member Functions | |
| small_matrix< T > & | Matrix () |
| Returns the reference to the solution. | |
| T | 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. | |
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'
| VecAccumulator< T >::VecAccumulator | ( | int | the_vec_no, | |
| int | n_rows = 1, |
|||
| int | n_cols = 1 | |||
| ) | [inline] |
Constructor.
| [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 |
| small_matrix<T>& VecAccumulator< T >::Matrix | ( | ) | [inline] |
Returns the reference to the solution.
| T VecAccumulator< T >::Solution | ( | ) | [inline] |
Returns the reference to the solution in the scalar case.
| void VecAccumulator< T >::Rewind | ( | ) | [inline, virtual] |
| void VecAccumulator< T >::AddGridVec | ( | T | factor, | |
| GridVec< T > & | vec | |||
| ) | [inline, virtual] |
Adds a grid function to the current combination.
| [in] | factor | The factor to multiply the grid function by |
| [in] | vec | The grid function to add |
Implements GridVecInterpolation< T >.
1.5.2