dune-common 2.1.1
|
fvector assignment operator More...
#include <dune/common/fassign.hh>
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_assigner & | append (const T &t) |
append data to this matrix | |
fmatrix_assigner & | append (Zero z) |
append zeros to this matrix | |
fmatrix_assigner & | append (NextRow nr) |
append zeros to this matrix | |
fmatrix_assigner & | operator, (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_assigner & | operator, (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_assigner & | operator, (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. |
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;