cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | List of all members
vctFixedSizeMatrixBase< _rows, _cols, _rowStride, _colStride, _elementType, _dataPtrType >::Submatrix< _subRows, _subCols > Class Template Reference

#include <vctFixedSizeMatrixBase.h>

Public Types

typedef vctFixedSizeMatrixRef
< value_type, _subRows,
_subCols, ROWSTRIDE, COLSTRIDE
Type
 

Detailed Description

template<vct::size_type _rows, vct::size_type _cols, vct::stride_type _rowStride, vct::stride_type _colStride, class _elementType, class _dataPtrType>
template<size_type _subRows, size_type _subCols>
class vctFixedSizeMatrixBase< _rows, _cols, _rowStride, _colStride, _elementType, _dataPtrType >::Submatrix< _subRows, _subCols >

Easy definition of a submatrix type

This class declares a non-const submatrix type. To declare a submatrix object, here's an example.

typedef vctFixedSizeMatrix<double, 4, 4> double4x4; double4x4 m; double4x4::ConstSubmatrix<3, 3>::Type subMatrix( m, 0, 0 );

The submatrix strides with respect to the parent container are always 1. The is, the memory strides between the elements of the parent matrix and submatrix are equal. For more sophisticated submatrices, the user has to write customized code.

Member Typedef Documentation

template<vct::size_type _rows, vct::size_type _cols, vct::stride_type _rowStride, vct::stride_type _colStride, class _elementType, class _dataPtrType>
template<size_type _subRows, size_type _subCols>
typedef vctFixedSizeMatrixRef<value_type, _subRows, _subCols, ROWSTRIDE, COLSTRIDE> vctFixedSizeMatrixBase< _rows, _cols, _rowStride, _colStride, _elementType, _dataPtrType >::Submatrix< _subRows, _subCols >::Type

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