Main MRPT website > C++ reference
MRPT logo

mrpt::math::CMatrixViewTranspose< MATRIXTYPE > Class Template Reference

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

#include <mrpt/math/CMatrixViews.h>

Inheritance diagram for mrpt::math::CMatrixViewTranspose< MATRIXTYPE >:
Inheritance graph
[legend]
Collaboration diagram for mrpt::math::CMatrixViewTranspose< MATRIXTYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef CMatrixViewTranspose
< MATRIXTYPE > 
mrpt_autotype
 See ops_containers.h.

Public Member Functions

DECLARE_MRPT_CONTAINER_TYPES
DECLARE_MRPT_CONTAINER_IS_MATRIX
DECLARE_MRPT_MATRIX_ITERATORS 
CMatrixViewTranspose (MATRIXTYPE &m)
size_t getRowCount () const
size_t getColCount () const
value_type & get_unsafe (size_t r, size_t c)
value_type get_unsafe (size_t r, size_t c) const
void set_unsafe (size_t r, size_t c, value_type v)
value_type & operator() (const size_t r, const size_t c)
value_type operator() (const size_t r, const size_t c) const
template<typename OTHERMATRIX >
mrpt_autotypeoperator= (const OTHERMATRIX &m)
CMatrixTemplateSize size ()
void setSize (size_t r, size_t c)
void resize (size_t rtc)

Protected Attributes

MATRIXTYPE & base

Detailed Description

template<class MATRIXTYPE>
class mrpt::math::CMatrixViewTranspose< MATRIXTYPE >

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

Example of usage:

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

Definition at line 74 of file CMatrixViews.h.


Member Typedef Documentation

template<class MATRIXTYPE >
typedef CMatrixViewTranspose<MATRIXTYPE> mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::mrpt_autotype

See ops_containers.h.

Definition at line 80 of file CMatrixViews.h.


Constructor & Destructor Documentation

template<class MATRIXTYPE >
DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_MATRIX DECLARE_MRPT_MATRIX_ITERATORS mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::CMatrixViewTranspose ( MATRIXTYPE &  m  )  [inline]

Definition at line 88 of file CMatrixViews.h.


Member Function Documentation

template<class MATRIXTYPE >
value_type mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::get_unsafe ( size_t  r,
size_t  c 
) const [inline]
template<class MATRIXTYPE >
value_type& mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::get_unsafe ( size_t  r,
size_t  c 
) [inline]
template<class MATRIXTYPE >
size_t mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::getColCount (  )  const [inline]
template<class MATRIXTYPE >
size_t mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::getRowCount (  )  const [inline]
template<class MATRIXTYPE >
value_type mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::operator() ( const size_t  r,
const size_t  c 
) const [inline]
template<class MATRIXTYPE >
value_type& mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::operator() ( const size_t  r,
const size_t  c 
) [inline]
template<class MATRIXTYPE >
template<typename OTHERMATRIX >
mrpt_autotype& mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::operator= ( const OTHERMATRIX &  m  )  [inline]
template<class MATRIXTYPE >
void mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::resize ( size_t  rtc  )  [inline]
template<class MATRIXTYPE >
void mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::set_unsafe ( size_t  r,
size_t  c,
value_type  v 
) [inline]
template<class MATRIXTYPE >
void mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::setSize ( size_t  r,
size_t  c 
) [inline]
template<class MATRIXTYPE >
CMatrixTemplateSize mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::size (  )  [inline]

Member Data Documentation

template<class MATRIXTYPE >
MATRIXTYPE& mrpt::math::CMatrixViewTranspose< MATRIXTYPE >::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