|
dune-common
2.6-git
|
Construct a matrix with a dynamic size. More...
#include <dune/common/dynmatrix.hh>
Public Types | |
| typedef Base::size_type | size_type |
| typedef Base::value_type | value_type |
| typedef Base::row_type | row_type |
Public Member Functions | |
| DynamicMatrix () | |
| Default constructor. More... | |
| DynamicMatrix (size_type r, size_type c, value_type v=value_type()) | |
| Constructor initializing the whole matrix with a scalar. More... | |
| DynamicMatrix (std::initializer_list< DynamicVector< K >> const &ll) | |
| Constructor initializing the matrix from a list of vector. More... | |
| template<class T , typename = std::enable_if_t<!Dune::IsNumber<T>::value && HasDenseMatrixAssigner<DynamicMatrix, T>::value>> | |
| DynamicMatrix (T const &rhs) | |
| void | resize (size_type r, size_type c, value_type v=value_type()) |
resize matrix to r × c More... | |
| template<typename T , typename = std::enable_if_t<!Dune::IsNumber<T>::value>> | |
| DynamicMatrix & | operator= (T const &rhs) |
| template<typename T , typename = std::enable_if_t<Dune::IsNumber<T>::value>> | |
| DynamicMatrix & | operator= (T scalar) |
| size_type | mat_rows () const |
| size_type | mat_cols () const |
| row_type & | mat_access (size_type i) |
| const row_type & | mat_access (size_type i) const |
Construct a matrix with a dynamic size.
| K | is the field type (use float, double, complex, etc) |
| typedef Base::row_type Dune::DynamicMatrix< K >::row_type |
| typedef Base::size_type Dune::DynamicMatrix< K >::size_type |
| typedef Base::value_type Dune::DynamicMatrix< K >::value_type |
|
inline |
Default constructor.
|
inline |
Constructor initializing the whole matrix with a scalar.
|
inline |
Constructor initializing the matrix from a list of vector.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
resize matrix to r × c
Resize the matrix to r × c, using v as the value of all entries.
| r | number of rows |
| c | number of columns |
| v | value of matrix entries |
1.8.17