A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator.
For usage with MRPT's CMatrixTemplate only (for MRPT numeric matrices, use Eigen methods)
Definition at line 191 of file matrix_adaptors.h.
#include <mrpt/math/matrix_adaptors.h>
Public Types | |
typedef MAT::Scalar | value_type |
typedef CMatrixRowAccessor< MAT > | mrpt_autotype |
typedef detail::AccessorIterator< CMatrixRowAccessor< MAT >, value_type > | iterator |
typedef detail::AccessorIterator< const CMatrixRowAccessor< MAT >, const value_type > | const_iterator |
typedef detail::ReverseAccessorIterator< CMatrixRowAccessor< MAT >, value_type > | reverse_iterator |
typedef detail::ReverseAccessorIterator< const CMatrixRowAccessor< MAT >, const value_type > | const_reverse_iterator |
Public Member Functions | |
CMatrixRowAccessor (MAT &mat, size_t rowIdx) | |
CMatrixRowAccessor () | |
value_type & | operator[] (const size_t i) |
value_type | operator[] (const size_t i) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_t | size () const |
void | resize (size_t N) |
Protected Attributes | |
MAT * | m_mat |
size_t | m_rowInd |
typedef detail::AccessorIterator<const CMatrixRowAccessor<MAT>,const value_type> mrpt::math::CMatrixRowAccessor< MAT >::const_iterator |
Definition at line 204 of file matrix_adaptors.h.
typedef detail::ReverseAccessorIterator<const CMatrixRowAccessor<MAT>,const value_type> mrpt::math::CMatrixRowAccessor< MAT >::const_reverse_iterator |
Definition at line 206 of file matrix_adaptors.h.
typedef detail::AccessorIterator<CMatrixRowAccessor<MAT>,value_type> mrpt::math::CMatrixRowAccessor< MAT >::iterator |
Definition at line 203 of file matrix_adaptors.h.
typedef CMatrixRowAccessor<MAT> mrpt::math::CMatrixRowAccessor< MAT >::mrpt_autotype |
Definition at line 198 of file matrix_adaptors.h.
typedef detail::ReverseAccessorIterator<CMatrixRowAccessor<MAT>,value_type> mrpt::math::CMatrixRowAccessor< MAT >::reverse_iterator |
Definition at line 205 of file matrix_adaptors.h.
typedef MAT::Scalar mrpt::math::CMatrixRowAccessor< MAT >::value_type |
Definition at line 197 of file matrix_adaptors.h.
|
inline |
Definition at line 199 of file matrix_adaptors.h.
References ASSERT_.
|
inline |
Definition at line 200 of file matrix_adaptors.h.
|
inline |
Definition at line 207 of file matrix_adaptors.h.
|
inline |
Definition at line 210 of file matrix_adaptors.h.
|
inline |
Definition at line 213 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 216 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 201 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat, and mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd.
|
inline |
Definition at line 202 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat, and mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd.
|
inline |
Definition at line 219 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 222 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 225 of file matrix_adaptors.h.
|
inline |
Definition at line 228 of file matrix_adaptors.h.
|
inline |
Definition at line 234 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::size().
|
inline |
Definition at line 231 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
Referenced by mrpt::math::CMatrixRowAccessor< MAT >::resize().
|
protected |
Definition at line 194 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessor< MAT >::end(), mrpt::math::CMatrixRowAccessor< MAT >::operator[](), mrpt::math::CMatrixRowAccessor< MAT >::rbegin(), and mrpt::math::CMatrixRowAccessor< MAT >::size().
|
protected |
Definition at line 195 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessor< MAT >::operator[]().
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |