A const 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 CConstSubmatrixView < MATRIXTYPE, NR, NC > | mrpt_autotype |
Public Member Functions | |
| DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_MATRIX DECLARE_MRPT_MATRIX_ITERATORS | CConstSubmatrixView (const MATRIXTYPE &m, size_t r1, size_t c1) |
| value_type | get_unsafe (size_t r, size_t c) const |
| value_type | operator() (const size_t r, const size_t c) const |
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 | |
| const MATRIXTYPE & | base |
| size_t | firstRow |
| size_t | firstCol |
A const wrapper around an existing matrix (of any kind) that allows operating on a subrange of the elements.
Example of usage:
const CMatrixDouble C(10,10); CConstSubmatrixView<CMatrixDouble,3,2> Csub(C,5,6); // Csub is C([5,6,7],[6,7])
Definition at line 238 of file CMatrixViews.h.
| typedef CConstSubmatrixView<MATRIXTYPE,NR,NC> mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::mrpt_autotype |
Definition at line 244 of file CMatrixViews.h.
| DECLARE_MRPT_CONTAINER_TYPES DECLARE_MRPT_CONTAINER_IS_MATRIX DECLARE_MRPT_MATRIX_ITERATORS mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::CConstSubmatrixView | ( | const MATRIXTYPE & | m, | |
| size_t | r1, | |||
| size_t | c1 | |||
| ) | [inline] |
Definition at line 251 of file CMatrixViews.h.
| value_type mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe | ( | size_t | r, | |
| size_t | c | |||
| ) | const [inline] |
| static size_t mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::getColCount | ( | ) | [inline, static] |
Definition at line 255 of file CMatrixViews.h.
| static size_t mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::getRowCount | ( | ) | [inline, static] |
Definition at line 252 of file CMatrixViews.h.
| value_type mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::operator() | ( | const size_t | r, | |
| const size_t | c | |||
| ) | const [inline] |
| static void mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::resize | ( | size_t | rtc | ) | [inline, static] |
Definition at line 272 of file CMatrixViews.h.
| static void mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::setSize | ( | size_t | r, | |
| size_t | c | |||
| ) | [inline, static] |
Definition at line 269 of file CMatrixViews.h.
| static CMatrixTemplateSize mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::size | ( | ) | [inline, static] |
Definition at line 264 of file CMatrixViews.h.
const MATRIXTYPE& mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::base [protected] |
Definition at line 240 of file CMatrixViews.h.
Referenced by mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), and mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::operator()().
size_t mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::firstCol [protected] |
Definition at line 242 of file CMatrixViews.h.
Referenced by mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), and mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::operator()().
size_t mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::firstRow [protected] |
Definition at line 241 of file CMatrixViews.h.
Referenced by mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::get_unsafe(), and mrpt::math::CConstSubmatrixView< MATRIXTYPE, NR, NC >::operator()().
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |