FLAMES 0.1.0
Matrix-Empowered HLS Library
|
Read only view version of a diagonal matrix as vector. More...
#include <core.hpp>
Public Member Functions | |
MatViewDiagVec (const Mat< T, N, N, matType< type_parent >()> &m) | |
Construct a new MatViewDiagVec object from raw data pointer. | |
MatViewDiagVec (const MatViewDiagVec &m) | |
Copy constructor. | |
Vec< T, N > | inv () const |
Return a inverse matrix. | |
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 Vec< T, N > () const | |
Conversion from view to a real Mat. | |
Vec< T, N > | asMat () const |
Explicitly make a Mat copy. | |
Vec< T, N > | asVec () const |
Explicitly make a Mat (Vec) 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 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 MatViewDiagVec object from raw data pointer.
m | The original matrix. |
|
inline |
Copy constructor.
m | Another MatViewDiagVec object. |
|
inline |
|
inline |
|
inline |
Return a inverse matrix.
|
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::MatViewDiagVec< T, N, n_cols, type, type_parent >::_data |
Raw data pointer.