#include <core.hpp>
|
| MatRefCol (Mat< T, n_rows, n_cols, matType< type_parent >()> &m, size_t index) |
| Construct a new MatRefCol object from raw data pointer.
|
|
| MatRefCol (const MatRefCol &m) |
| Copy constructor.
|
|
template<typename T_ , size_t n_rows_, size_t n_cols_, MatType type_> |
MatRefCol & | 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 Vec< T, n_rows > () const |
| Conversion from view to a real Mat.
|
|
Vec< T, n_rows > | asMat () const |
| Explicitly make a Mat copy.
|
|
Vec< T, n_rows > | asVec () const |
| Explicitly make a Mat (Vec) 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.
|
|
◆ MatRefCol() [1/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
flames::MatRefCol< T, n_rows, n_cols, type, type_parent >::MatRefCol |
( |
Mat< T, n_rows, n_cols, matType< type_parent >()> & | m, |
|
|
size_t | index ) |
|
inline |
Construct a new MatRefCol object from raw data pointer.
- Parameters
-
◆ MatRefCol() [2/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
flames::MatRefCol< T, n_rows, n_cols, type, type_parent >::MatRefCol |
( |
const MatRefCol< 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
- (Vec<T, n_rows>) 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 (Vec) copy.
- Returns
- (Vec<T, n_rows>) The real Mat.
◆ operator Vec< T, n_rows >()
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_rows>) The real Mat.
◆ operator()() [1/2]
template<typename T , size_t n_rows, size_t n_cols,
MatType type, typename type_parent >
T & flames::MatRefCol< 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::MatRefCol< 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::MatRefCol< 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::MatRefCol< 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::MatRefCol< 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::MatRefCol< 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: