Main MRPT website > C++ reference
MRPT logo

mrpt::math::CConstMatrixViewTranspose< MAT > Class Template Reference

A wrapper around an existing const matrix (of any kind) that allows operating on the transposed matrix. More...

#include <mrpt/math/CMatrixViews.h>

Inheritance diagram for mrpt::math::CConstMatrixViewTranspose< MAT >:
Inheritance graph
[legend]
Collaboration diagram for mrpt::math::CConstMatrixViewTranspose< MAT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
CConstMatrixViewTranspose< MAT > 
mrpt_autotype

Public Member Functions

DECLARE_MRPT_CONTAINER_TYPES
DECLARE_MRPT_CONTAINER_IS_MATRIX
DECLARE_MRPT_MATRIX_ITERATORS 
CConstMatrixViewTranspose (const MAT &m)
size_t getRowCount () const
size_t getColCount () const
value_type get_unsafe (size_t r, size_t c) const
value_type operator() (size_t r, size_t c) const
CMatrixTemplateSize size () const
void setSize (size_t r, size_t c)
void resize (size_t rc)

Protected Attributes

const MAT & base

Detailed Description

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

A wrapper around an existing const matrix (of any kind) that allows operating on the transposed matrix.

Example of usage:

  const CMatrixDouble  C(4,2);
  CConstMatrixViewTranspose<CMatrixDouble>  Ct(C);  // Transpose view of C

Definition at line 127 of file CMatrixViews.h.


Member Typedef Documentation

Definition at line 131 of file CMatrixViews.h.


Constructor & Destructor Documentation

template<class MAT >
DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_MATRIX DECLARE_MRPT_MATRIX_ITERATORS mrpt::math::CConstMatrixViewTranspose< MAT >::CConstMatrixViewTranspose ( const MAT &  m  )  [inline]

Definition at line 138 of file CMatrixViews.h.


Member Function Documentation

template<class MAT >
value_type mrpt::math::CConstMatrixViewTranspose< MAT >::get_unsafe ( size_t  r,
size_t  c 
) const [inline]
template<class MAT >
size_t mrpt::math::CConstMatrixViewTranspose< MAT >::getColCount (  )  const [inline]
template<class MAT >
size_t mrpt::math::CConstMatrixViewTranspose< MAT >::getRowCount (  )  const [inline]
template<class MAT >
value_type mrpt::math::CConstMatrixViewTranspose< MAT >::operator() ( size_t  r,
size_t  c 
) const [inline]
template<class MAT >
void mrpt::math::CConstMatrixViewTranspose< MAT >::resize ( size_t  rc  )  [inline]
template<class MAT >
void mrpt::math::CConstMatrixViewTranspose< MAT >::setSize ( size_t  r,
size_t  c 
) [inline]
template<class MAT >
CMatrixTemplateSize mrpt::math::CConstMatrixViewTranspose< MAT >::size (  )  const [inline]

Member Data Documentation

template<class MAT >
const MAT& mrpt::math::CConstMatrixViewTranspose< MAT >::base [protected]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010