Template Class CMatrixRowAccessor

Class Documentation

template<typename MAT>
class CMatrixRowAccessor

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator. 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 = CMatrixRowAccessor<MAT>
using iterator = detail::AccessorIterator<CMatrixRowAccessor<MAT>, value_type>
using const_iterator = detail::AccessorIterator<const CMatrixRowAccessor<MAT>, const value_type>
using reverse_iterator = detail::ReverseAccessorIterator<CMatrixRowAccessor<MAT>, value_type>
using const_reverse_iterator = detail::ReverseAccessorIterator<const CMatrixRowAccessor<MAT>, const value_type>

Public Functions

inline CMatrixRowAccessor(MAT &mat, size_t rowIdx)
inline CMatrixRowAccessor()
inline value_type &operator[](const size_t i)
inline value_type operator[](const size_t i) const
inline iterator begin()
inline const_iterator begin() const
inline iterator end()
inline const_iterator end() const
inline reverse_iterator rbegin()
inline const_reverse_iterator rbegin() const
inline reverse_iterator rend()
inline const_reverse_iterator rend() const
inline size_t size() const
inline void resize(size_t N)

Protected Attributes

MAT *m_mat
size_t m_rowInd