dune-common 2.1.1
Public Member Functions
Dune::fmatrix_assigner< T, n, m > Class Template Reference

fvector assignment operator More...

#include <dune/common/fassign.hh>

List of all members.

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.

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;

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