|
cisst-saw
|
Declaration of vctDynamicMatrix. More...
#include <cisstVector/vctDynamicVector.h>#include <cisstVector/vctDynamicMatrixBase.h>#include <cisstVector/vctDynamicMatrixRef.h>#include <cisstVector/vctDynamicMatrixOwner.h>Go to the source code of this file.
Classes | |
| class | vctReturnDynamicMatrix< _elementType > |
Macros | |
| #define | _vctDynamicMatrix_h |
Functions | |
| vctDynamicMatrix () | |
| A matrix object of dynamic size. | |
| vctDynamicMatrix (size_type rows, size_type cols, bool storageOrder=VCT_DEFAULT_STORAGE) | |
| vctDynamicMatrix (const nsize_type &matrixSize, bool storageOrder=VCT_DEFAULT_STORAGE) | |
| vctDynamicMatrix (size_type rows, size_type cols, value_type value, bool storageOrder=VCT_DEFAULT_STORAGE) | |
| vctDynamicMatrix (const nsize_type &matrixSize, value_type value, bool storageOrder=VCT_DEFAULT_STORAGE) | |
| vctDynamicMatrix (const vctReturnDynamicMatrix< value_type > &otherMatrix) | |
| vctDynamicMatrix (const ThisType &otherMatrix) | |
| template<class __matrixOwnerType, typename __otherMatrixElementType> | |
| vctDynamicMatrix (const vctDynamicConstMatrixBase< __matrixOwnerType, __otherMatrixElementType > &otherMatrix, bool storageOrder) | |
| template<class __matrixOwnerType> | |
| vctDynamicMatrix (const vctDynamicConstMatrixBase< __matrixOwnerType, value_type > &otherMatrix) | |
| template<class __matrixOwnerType, typename __otherMatrixElementType> | |
| vctDynamicMatrix (const vctDynamicConstMatrixBase< __matrixOwnerType, __otherMatrixElementType > &otherMatrix) | |
| template<size_type __rows, size_type __cols, stride_type __rowStride, stride_type __colStride, class __elementType, class __dataPtrType> | |
| vctDynamicMatrix (const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, __elementType, __dataPtrType > &other) | |
| template<class __matrixOwnerType, typename __elementType> | |
| ThisType & | operator= (const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &otherMatrix) |
| ThisType & | operator= (const ThisType &otherMatrix) |
| template<size_type __rows, size_type __cols, stride_type __rowStride, stride_type __colStride, class __elementType, class __dataPtrType> | |
| ThisType & | operator= (const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, __elementType, __dataPtrType > &other) |
| ThisType & | operator= (const vctReturnDynamicMatrix< value_type > &otherMatrix) |
| ThisType & | operator= (const value_type &value) |
| template<class __matrixOwnerType, typename __elementType> | |
| ThisType & | ForceAssign (const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &other) |
| template<size_type __rows, size_type __cols, stride_type __rowStride, stride_type __colStride, class __elementType, class __dataPtrType> | |
| ThisType & | ForceAssign (const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, __elementType, __dataPtrType > &other) |
| void | resize (size_type rows, size_type cols) |
| void | resize (const nsize_type &newSizes) |
| void | SetSize (size_type rows, size_type cols, bool storageOrder) |
| void | SetSize (const nsize_type &matrixSize, bool storageOrder) |
| void | SetSize (size_type rows, size_type cols) |
| void | SetSize (const nsize_type &matrixSize) |
| void | DeSerializeRaw (std::istream &inputStream) |
Elementwise operations between dynamic matrices. | |
| template<class _matrixOwnerType1, class _matrixOwnerType2, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator+ (const vctDynamicConstMatrixBase< _matrixOwnerType1, _elementType > &inputMatrix1, const vctDynamicConstMatrixBase< _matrixOwnerType2, _elementType > &inputMatrix2) |
| template<class _matrixOwnerType1, class _matrixOwnerType2, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator- (const vctDynamicConstMatrixBase< _matrixOwnerType1, _elementType > &inputMatrix1, const vctDynamicConstMatrixBase< _matrixOwnerType2, _elementType > &inputMatrix2) |
Elementwise operations between a dynamic matrix and a | |
scalar. | |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator+ (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix, const _elementType &inputScalar) |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator- (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix, const _elementType &inputScalar) |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator* (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix, const _elementType &inputScalar) |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator/ (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix, const _elementType &inputScalar) |
Elementwise operations between a scalar and a dynamic | |
matrix. | |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator+ (const _elementType &inputScalar, const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix) |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator- (const _elementType &inputScalar, const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix) |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator* (const _elementType &inputScalar, const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix) |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator/ (const _elementType &inputScalar, const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix) |
Elementwise operations on a dynamic matrix. | |
| template<class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator- (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix) |
| template<class _matrixOwnerType1, class _matrixOwnerType2, class _elementType> | |
| vctReturnDynamicMatrix< _elementType > | operator* (const vctDynamicConstMatrixBase< _matrixOwnerType1, _elementType > &inputMatrix1, const vctDynamicConstMatrixBase< _matrixOwnerType2, _elementType > &inputMatrix2) |
| template<class _matrixOwnerType, class _vectorOwnerType, class _elementType> | |
| vctReturnDynamicVector< _elementType > | operator* (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix, const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &inputVector) |
| template<class _vectorOwnerType, class _matrixOwnerType, class _elementType> | |
| vctReturnDynamicVector< _elementType > | operator* (const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &inputVector, const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &inputMatrix) |
| template<class _matrixOwnerType, class __matrixOwnerType, class _elementType, class _elementOperationType> | |
| vctReturnDynamicMatrix< bool > | vctDynamicMatrixElementwiseCompareMatrix (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &matrix1, const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &matrix2) |
| template<class _matrixOwnerType, class _elementType, class _elementOperationType> | |
| vctReturnDynamicMatrix< bool > | vctDynamicMatrixElementwiseCompareScalar (const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > &matrix, const _elementType &scalar) |
Declaration of vctDynamicMatrix.
| #define _vctDynamicMatrix_h |
| void DeSerializeRaw | ( | std::istream & | inputStream | ) |
Binary deserialization
|
inline |
|
inline |
| vctReturnDynamicMatrix< _elementType > operator* | ( | const _elementType & | inputScalar, |
| const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix ) |
| vctReturnDynamicMatrix< _elementType > operator* | ( | const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix, |
| const _elementType & | inputScalar ) |
| vctReturnDynamicVector< _elementType > operator* | ( | const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix, |
| const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > & | inputVector ) |
| vctReturnDynamicMatrix< _elementType > operator* | ( | const vctDynamicConstMatrixBase< _matrixOwnerType1, _elementType > & | inputMatrix1, |
| const vctDynamicConstMatrixBase< _matrixOwnerType2, _elementType > & | inputMatrix2 ) |
| vctReturnDynamicVector< _elementType > operator* | ( | const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > & | inputVector, |
| const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix ) |
| vctReturnDynamicMatrix< _elementType > operator+ | ( | const _elementType & | inputScalar, |
| const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix ) |
Operation between a scalar and a dynamic matrix.
| inputScalar | The first operand of the binary operation. |
| inputMatrix | The second operand of the binary operation. |
| vctReturnDynamicMatrix< _elementType > operator+ | ( | const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix, |
| const _elementType & | inputScalar ) |
Operation between a dynamic matrix and a scalar.
| inputMatrix | The first operand of the binary operation. |
| inputScalar | The second operand of the binary operation. |
| vctReturnDynamicMatrix< _elementType > operator+ | ( | const vctDynamicConstMatrixBase< _matrixOwnerType1, _elementType > & | inputMatrix1, |
| const vctDynamicConstMatrixBase< _matrixOwnerType2, _elementType > & | inputMatrix2 ) |
Operation between dynamic matrices (same size).
| inputMatrix1 | The first operand of the binary operation. |
| inputMatrix2 | The second operand of the binary operation. |
| vctReturnDynamicMatrix< _elementType > operator- | ( | const _elementType & | inputScalar, |
| const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix ) |
| vctReturnDynamicMatrix< _elementType > operator- | ( | const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix | ) |
Unary operation on a dynamic matrix.
| inputMatrix | The operand of the unary operation |
| vctReturnDynamicMatrix< _elementType > operator- | ( | const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix, |
| const _elementType & | inputScalar ) |
| vctReturnDynamicMatrix< _elementType > operator- | ( | const vctDynamicConstMatrixBase< _matrixOwnerType1, _elementType > & | inputMatrix1, |
| const vctDynamicConstMatrixBase< _matrixOwnerType2, _elementType > & | inputMatrix2 ) |
| vctReturnDynamicMatrix< _elementType > operator/ | ( | const _elementType & | inputScalar, |
| const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix ) |
| vctReturnDynamicMatrix< _elementType > operator/ | ( | const vctDynamicConstMatrixBase< _matrixOwnerType, _elementType > & | inputMatrix, |
| const _elementType & | inputScalar ) |
Assignment from a dynamic matrix to this matrix. The operation discards the old memory allocated for this matrix, and allocates new memory the size of the input matrix. Then the elements of the input matrix are copied into this matrix.
|
inline |
Assignement of a scalar to all elements. See also SetAll.
| ThisType & operator= | ( | const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > & | otherMatrix | ) |
Assignment from a dynamic matrix to a matrix. The operation discards the old memory allocated for this matrix, and allocates new memory the size of the input matrix. Then the elements of the input matrix are copied into this matrix.
| ThisType & operator= | ( | const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, __elementType, __dataPtrType > & | other | ) |
Assignment from a fixed size matrix. This operator will resize the left side dynamic matrix to match the right side fixed size matrix.
| ThisType & operator= | ( | const vctReturnDynamicMatrix< value_type > & | otherMatrix | ) |
Assignement from a transitional vctReturnDynamicMatrix to a vctDynamicMatrix variable. This specialized operation does not perform any element copy. Instead it transfers ownership of the data from the other matrix to this matrix, and disowns the other matrix. The right hand side operand must be a temporary object returned, e.g., from a function or overloaded operator.
| void resize | ( | const nsize_type & | newSizes | ) |
| void resize | ( | size_type | rows, |
| size_type | cols ) |
Non-destructive size change. Change the size to the specified size, and preserve as many rows and columns as possible from the former matrix.
| void SetSize | ( | const nsize_type & | matrixSize | ) |
| void SetSize | ( | const nsize_type & | matrixSize, |
| bool | storageOrder ) |
| void SetSize | ( | size_type | rows, |
| size_type | cols ) |
| void SetSize | ( | size_type | rows, |
| size_type | cols, | ||
| bool | storageOrder ) |
DESTRUCTIVE size change. Change the size to the specified size. Discard of all the old values. The storage order can be either VCT_ROW_MAJOR or VCT_COL_MAJOR. If the storage order is not specified, it is not modified.
| vctDynamicMatrix | ( | const nsize_type & | matrixSize, |
| bool | storageOrder = VCT_DEFAULT_STORAGE ) |
| vctDynamicMatrix | ( | const nsize_type & | matrixSize, |
| value_type | value, | ||
| bool | storageOrder = VCT_DEFAULT_STORAGE ) |
| vctDynamicMatrix | ( | const ThisType & | otherMatrix | ) |
Copy constructor: Allocate memory to store a copy of the other matrix, and copy the elements of the other matrix to this matrix.
|
explicit |
Copy constructor: Allocate memory and copy all the elements from the other matrix. The storage order of the copied matrix is defined by the source matrix. This constructor can also be used for type conversions.
| vctDynamicMatrix | ( | const vctDynamicConstMatrixBase< __matrixOwnerType, __otherMatrixElementType > & | otherMatrix, |
| bool | storageOrder ) |
Copy constructor: Allocate memory and copy all the elements from the other matrix. The storage order can be either VCT_ROW_MAJOR or VCT_COL_MAJOR.
| vctDynamicMatrix | ( | const vctDynamicConstMatrixBase< __matrixOwnerType, value_type > & | otherMatrix | ) |
Copy constructor: Allocate memory and copy all the elements from the other matrix. The storage order of the copied matrix is defined by the source matrix.
|
explicit |
Constructor from a fixed size matrix.
| vctDynamicMatrix | ( | const vctReturnDynamicMatrix< value_type > & | otherMatrix | ) |
Special copy constructor: Take ownership of the data of a temporary matrix object of type vctReturnDynamicMatrix. Disown the other matrix.
| vctDynamicMatrix | ( | size_type | rows, |
| size_type | cols, | ||
| bool | storageOrder = VCT_DEFAULT_STORAGE ) |
| vctDynamicMatrix | ( | size_type | rows, |
| size_type | cols, | ||
| value_type | value, | ||
| bool | storageOrder = VCT_DEFAULT_STORAGE ) |
Constructor: Create a matrix of the specified size and assign all elements a specific value. The storage order can be either VCT_ROW_MAJOR or VCT_COL_MAJOR.
|
inline |
|
inline |