cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | List of all members
vctDynamicMatrixBase< _matrixOwnerType, _elementType >::Submatrix Class Reference

#include <vctDynamicMatrixBase.h>

Public Types

typedef vctDynamicMatrixRef
< value_type > 
Type
 

Detailed Description

template<class _matrixOwnerType, typename _elementType>
class vctDynamicMatrixBase< _matrixOwnerType, _elementType >::Submatrix

Define a Submatrix class for compatibility with the fixed size matrices. A submatrix has the same stride as the parent container.

Example:

typedef vctDynamicMatrix<double> MatrixType; MatrixType M(6,6); MatrixType::Submatrix::Type topLeft(M, 0, 0, 3, 3); MatrixType::Submatrix::Type bottomRight(M, 3, 3); // implicitely everything left

Note
There is no straightforward way to define a fixed-size submatrix of a dynamic matrix, because the stride of the dynamic matrix is not known in compilation time. A way to do it is:

vctFixedSizeMatrixRef<double, 3, 3, 1, 6> topRight(M, 0, 3); vctFixedSizeMatrixRef<double, 3, 3, 1, 6> bottomLeft(M, 3, 0);

Member Typedef Documentation

template<class _matrixOwnerType, typename _elementType>
typedef vctDynamicMatrixRef<value_type> vctDynamicMatrixBase< _matrixOwnerType, _elementType >::Submatrix::Type

The documentation for this class was generated from the following file: