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

Detailed Description

template<typename MAT>
class mrpt::math::CMatrixColumnAccessor< MAT >

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

See also
CMatrixRowAccessor,CMatrixColumnAccessorExtended,CConstMatrixColumnAccessor,CConstMatrixColumnAccessorExtended

Definition at line 488 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

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

Public Member Functions

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

Protected Attributes

MAT * m_mat
 
size_t m_colInd
 

Member Typedef Documentation

◆ const_iterator

Definition at line 514 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 518 of file matrix_adaptors.h.

◆ iterator

Definition at line 512 of file matrix_adaptors.h.

◆ mrpt_autotype

template<typename MAT>
using mrpt::math::CMatrixColumnAccessor< MAT >::mrpt_autotype = CMatrixColumnAccessor<MAT>

Definition at line 496 of file matrix_adaptors.h.

◆ reverse_iterator

Definition at line 516 of file matrix_adaptors.h.

◆ value_type

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

Definition at line 495 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CMatrixColumnAccessor() [1/2]

template<typename MAT>
mrpt::math::CMatrixColumnAccessor< MAT >::CMatrixColumnAccessor ( MAT &  mat,
size_t  colIdx 
)
inline

Definition at line 497 of file matrix_adaptors.h.

References ASSERT_.

◆ CMatrixColumnAccessor() [2/2]

template<typename MAT>
mrpt::math::CMatrixColumnAccessor< MAT >::CMatrixColumnAccessor ( )
inline

Definition at line 502 of file matrix_adaptors.h.

Member Function Documentation

◆ begin() [1/2]

template<typename MAT>
iterator mrpt::math::CMatrixColumnAccessor< MAT >::begin ( )
inline

Definition at line 519 of file matrix_adaptors.h.

◆ begin() [2/2]

template<typename MAT>
const_iterator mrpt::math::CMatrixColumnAccessor< MAT >::begin ( ) const
inline

Definition at line 520 of file matrix_adaptors.h.

◆ end() [1/2]

template<typename MAT>
iterator mrpt::math::CMatrixColumnAccessor< MAT >::end ( )
inline

◆ end() [2/2]

template<typename MAT>
const_iterator mrpt::math::CMatrixColumnAccessor< MAT >::end ( ) const
inline

◆ operator[]() [1/2]

template<typename MAT>
value_type& mrpt::math::CMatrixColumnAccessor< MAT >::operator[] ( const size_t  i)
inline

◆ operator[]() [2/2]

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

◆ rbegin() [1/2]

template<typename MAT>
reverse_iterator mrpt::math::CMatrixColumnAccessor< MAT >::rbegin ( )
inline

◆ rbegin() [2/2]

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixColumnAccessor< MAT >::rbegin ( ) const
inline

◆ rend() [1/2]

template<typename MAT>
reverse_iterator mrpt::math::CMatrixColumnAccessor< MAT >::rend ( )
inline

Definition at line 534 of file matrix_adaptors.h.

◆ rend() [2/2]

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixColumnAccessor< MAT >::rend ( ) const
inline

Definition at line 535 of file matrix_adaptors.h.

◆ resize()

template<typename MAT>
void mrpt::math::CMatrixColumnAccessor< MAT >::resize ( size_t  N)
inline

Definition at line 540 of file matrix_adaptors.h.

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

Here is the call graph for this function:

◆ size()

template<typename MAT>
size_t mrpt::math::CMatrixColumnAccessor< MAT >::size ( ) const
inline

Definition at line 539 of file matrix_adaptors.h.

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

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

Here is the caller graph for this function:

Member Data Documentation

◆ m_colInd

template<typename MAT>
size_t mrpt::math::CMatrixColumnAccessor< MAT >::m_colInd
protected

◆ m_mat

template<typename MAT>
MAT* mrpt::math::CMatrixColumnAccessor< MAT >::m_mat
protected



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020