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

Detailed Description

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

A vector-like wrapper for a Matrix for accessing the elements of a given column with a [] operator, with offset and custom spacing.

See also
CMatrixRowAccessorExtended,CMatrixColumnAccessor,CConstMatrixColumnAccessor,CConstMatrixColumnAccessorExtended

Definition at line 558 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

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

Public Member Functions

 CMatrixColumnAccessorExtended (MAT &mat, size_t col, size_t offset, size_t space)
 
 CMatrixColumnAccessorExtended ()
 
value_typeoperator[] (size_t i)
 
value_type operator[] (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
 
size_t m_rowOffset
 
size_t m_elementsSpace
 
size_t howMany
 

Member Typedef Documentation

◆ const_iterator

Definition at line 592 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 596 of file matrix_adaptors.h.

◆ iterator

Definition at line 590 of file matrix_adaptors.h.

◆ mrpt_autotype

Definition at line 569 of file matrix_adaptors.h.

◆ reverse_iterator

Definition at line 594 of file matrix_adaptors.h.

◆ value_type

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

Definition at line 568 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CMatrixColumnAccessorExtended() [1/2]

template<typename MAT>
mrpt::math::CMatrixColumnAccessorExtended< MAT >::CMatrixColumnAccessorExtended ( MAT &  mat,
size_t  col,
size_t  offset,
size_t  space 
)
inline

◆ CMatrixColumnAccessorExtended() [2/2]

Definition at line 580 of file matrix_adaptors.h.

Member Function Documentation

◆ begin() [1/2]

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

Definition at line 597 of file matrix_adaptors.h.

◆ begin() [2/2]

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

Definition at line 598 of file matrix_adaptors.h.

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ rbegin() [1/2]

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

◆ rbegin() [2/2]

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

◆ rend() [1/2]

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

Definition at line 609 of file matrix_adaptors.h.

◆ rend() [2/2]

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

Definition at line 610 of file matrix_adaptors.h.

◆ resize()

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

Definition at line 615 of file matrix_adaptors.h.

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

Here is the call graph for this function:

◆ size()

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

Definition at line 614 of file matrix_adaptors.h.

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

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

Here is the caller graph for this function:

Member Data Documentation

◆ howMany

template<typename MAT>
size_t mrpt::math::CMatrixColumnAccessorExtended< MAT >::howMany
protected

◆ m_colInd

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

◆ m_elementsSpace

template<typename MAT>
size_t mrpt::math::CMatrixColumnAccessorExtended< MAT >::m_elementsSpace
protected

◆ m_mat

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

◆ m_rowOffset

template<typename MAT>
size_t mrpt::math::CMatrixColumnAccessorExtended< MAT >::m_rowOffset
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