Template Class CConstMatrixRowAccessorExtended

Class Documentation

template<class MAT>
class CConstMatrixRowAccessorExtended

A vector-like wrapper for a const Matrix for accessing the elements of a given row with a [] operator, with offset and custom spacing. For usage with MRPT’s CMatrixDynamic only (for MRPT numeric matrices, use Eigen methods)

Public Types

using value_type = typename MAT::Scalar
using mrpt_autotype = CConstMatrixRowAccessorExtended<MAT>
using const_iterator = detail::AccessorIterator<const CConstMatrixRowAccessorExtended<MAT>, const value_type>
using const_reverse_iterator = detail::ReverseAccessorIterator<const CConstMatrixRowAccessorExtended<MAT>, const value_type>

Public Functions

inline CConstMatrixRowAccessorExtended(const MAT &mat, size_t row, size_t offset, size_t space)
inline CConstMatrixRowAccessorExtended()
inline value_type operator[](size_t i) const
inline const_iterator begin() const
inline const_iterator end() const
inline const_reverse_iterator rbegin() const
inline const_reverse_iterator rend() const
inline size_t size() const
inline void resize(size_t N)

Protected Attributes

const MAT *m_mat
size_t m_rowInd
size_t m_colOffset
size_t m_elementsSpace
size_t howMany