![]() |
FLAMES 0.1.0
Matrix-Empowered HLS Library
|
Read only view version of a certain row as row vector. More...
#include <core.hpp>
Public Member Functions | |
MatViewRow (const Mat< T, n_rows, n_cols, matType< type_parent >()> &m, size_t index) | |
Construct a new MatViewRow object from raw data pointer. More... | |
MatViewRow (const MatViewRow &m) | |
Copy constructor. More... | |
T | operator() (size_t r, size_t c) const |
Get the read only data element from row and column index. More... | |
T | operator[] (size_t index) const |
Get the read only element by array row major index. More... | |
operator RowVec< T, n_rows > () const | |
Conversion from view to a real Mat. More... | |
RowVec< T, n_cols > | asMat () const |
Explicitly make a Mat copy. More... | |
Vec< T, n_rows > | asRowVec () const |
Explicitly make a Mat (RowVec) copy. More... | |
void | print (const std::string &str="", std::ostream &os=std::cout) const |
Static Public Member Functions | |
static constexpr size_t | size () noexcept |
The data element number. More... | |
static constexpr MatType | pType () noexcept |
Parent matrix as MatType. More... | |
Public Attributes | |
const T *const | _data |
Raw data pointer. More... | |
Read only view version of a certain row as row vector.
T | Element type. |
n_rows | Number of rows. |
n_cols | Number of columns. |
type | Matrix type (surely NORMAL here). |
type_parent | Parent matrix (where it takes the row vector) type. |
|
inline |
Construct a new MatViewRow object from raw data pointer.
m | The original matrix. |
|
inline |
Copy constructor.
m | Another MatViewRow 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. |
|
inline |
|
inlinestaticconstexprnoexcept |
Parent matrix as MatType.
|
inlinestaticconstexprnoexcept |
The data element number.
const T* const flames::MatViewRow< T, n_rows, n_cols, type, type_parent >::_data |
Raw data pointer.