FLAMES 0.1.0
Matrix-Empowered HLS Library
|
Read only view version of a diagonal matrix as row vector. More...
#include <core.hpp>
Public Member Functions | |
MatViewDiagRowVec (const Mat< T, N, N, matType< type_parent >()> &m) | |
Construct a new MatViewDiagRowVec object from raw data pointer. | |
MatViewDiagRowVec (const MatViewDiagRowVec &m) | |
Copy constructor. | |
T | operator() (size_t r, size_t c) const |
Get the read only data element from row and column index. | |
T | operator[] (size_t index) const |
Get the read only element by array row major index. | |
operator RowVec< T, N > () const | |
Conversion from view to a real Mat. | |
RowVec< T, N > | asMat () const |
Explicitly make a Mat copy. | |
RowVec< T, N > | asRowVec () const |
Explicitly make a Mat (RowVec) copy. | |
Static Public Member Functions | |
static constexpr size_t | size () noexcept |
The data element number. | |
static constexpr MatType | pType () noexcept |
Parent matrix as MatType. | |
Public Attributes | |
const T * | _data |
Raw data pointer. | |
Read only view version of a diagonal matrix as row vector.
T | Element type. |
N | Matrix dimension. |
N_ | Matrix dimension (unused, only to ensure it is a square matrix). |
type | Matrix type (surely NORMAL here). |
type_parent | Parent matrix (where it takes the diagonal) type. |
|
inline |
Construct a new MatViewDiagRowVec object from raw data pointer.
m | The original matrix. |
|
inline |
Copy constructor.
m | Another MatViewDiagRowVec object. |
|
inline |
|
inline |
|
inline |
|
inline |
Get the read only data element from row and column index.
r | The row index. |
c | The column index. |
|
inline |
Get the read only element by array row major index.
index | The index. |
|
inlinestaticconstexprnoexcept |
Parent matrix as MatType.
|
inlinestaticconstexprnoexcept |
The data element number.
const T* flames::MatViewDiagRowVec< T, n_rows, N, type, type_parent >::_data |
Raw data pointer.