Dense matrix with row-wise storage in flat data vector. More...
#include <FlatMatrix.hpp>
Inherits vector< T, std::allocator< T > >.
Public Types | |
| using | value_type = T |
| using | size_type = typename Super::size_type |
| using | reference = typename Super::reference |
| using | const_reference = typename Super::const_reference |
Public Member Functions | |
| FlatMatrix ()=default | |
| Default constructor, creates an empty 0x0 matrix. | |
| FlatMatrix (size_type r, size_type c, value_type v={}) | |
| FlatMatrix & | operator= (value_type s) |
Assign value s to all entries of the matrix. | |
| void | resize (size_type r, size_type c, value_type v={}) |
| Resizes the container to contain r x c elements. More... | |
| size_type | rows () const noexcept |
| Return the number of rows of the matrix. | |
| size_type | cols () const noexcept |
| Return the number of columns of the matrix. | |
| AccessProxy< Super > | operator[] (size_type row) |
| AccessProxy< Super const > | operator[] (size_type row) const |
Dense matrix with row-wise storage in flat data vector.
|
inline |
Construct a new matrix with rows r and columns c and all values initialized by copies of value v.
|
inline |
Return accessor to the row of the matrix, see AccessProxy
|
inline |
Resizes the container to contain r x c elements.
If the current rows*cols is greater than r*c, the container is reduced to its first r*c elements. If the current rows*cols is less than r*c, additional copies of value v are appended.
Referenced by BiLinearForm< RB, CB, T, Traits >::BiLinearForm().