Dune Core Modules (2.4.1)

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

fmatrix 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. More...
 
 ~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)
 move to next row of the matrix
 
fmatrix_assigneroperator, (const T &t)
 append data to this matrix the overloaded comma operator is used to assign a comma separated 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 current row, it will be checked whether all entries have been assigned values.
 

Detailed Description

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

fmatrix assignment operator

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

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

FieldMatrix<double, 2,2> x; x <<= 1.0, 4.0, nextRow, 10.0, 11.0;
A dense n x m matrix.
Definition: fmatrix.hh:67

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

FieldMatrix<double, 4, 4> x; x <<= 1.0, zero, nextRow, 10.0, 11.0;

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)