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 222 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 249 of file matrix_adaptors.h.
typedef detail::ReverseAccessorIterator<const CMatrixRowAccessor<MAT>, const value_type> mrpt::math::CMatrixRowAccessor< MAT >::const_reverse_iterator |
Definition at line 254 of file matrix_adaptors.h.
typedef detail::AccessorIterator<CMatrixRowAccessor<MAT>, value_type> mrpt::math::CMatrixRowAccessor< MAT >::iterator |
Definition at line 246 of file matrix_adaptors.h.
typedef CMatrixRowAccessor<MAT> mrpt::math::CMatrixRowAccessor< MAT >::mrpt_autotype |
Definition at line 230 of file matrix_adaptors.h.
typedef detail::ReverseAccessorIterator<CMatrixRowAccessor<MAT>, value_type> mrpt::math::CMatrixRowAccessor< MAT >::reverse_iterator |
Definition at line 251 of file matrix_adaptors.h.
typedef MAT::Scalar mrpt::math::CMatrixRowAccessor< MAT >::value_type |
Definition at line 229 of file matrix_adaptors.h.
|
inline |
Definition at line 231 of file matrix_adaptors.h.
References ASSERT_.
|
inline |
Definition at line 236 of file matrix_adaptors.h.
|
inline |
Definition at line 255 of file matrix_adaptors.h.
|
inline |
Definition at line 256 of file matrix_adaptors.h.
|
inline |
Definition at line 257 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 258 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 237 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat, and mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd.
|
inline |
Definition at line 241 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat, and mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd.
|
inline |
Definition at line 262 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 266 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
|
inline |
Definition at line 270 of file matrix_adaptors.h.
|
inline |
Definition at line 271 of file matrix_adaptors.h.
|
inline |
Definition at line 276 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::size().
|
inline |
Definition at line 275 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.
Referenced by mrpt::math::CMatrixRowAccessor< MAT >::resize().
|
protected |
Definition at line 225 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 226 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessor< MAT >::operator[]().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |