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

Detailed Description

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

A vector-like wrapper for a const Matrix for accessing the elements of a given column with a [] operator.

See also
CConstMatrixRowAccessor,CMatrixColumnAccessorExtended,CMatrixColumnAccessor,CConstMatrixColumnAccessorExtended

Definition at line 635 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

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

Public Member Functions

 CConstMatrixColumnAccessor (const MAT &mat, size_t colIdx)
 
 CConstMatrixColumnAccessor ()
 
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_colInd
 

Member Typedef Documentation

◆ const_iterator

Definition at line 655 of file matrix_adaptors.h.

◆ const_reverse_iterator

◆ mrpt_autotype

Definition at line 643 of file matrix_adaptors.h.

◆ value_type

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

Definition at line 642 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CConstMatrixColumnAccessor() [1/2]

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

Definition at line 644 of file matrix_adaptors.h.

References ASSERT_.

◆ CConstMatrixColumnAccessor() [2/2]

Definition at line 649 of file matrix_adaptors.h.

Member Function Documentation

◆ begin()

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

◆ end()

◆ operator[]()

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

◆ rbegin()

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

◆ rend()

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

Definition at line 667 of file matrix_adaptors.h.

◆ resize()

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

◆ size()

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

Member Data Documentation

◆ m_colInd

template<class MAT>
size_t mrpt::math::CConstMatrixColumnAccessor< MAT >::m_colInd
protected

◆ m_mat




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020