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