MRPT  1.9.9
mrpt::math::CConstMatrixRowAccessor< MAT > Class Template Reference

Detailed Description

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

A vector-like wrapper for a const 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)

See also
CConstMatrixColumnAccessor,CMatrixRowAccessorExtended,CMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 370 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

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

Public Member Functions

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

Member Typedef Documentation

◆ const_iterator

Definition at line 390 of file matrix_adaptors.h.

◆ const_reverse_iterator

◆ mrpt_autotype

Definition at line 378 of file matrix_adaptors.h.

◆ value_type

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

Definition at line 377 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CConstMatrixRowAccessor() [1/2]

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

Definition at line 379 of file matrix_adaptors.h.

References ASSERT_.

◆ CConstMatrixRowAccessor() [2/2]

template<class MAT>
mrpt::math::CConstMatrixRowAccessor< MAT >::CConstMatrixRowAccessor ( )
inline

Definition at line 384 of file matrix_adaptors.h.

Member Function Documentation

◆ begin()

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

Definition at line 393 of file matrix_adaptors.h.

Referenced by mrpt::math::CBinaryRelation< T, U, UIsObject >::getRelationFrom().

Here is the caller graph for this function:

◆ end()

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

Definition at line 394 of file matrix_adaptors.h.

References mrpt::math::CConstMatrixRowAccessor< MAT >::m_mat.

Referenced by mrpt::math::CBinaryRelation< T, U, UIsObject >::getRelationFrom().

Here is the caller graph for this function:

◆ operator[]()

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

◆ rbegin()

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

◆ rend()

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

Definition at line 402 of file matrix_adaptors.h.

◆ resize()

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

Definition at line 407 of file matrix_adaptors.h.

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

Here is the call graph for this function:

◆ size()

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

Definition at line 406 of file matrix_adaptors.h.

References mrpt::math::CConstMatrixRowAccessor< MAT >::m_mat.

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

Here is the caller graph for this function:

Member Data Documentation

◆ m_mat

◆ m_rowInd

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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019