A wrapper around an existing matrix (of any kind) that allows operating on a subrange of the elements. More...
#include <mrpt/math/CMatrixViews.h>


Public Types | |
| typedef CSubmatrixView < MATRIXTYPE, NR, NC > | mrpt_autotype |
Public Member Functions | |
| DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_MATRIX DECLARE_MRPT_MATRIX_ITERATORS | CSubmatrixView (MATRIXTYPE &m, size_t r1, size_t c1) |
| 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_autotype & | operator= (const OTHERMATRIX &m) |
Static Public Member Functions | |
| static size_t | getRowCount () |
| static size_t | getColCount () |
| static CMatrixTemplateSize | size () |
| static void | setSize (size_t r, size_t c) |
| static void | resize (size_t rtc) |
Protected Attributes | |
| MATRIXTYPE & | base |
| size_t | firstRow |
| size_t | firstCol |
A wrapper around an existing matrix (of any kind) that allows operating on a subrange of the elements.
Example of usage:
CMatrixDouble C(10,10); CSubmatrixView<CMatrixDouble,3,2> Csub(C,5,6); // Csub is C([5,6,7],[6,7])
Definition at line 176 of file CMatrixViews.h.
| typedef CSubmatrixView<MATRIXTYPE,NR,NC> mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::mrpt_autotype |
Definition at line 182 of file CMatrixViews.h.
| DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_MATRIX DECLARE_MRPT_MATRIX_ITERATORS mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::CSubmatrixView | ( | MATRIXTYPE & | m, | |
| size_t | r1, | |||
| size_t | c1 | |||
| ) | [inline] |
Definition at line 189 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe | ( | size_t | r, | |
| size_t | c | |||
| ) | const [inline] |
Definition at line 199 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| value_type& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe | ( | size_t | r, | |
| size_t | c | |||
| ) | [inline] |
Definition at line 196 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| static size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::getColCount | ( | ) | [inline, static] |
Definition at line 193 of file CMatrixViews.h.
| static size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::getRowCount | ( | ) | [inline, static] |
Definition at line 190 of file CMatrixViews.h.
| value_type mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator() | ( | const size_t | r, | |
| const size_t | c | |||
| ) | const [inline] |
Definition at line 208 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| value_type& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator() | ( | const size_t | r, | |
| const size_t | c | |||
| ) | [inline] |
Definition at line 205 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| mrpt_autotype& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator= | ( | const OTHERMATRIX & | m | ) | [inline] |
Definition at line 211 of file CMatrixViews.h.
References ASSERT_, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| static void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::resize | ( | size_t | rtc | ) | [inline, static] |
Definition at line 225 of file CMatrixViews.h.
| void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe | ( | size_t | r, | |
| size_t | c, | |||
| value_type | v | |||
| ) | [inline] |
Definition at line 202 of file CMatrixViews.h.
References mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base, mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol, and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow.
| static void mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::setSize | ( | size_t | r, | |
| size_t | c | |||
| ) | [inline, static] |
Definition at line 222 of file CMatrixViews.h.
| static CMatrixTemplateSize mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::size | ( | ) | [inline, static] |
Definition at line 217 of file CMatrixViews.h.
MATRIXTYPE& mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::base [protected] |
Definition at line 178 of file CMatrixViews.h.
Referenced by mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator()(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator=(), and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe().
size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstCol [protected] |
Definition at line 180 of file CMatrixViews.h.
Referenced by mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator()(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator=(), and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe().
size_t mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::firstRow [protected] |
Definition at line 179 of file CMatrixViews.h.
Referenced by mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator()(), mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::operator=(), and mrpt::math::CSubmatrixView< MATRIXTYPE, NR, NC >::set_unsafe().
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |