32 explicit Zero (
int) {};
34 operator double () {
return 0.0; }
36 operator int () {
return 0; }
69 template <
class T,
int s>
93 if (!temporary && c!=s)
95 " entries to a FieldVector of size " << s);
108 while (c!=s) v[c++] = 0;
135 template <
class T,
class K,
int s>
146 template <
class T,
int s>
172 template <
class T,
int n,
int m>
173 class fmatrix_assigner
176 FieldMatrix<T,n,m> & A;
184 if (!temporary && c!=m && !thrown) {
186 DUNE_THROW(MathError,
"Trying to assign " << c <<
187 " entries to a FieldMatrix row of size " << m);
209 if (!temporary && r!=n-1 && !thrown) {
212 " rows to a FieldMatrix of size " << n <<
" x " << m);
222 " rows to a FieldMatrix of size " << n <<
" x " << m);
232 while (c!=m) A[r][c++] = 0;
277 template <
class T,
class K,
int n,
int m>
288 template <
class T,
int n,
int m>
296 #endif // DUNE_ASSIGN_HH
~fvector_assigner()
Destructor checks for complete initialization of the vector. The check is skipped, if this object is marked temporary.
Definition: fassign.hh:91
T t
Definition: alignment.hh:38
Dune namespace.
Definition: alignment.hh:13
~fmatrix_assigner()
Destructor checks for complete initialization of the matrix. The check is skipped, if this object is marked temporary.
Definition: fassign.hh:206
fmatrix_assigner & append(Zero z)
append zeros to this matrix
Definition: fassign.hh:229
fmatrix_assigner & operator,(const T &t)
append data to this matrix the overloaded comma operator is used to assign a comma separated list of ...
Definition: fassign.hh:248
fmatrix assignment operator
Definition: fassign.hh:173
fvector_assigner & append(const T &t)
append data to this vector
Definition: fassign.hh:98
struct Dune::FloatCmp::EpsilonType nextRow
fmatrix_assigner & append(const T &t)
append data to this matrix
Definition: fassign.hh:216
Default exception class for mathematical errors.
Definition: exceptions.hh:267
Implements a matrix constructed from a given type representing a field and compile-time given number ...
fvector assignment operator
Definition: fassign.hh:70
fvector_assigner & operator,(const T &t)
append data to this vector the overloaded comma operator is used to assign a comma separated list of ...
Definition: fassign.hh:115
#define DUNE_THROW(E, m)
Definition: exceptions.hh:244
fmatrix_assigner(FieldMatrix< T, n, m > &_A, bool t)
Constructor from matrix and temporary flag.
Definition: fassign.hh:199
Implements a vector constructed from a given type representing a field and a compile-time given size...
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentional unused function parameters with.
Definition: unused.hh:18
NextRow(int)
Definition: fassign.hh:173
fvector_assigner & append(Zero z)
append zeros to this vector
Definition: fassign.hh:105
fmatrix_assigner(fmatrix_assigner &a)
Copy Constructor.
Definition: fassign.hh:193
Zero(int)
Definition: fassign.hh:173
fmatrix_assigner & append(NextRow nr)
move to next row of the matrix
Definition: fassign.hh:237
fvector_assigner(fvector_assigner &a)
Copy Constructor.
Definition: fassign.hh:79
fvector_assigner(FieldVector< T, s > &_v, bool t)
Constructor from vector and temporary flag.
Definition: fassign.hh:85