template class mrpt::math::CConstMatrixRowAccessorExtended
Overview
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)
See also:
CConstMatrixColumnAccessorExtended, CMatrixRowAccessor, CConstMatrixRowAccessor, CMatrixRowAccessorExtended
#include <mrpt/math/matrix_adaptors.h> template <class MAT> class CConstMatrixRowAccessorExtended { public: // typedefs typedef typename MAT::Scalar value_type; typedef CConstMatrixRowAccessorExtended<MAT> mrpt_autotype; typedef detail::AccessorIterator<const CConstMatrixRowAccessorExtended<MAT>, const value_type> const_iterator; typedef detail::ReverseAccessorIterator<const CConstMatrixRowAccessorExtended<MAT>, const value_type> const_reverse_iterator; // construction CConstMatrixRowAccessorExtended( const MAT& mat, size_t row, size_t offset, size_t space ); CConstMatrixRowAccessorExtended(); // methods value_type operator [] (size_t i) const; const_iterator begin() const; const_iterator end() const; const_reverse_iterator rbegin() const; const_reverse_iterator rend() const; size_t size() const; void resize(size_t N); };