MRPT  1.9.9
List of all members | Public Types | Public Member Functions | Protected Attributes
mrpt::math::CConstMatrixRowAccessorExtended< MAT > Class Template Reference

Detailed Description

template<class MAT>
class mrpt::math::CConstMatrixRowAccessorExtended< MAT >

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

Definition at line 427 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

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 Member Functions

 CConstMatrixRowAccessorExtended (const MAT &mat, size_t row, size_t offset, size_t space)
 
 CConstMatrixRowAccessorExtended ()
 
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)
 

Protected Attributes

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

Member Typedef Documentation

◆ const_iterator

Definition at line 455 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 457 of file matrix_adaptors.h.

◆ mrpt_autotype

Definition at line 438 of file matrix_adaptors.h.

◆ value_type

template<class MAT>
using mrpt::math::CConstMatrixRowAccessorExtended< MAT >::value_type = typename MAT::Scalar

Definition at line 437 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CConstMatrixRowAccessorExtended() [1/2]

template<class MAT>
mrpt::math::CConstMatrixRowAccessorExtended< MAT >::CConstMatrixRowAccessorExtended ( const MAT &  mat,
size_t  row,
size_t  offset,
size_t  space 
)
inline

◆ CConstMatrixRowAccessorExtended() [2/2]

Definition at line 449 of file matrix_adaptors.h.

Member Function Documentation

◆ begin()

template<class MAT>
const_iterator mrpt::math::CConstMatrixRowAccessorExtended< MAT >::begin ( ) const
inline

Definition at line 458 of file matrix_adaptors.h.

◆ end()

template<class MAT>
const_iterator mrpt::math::CConstMatrixRowAccessorExtended< MAT >::end ( ) const
inline

◆ operator[]()

template<class MAT>
value_type mrpt::math::CConstMatrixRowAccessorExtended< MAT >::operator[] ( size_t  i) const
inline

◆ rbegin()

template<class MAT>
const_reverse_iterator mrpt::math::CConstMatrixRowAccessorExtended< MAT >::rbegin ( ) const
inline

◆ rend()

template<class MAT>
const_reverse_iterator mrpt::math::CConstMatrixRowAccessorExtended< MAT >::rend ( ) const
inline

Definition at line 464 of file matrix_adaptors.h.

◆ resize()

template<class MAT>
void mrpt::math::CConstMatrixRowAccessorExtended< MAT >::resize ( size_t  N)
inline

Definition at line 469 of file matrix_adaptors.h.

References mrpt::math::CConstMatrixRowAccessorExtended< MAT >::size().

Here is the call graph for this function:

◆ size()

template<class MAT>
size_t mrpt::math::CConstMatrixRowAccessorExtended< MAT >::size ( ) const
inline

Definition at line 468 of file matrix_adaptors.h.

References mrpt::math::CConstMatrixRowAccessorExtended< MAT >::howMany.

Referenced by mrpt::math::CConstMatrixRowAccessorExtended< MAT >::resize().

Here is the caller graph for this function:

Member Data Documentation

◆ howMany

template<class MAT>
size_t mrpt::math::CConstMatrixRowAccessorExtended< MAT >::howMany
protected

◆ m_colOffset

template<class MAT>
size_t mrpt::math::CConstMatrixRowAccessorExtended< MAT >::m_colOffset
protected

◆ m_elementsSpace

template<class MAT>
size_t mrpt::math::CConstMatrixRowAccessorExtended< MAT >::m_elementsSpace
protected

◆ m_mat

template<class MAT>
const MAT* mrpt::math::CConstMatrixRowAccessorExtended< MAT >::m_mat
protected

◆ m_rowInd

template<class MAT>
size_t mrpt::math::CConstMatrixRowAccessorExtended< MAT >::m_rowInd
protected



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 479715d5b Tue Nov 12 07:26:21 2019 +0100 at mar nov 12 07:30:12 CET 2019