ERC CISST - cisst software

vctDynamicMatrixBase< _matrixOwnerType, _elementType >::Submatrix Class Reference

#include <vctDynamicMatrixBase.h>

List of all members.


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);

Definition at line 1320 of file vctDynamicMatrixBase.h.

Public Types


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu