#include <core.hpp>
|
| MatRefRow (Mat< T, n_rows, n_cols, matType< type_parent >()> &m, size_t index) |
| Construct a new MatRefRow object from raw data pointer.
|
|
| MatRefRow (const MatRefRow &m) |
| Copy constructor.
|
|
template<typename T_ , size_t n_rows_, size_t n_cols_, MatType type_> |
MatRefRow & | operator= (const Mat< T_, n_rows_, n_cols_, type_ > &m) |
|
template<typename M > |
void | assign (M m) |
|
T | operator() (size_t r, size_t c) const |
| Get the read only data element from row and column index.
|
|
T & | operator() (size_t r, size_t c) |
|
T | operator[] (size_t index) const |
| Get the read only element by array row major index.
|
|
T & | operator[] (size_t index) |
|
| operator RowVec< T, n_cols > () const |
| Conversion from view to a real Mat.
|
|
RowVec< T, n_cols > | asMat () const |
| Explicitly make a Mat copy.
|
|
RowVec< T, n_cols > | asVec () const |
| Explicitly make a Mat (RowVec) copy.
|
|
void | print (const std::string &str="", std::ostream &os=std::cout) const |
|
|
static constexpr size_t | size () noexcept |
| The data element number.
|
|
static constexpr MatType | pType () noexcept |
| Parent matrix as MatType.
|
|
|
T *const | _data |
| Raw data pointer.
|
|
◆ MatRefRow() [1/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::MatRefRow |
( |
Mat< T, n_rows, n_cols, matType< type_parent >()> & | m, |
|
|
size_t | index ) |
|
inline |
Construct a new MatRefRow object from raw data pointer.
- Parameters
-
◆ MatRefRow() [2/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::MatRefRow |
( |
const MatRefRow< T, n_rows, n_cols, type, type_parent > & | m | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ asMat()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
Explicitly make a Mat copy.
- Returns
- (RowVec<T, n_cols>) The real Mat.
◆ assign()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
◆ asVec()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
Explicitly make a Mat (RowVec) copy.
- Returns
- (RowVec<T, n_cols>) The real Mat.
◆ operator RowVec< T, n_cols >()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
Conversion from view to a real Mat.
- Returns
- (RowVec<T, n_cols>) The real Mat.
◆ operator()() [1/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
T & flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::operator() |
( |
size_t | r, |
|
|
size_t | c ) |
|
inline |
◆ operator()() [2/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
T flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::operator() |
( |
size_t | r, |
|
|
size_t | c ) const |
|
inline |
Get the read only data element from row and column index.
- Parameters
-
r | The row index. |
c | The column index. |
- Returns
- (T) The element value.
◆ operator=()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
template<typename T_ , size_t n_rows_, size_t n_cols_,
MatType type_>
◆ operator[]() [1/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
T & flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::operator[] |
( |
size_t | index | ) |
|
|
inline |
◆ operator[]() [2/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
T flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::operator[] |
( |
size_t | index | ) |
const |
|
inline |
Get the read only element by array row major index.
- Parameters
-
- Returns
- (T) The data.
◆ print()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
void flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::print |
( |
const std::string & | str = "", |
|
|
std::ostream & | os = std::cout ) const |
|
inline |
◆ pType()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
|
inlinestaticconstexprnoexcept |
Parent matrix as MatType.
- Returns
- (constexpr MatType) The MatType.
◆ size()
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
static constexpr size_t flames::MatRefRow< T, n_rows, n_cols, type, type_parent >::size |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
The data element number.
- Returns
- (constexpr size_t) The size.
◆ _data
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
Raw data pointer.
- Note
- This contents will not be modified.
The documentation for this class was generated from the following file: