|
ADS
Algorithms and Data Structures
|
an \( m \times n \) matrix by rows in one contiguous vector More...
#include <ADS/numeric/DenseMatrix.h>
Public types | |
| using | value_type = T |
| the type of the entries | |
Public member functions | |
| DenseMatrix (void)=default | |
| the empty \( 0 \times 0 \) matrix | |
| DenseMatrix (std::size_t m, std::size_t n, const T &v=T(0)) | |
| the \( m \times n \) matrix of entries \( v \) | |
| DenseMatrix (const Matrix< T > &A) | |
| the matrix of the rows of the Matrix of the book | |
| std::size_t | rows (void) const |
| the number \( m \) of rows | |
| std::size_t | cols (void) const |
| the number \( n \) of columns | |
| T & | operator() (std::size_t i, std::size_t j) |
| the entry \( ( i , j ) \), at the place \( i n + j \) | |
| const T & | operator() (std::size_t i, std::size_t j) const |
| the entry \( ( i , j ) \) of a constant matrix | |
| T * | data (void) |
| the entries, by rows | |
| const T * | data (void) const |
| the entries of a constant matrix, by rows | |
| Matrix< T > | toMatrix (void) const |
| the Matrix of the book with the same entries | |
| bool | operator== (const DenseMatrix &) const =default |
| true if the two matrices have the same sizes and entries | |
Static public member functions | |
| static DenseMatrix | uninitialized (std::size_t m, std::size_t n) |
| the \( m \times n \) matrix whose entries are not set, which a function then writes, if T is a number (they are T() otherwise) | |
an \( m \times n \) matrix by rows in one contiguous vector
| using ADS::DenseMatrix< T >::value_type = T |
the type of the entries
|
default |
the empty \( 0 \times 0 \) matrix
|
inline |
the \( m \times n \) matrix of entries \( v \)
|
explicit |
the matrix of the rows of the Matrix of the book
|
inlinenodiscard |
the number \( n \) of columns
|
inlinenodiscard |
the entries, by rows
|
inlinenodiscard |
the entries of a constant matrix, by rows
|
inlinenodiscard |
the entry \( ( i , j ) \), at the place \( i n + j \)
|
inlinenodiscard |
the entry \( ( i , j ) \) of a constant matrix
|
default |
true if the two matrices have the same sizes and entries
|
inlinenodiscard |
the number \( m \) of rows
|
nodiscard |
the Matrix of the book with the same entries
|
inlinestatic |
the \( m \times n \) matrix whose entries are not set, which a function then writes, if T is a number (they are T() otherwise)