A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator, with offset and custom spacing.
For usage with MRPT's CMatrixTemplate only (for MRPT numeric matrices, use Eigen methods)
Definition at line 247 of file matrix_adaptors.h.
#include <mrpt/math/matrix_adaptors.h>
Public Types | |
typedef MAT::Scalar | value_type |
typedef CMatrixRowAccessorExtended< MAT > | mrpt_autotype |
typedef detail::AccessorIterator< CMatrixRowAccessorExtended< MAT >, value_type > | iterator |
typedef detail::AccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_type > | const_iterator |
typedef detail::ReverseAccessorIterator< CMatrixRowAccessorExtended< MAT >, value_type > | reverse_iterator |
typedef detail::ReverseAccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_type > | const_reverse_iterator |
Public Member Functions | |
CMatrixRowAccessorExtended (MAT &mat, size_t row, size_t offset, size_t space) | |
CMatrixRowAccessorExtended () | |
value_type & | operator[] (size_t i) |
value_type | operator[] (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 |
size_t | m_colOffset |
size_t | m_elementsSpace |
size_t | howMany |
typedef detail::AccessorIterator<const CMatrixRowAccessorExtended<MAT>,const value_type> mrpt::math::CMatrixRowAccessorExtended< MAT >::const_iterator |
Definition at line 269 of file matrix_adaptors.h.
typedef detail::ReverseAccessorIterator<const CMatrixRowAccessorExtended<MAT>,const value_type> mrpt::math::CMatrixRowAccessorExtended< MAT >::const_reverse_iterator |
Definition at line 271 of file matrix_adaptors.h.
typedef detail::AccessorIterator<CMatrixRowAccessorExtended<MAT>,value_type> mrpt::math::CMatrixRowAccessorExtended< MAT >::iterator |
Definition at line 268 of file matrix_adaptors.h.
typedef CMatrixRowAccessorExtended<MAT> mrpt::math::CMatrixRowAccessorExtended< MAT >::mrpt_autotype |
Definition at line 256 of file matrix_adaptors.h.
typedef detail::ReverseAccessorIterator<CMatrixRowAccessorExtended<MAT>,value_type> mrpt::math::CMatrixRowAccessorExtended< MAT >::reverse_iterator |
Definition at line 270 of file matrix_adaptors.h.
typedef MAT::Scalar mrpt::math::CMatrixRowAccessorExtended< MAT >::value_type |
Definition at line 255 of file matrix_adaptors.h.
|
inline |
Definition at line 257 of file matrix_adaptors.h.
References ASSERT_, mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany, mrpt::math::CMatrixRowAccessorExtended< MAT >::m_colOffset, and mrpt::math::CMatrixRowAccessorExtended< MAT >::m_elementsSpace.
|
inline |
Definition at line 261 of file matrix_adaptors.h.
|
inline |
Definition at line 272 of file matrix_adaptors.h.
|
inline |
Definition at line 275 of file matrix_adaptors.h.
|
inline |
Definition at line 278 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany.
|
inline |
Definition at line 281 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany.
|
inline |
|
inline |
|
inline |
Definition at line 284 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany.
|
inline |
Definition at line 287 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany.
|
inline |
Definition at line 290 of file matrix_adaptors.h.
|
inline |
Definition at line 293 of file matrix_adaptors.h.
|
inline |
Definition at line 299 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessorExtended< MAT >::size().
|
inline |
Definition at line 296 of file matrix_adaptors.h.
References mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany.
Referenced by mrpt::math::CMatrixRowAccessorExtended< MAT >::resize().
|
protected |
Definition at line 253 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessorExtended< MAT >::CMatrixRowAccessorExtended(), mrpt::math::CMatrixRowAccessorExtended< MAT >::end(), mrpt::math::CMatrixRowAccessorExtended< MAT >::rbegin(), and mrpt::math::CMatrixRowAccessorExtended< MAT >::size().
|
protected |
Definition at line 251 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessorExtended< MAT >::CMatrixRowAccessorExtended(), and mrpt::math::CMatrixRowAccessorExtended< MAT >::operator[]().
|
protected |
Definition at line 252 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessorExtended< MAT >::CMatrixRowAccessorExtended(), and mrpt::math::CMatrixRowAccessorExtended< MAT >::operator[]().
|
protected |
Definition at line 249 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessorExtended< MAT >::operator[]().
|
protected |
Definition at line 250 of file matrix_adaptors.h.
Referenced by mrpt::math::CMatrixRowAccessorExtended< 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 |