Dune::fmatrix_assigner< T, n, m > Class Template Reference

#include <fassign.hh>

List of all members.


Detailed Description

template<class T, int n, int m>
class Dune::fmatrix_assigner< T, n, m >

fvector assignment operator

overload operator <<= for fvector assignment from Dune::Zero

after including fassing.hh you can easily assign data to a FieldVector using

  FieldVector<double, 4> x; x <<= 1.0, 4.0, 10.0, 11.0;

The operator checks that the whole vector is initalized. In case you know that all following entries will be zero padded, you can use

  FieldVector<double, 40> x; x <<= 1.0, 4.0, 10.0, 11.0, zero;

Public Member Functions

 fmatrix_assigner (fmatrix_assigner &a)
 Copy Constructor.
 fmatrix_assigner (FieldMatrix< T, n, m > &_A, bool t)
 Constructor from matrix and temporary flag.
 ~fmatrix_assigner ()
 Destructor checks for complete initialization of the matrix. The check is skipped, if this object is marked temporary.
fmatrix_assignerappend (const T &t)
 append data to this matrix
fmatrix_assignerappend (Zero z)
 append zeros to this matrix
fmatrix_assignerappend (NextRow nr)
 append zeros to this matrix
fmatrix_assigneroperator, (const T &t)
 append data to this matrix the overloaded comma operator is used to assign a comma seperated list of values to the matrix
fmatrix_assigneroperator, (Zero z)
 append zeros to this matrix the overloaded comma operator is used to stop the assign of values to the matrix, all remaining entries are assigned 0.
fmatrix_assigneroperator, (NextRow nr)
 append zeros to this matrix the overloaded comma operator is used to stop the assign of values to the matrix, all remaining entries are assigned 0.

Constructor & Destructor Documentation

template<class T, int n, int m>
Dune::fmatrix_assigner< T, n, m >::fmatrix_assigner ( FieldMatrix< T, n, m > &  _A,
bool  t 
) [inline]

Constructor from matrix and temporary flag.

Parameters:
v matrix which should be initialized
t bool indicating, that this is a temporary object (see ~fmatrix_assigner)


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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].