3 #ifndef DUNE_DYNMATRIX_HH
4 #define DUNE_DYNMATRIX_HH
40 typedef typename container_type::size_type
size_type;
57 std::vector< DynamicVector<K> > _data;
81 using Base::operator=;
87 return _data.front().size();
A dense n x m matrix.
Definition: densematrix.hh:22
K value_type
Definition: dynmatrix.hh:39
Definition: ftraits.hh:22
DynamicMatrix(size_type r, size_type c, value_type v=value_type())
Constructor initializing the whole matrix with a scalar.
Definition: dynmatrix.hh:69
Base::value_type value_type
Definition: dynmatrix.hh:61
Traits::row_type row_type
The type used to represent a row (must fulfill the Dune::DenseVector interface)
Definition: densematrix.hh:211
char c
Definition: alignment.hh:33
Traits::size_type size_type
The type used for the index access and size operation.
Definition: densematrix.hh:208
A few common exception classes.
FieldTraits< K >::real_type real_type
Definition: dynmatrix.hh:47
void resize(size_type r, size_type c, value_type v=value_type())
Definition: dynmatrix.hh:74
T real_type
export the type representing the real type of the field
Definition: ftraits.hh:27
DynamicVector< K > row_type
Definition: dynmatrix.hh:33
Definition: matvectraits.hh:29
Base::size_type size_type
Definition: dynmatrix.hh:60
row_type & row_reference
Definition: dynmatrix.hh:35
Construct a matrix with a dynamic size.
Definition: dynmatrix.hh:26
This file implements a dense vector with a dynamic size.
Implements a matrix constructed from a given type representing a field and a compile-time given numbe...
T field_type
export the type representing the field
Definition: ftraits.hh:25
container_type::size_type size_type
Definition: dynmatrix.hh:40
const row_type & const_row_reference
Definition: dynmatrix.hh:36
FieldTraits< K >::field_type field_type
Definition: dynmatrix.hh:46
Base::row_type row_type
Definition: dynmatrix.hh:62
DynamicMatrix< K > derived_type
Definition: dynmatrix.hh:31
row_type & mat_access(size_type i)
Definition: dynmatrix.hh:89
std::vector< K > container_type
Definition: dynmatrix.hh:38
size_type rows() const
number of rows
Definition: densematrix.hh:695
DynamicMatrix()
Default constructor.
Definition: dynmatrix.hh:66
Traits::value_type value_type
export the type representing the field
Definition: densematrix.hh:199
size_type mat_cols() const
Definition: dynmatrix.hh:85
size_type mat_rows() const
Definition: dynmatrix.hh:84
const row_type & mat_access(size_type i) const
Definition: dynmatrix.hh:90