|
| VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) |
|
iterator | begin (void) |
|
iterator | end (void) |
|
reverse_iterator | rbegin (void) |
|
reverse_iterator | rend (void) |
|
const_iterator | begin (void) const |
|
const_iterator | end (void) const |
|
const_reverse_iterator | rbegin (void) const |
|
const_reverse_iterator | rend (void) const |
|
RowRefType | operator[] (size_type index) |
|
ConstRowRefType | operator[] (size_type index) const |
|
const OwnerType & | Owner (void) const |
|
OwnerType & | Owner (void) |
|
pointer | Pointer (size_type rowIndex, size_type colIndex) |
|
pointer | Pointer (void) |
|
const_pointer | Pointer (size_type rowIndex, size_type colIndex) const |
|
const_pointer | Pointer (void) const |
|
reference | at (size_type index) throw (std::out_of_range) |
|
const_reference | at (size_type index) const throw (std::out_of_range) |
|
reference | at (size_type rowIndex, size_type colIndex) throw (std::out_of_range) |
|
const_reference | at (size_type rowIndex, size_type colIndex) const throw (std::out_of_range) |
|
reference | operator() (size_type rowIndex, size_type colIndex) throw (std::out_of_range) |
|
const_reference | operator() (size_type rowIndex, size_type colIndex) const throw (std::out_of_range) |
|
reference | Element (size_type rowIndex, size_type colIndex) |
|
const_reference | Element (size_type rowIndex, size_type colIndex) const |
|
template<class __matrixOwnerType > |
void | RowPermutationOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix, const index_type permutedRowIndexes[]) |
|
template<class __matrixOwnerType > |
void | RowInversePermutationOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix, const index_type permutedRowIndexes[]) |
|
template<class __matrixOwnerType > |
void | ColumnPermutationOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix, const index_type permutedColumnIndexes[]) |
|
template<class __matrixOwnerType > |
void | ColumnInversePermutationOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix, const index_type permutedColumnIndexes[]) |
|
value_type | SetAll (const value_type value) |
|
bool | Zeros (void) |
|
ThisType & | Assign (const value_type *elements, bool inputIsRowMajor=true) |
|
ThisType & | Assign (const value_type element0,...) |
|
RefTransposeType | TransposeRef (void) |
|
ConstRefTransposeType | TransposeRef (void) const |
|
template<class __matrixOwnerType > |
ThisType & | AddProductOf (const value_type scalar, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | AddElementwiseProductOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
void | ProductOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
void | OuterProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &colVector, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &rowVector) |
|
|
RowRefType | Row (size_type index) throw (std::out_of_range) |
|
ColumnRefType | Column (size_type index) throw (std::out_of_range) |
|
DiagonalRefType | Diagonal (void) |
|
VectorPointerType & | RowPointers (VectorPointerType &rowPointers) throw (std::runtime_error) |
|
ConstRowRefType | Row (size_type index) const throw (std::out_of_range) |
|
ConstColumnRefType | Column (size_type index) const throw (std::out_of_range) |
|
ConstDiagonalRefType | Diagonal (void) const |
|
ConstVectorPointerType | RowPointers (ConstVectorPointerType &rowPointers) const throw (std::runtime_error) |
|
|
vctDynamicMatrixRef< _elementType > | Ref (const size_type rows, const size_type cols, const size_type startRow=0, const size_type startCol=0) throw (std::out_of_range) |
|
vctDynamicConstMatrixRef
< _elementType > | Ref (const size_type rows, const size_type cols, const size_type startRow=0, const size_type startCol=0) const throw (std::out_of_range) |
|
|
void | ExchangeRows (const size_type row1Index, const size_type row2Index) |
|
void | ExchangeColumns (const size_type col1Index, const size_type col2Index) |
|
template<class __inputMatrixOwnerType , class __indexVectorOwnerType > |
void | SelectRowsFrom (const vctDynamicConstMatrixBase< __inputMatrixOwnerType, _elementType > &inputMatrix, const vctDynamicConstVectorBase< __indexVectorOwnerType, index_type > &rowIndexVector) |
|
template<class __inputMatrixOwnerType , class __indexVectorOwnerType > |
void | SelectColsFrom (const vctDynamicConstMatrixBase< __inputMatrixOwnerType, _elementType > &inputMatrix, const vctDynamicConstVectorBase< __indexVectorOwnerType, index_type > &colIndexVector) |
|
|
- Parameters
-
other | The matrix to be copied. |
|
template<class __matrixOwnerType > |
ThisType & | Assign (const vctDynamicConstMatrixBase< __matrixOwnerType, value_type > &other) |
|
|
- Parameters
-
other | The matrix to be copied. |
|
template<class __matrixOwnerType , typename __elementType > |
ThisType & | Assign (const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &other) |
|
template<class __matrixOwnerType , typename __elementType > |
ThisType & | operator= (const vctDynamicConstMatrixBase< __matrixOwnerType, __elementType > &other) |
|
template<size_type __rows, size_type __cols, stride_type __rowStride, stride_type __colStride, class __elementType , class __dataPtrType > |
ThisType & | Assign (const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, __elementType, __dataPtrType > &other) |
|
|
different types. This method will use SetSize on the destination matrix (this matrix) to make sure the assignment will work. It is important to note that if the sizes don't match, memory for this matrix will be re-allocated. If the program has previously created some references (as in vctDynamic{Const}MatrixRef) on this matrix, they will become invalid.
- Note
- For a non-reallocating Assign, it is recommended to use the Assign() methods.
-
If the destination matrix doesn't have the same size as the source and can not be resized, an exception will be thrown by the Assign method called internally.
-
This method is provided for both fixed size and dynamic matrices for API consistency (usable in templated code). There is obviously not resize involved on fixed size matrices.
- Parameters
-
other | The matrix to be copied. |
|
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) |
|
|
template<class __matrixOwnerType > |
bool | FastCopyOf (const vctDynamicConstMatrixBase< __matrixOwnerType, value_type > &source, bool performSafetyChecks=vctFastCopy::PerformChecks) throw (std::runtime_error) |
|
template<size_type __rows, size_type __cols, stride_type __rowStride, stride_type __colStride, class __dataPtrType > |
bool | FastCopyOf (const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, value_type, __dataPtrType > &source, bool performSafetyChecks=vctFastCopy::PerformChecks) throw (std::runtime_error) |
|
|
Store the result of op(this, otherMatrix) back to this matrix.
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | SumOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | DifferenceOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | ElementwiseProductOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | ElementwiseRatioOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | ElementwiseMinOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType1 , class __matrixOwnerType2 > |
ThisType & | ElementwiseMaxOf (const vctDynamicConstMatrixBase< __matrixOwnerType1, _elementType > &matrix1, const vctDynamicConstMatrixBase< __matrixOwnerType2, _elementType > &matrix2) |
|
template<class __matrixOwnerType > |
ThisType & | Add (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | Subtract (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | ElementwiseMultiply (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | ElementwiseDivide (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | ElementwiseMin (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | ElementwiseMax (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | operator+= (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | operator-= (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
|
Store the result of op(matrix, scalar) to a third matrix.
|
template<class __matrixOwnerType > |
ThisType & | SumOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix, const value_type scalar) |
|
template<class __matrixOwnerType > |
ThisType & | DifferenceOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix, const value_type scalar) |
|
template<class __matrixOwnerType > |
ThisType & | ProductOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix, const value_type scalar) |
|
template<class __matrixOwnerType > |
ThisType & | RatioOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix, const value_type scalar) |
|
template<class __matrixOwnerType > |
ThisType & | ClippedAboveOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix, const value_type lowerBound) |
|
template<class __matrixOwnerType > |
ThisType & | ClippedBelowOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix, const value_type upperBound) |
|
|
Store the result of op(scalar, matrix) to a third matrix.
|
template<class __matrixOwnerType > |
ThisType & | SumOf (const value_type scalar, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix) |
|
template<class __matrixOwnerType > |
ThisType & | DifferenceOf (const value_type scalar, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix) |
|
template<class __matrixOwnerType > |
ThisType & | ProductOf (const value_type scalar, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix) |
|
template<class __matrixOwnerType > |
ThisType & | RatioOf (const value_type scalar, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix) |
|
template<class __matrixOwnerType > |
ThisType & | ClippedAboveOf (const value_type upperBound, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix) |
|
template<class __matrixOwnerType > |
ThisType & | ClippedBelowOf (const value_type lowerBound, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &matrix) |
|
|
Store the result of op(this, scalar) back to this matrix.
|
ThisType & | Add (const value_type scalar) |
|
ThisType & | Subtract (const value_type scalar) |
|
ThisType & | Multiply (const value_type scalar) |
|
ThisType & | Divide (const value_type scalar) |
|
ThisType & | ClipAbove (const value_type upperBound) |
|
ThisType & | ClipBelow (const value_type lowerBound) |
|
ThisType & | operator+= (const value_type scalar) |
|
ThisType & | operator-= (const value_type scalar) |
|
ThisType & | operator*= (const value_type scalar) |
|
ThisType & | operator/= (const value_type scalar) |
|
|
Store the result of op(matrix) to another matrix.
|
template<class __matrixOwnerType > |
ThisType & | AbsOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | NegationOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | FloorOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | CeilOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
template<class __matrixOwnerType > |
ThisType & | TransposeOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) |
|
|
Store the result of op(this) to this matrix.
|
ThisType & | AbsSelf (void) |
|
ThisType & | NegationSelf (void) |
|
ThisType & | FloorSelf (void) |
|
ThisType & | CeilSelf (void) |
|
| VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) |
|
| VCT_NARRAY_TRAITS_TYPEDEFS (DIMENSION) |
|
const_iterator | begin (void) const |
|
const_iterator | end (void) const |
|
const_reverse_iterator | rbegin (void) const |
|
const_reverse_iterator | rend (void) const |
|
size_type | size (void) const |
|
const nsize_type & | sizes (void) const |
|
size_type | rows () const |
|
size_type | cols () const |
|
size_type | height () const |
|
size_type | width () const |
|
const nstride_type & | strides (void) const |
|
difference_type | row_stride () const |
|
difference_type | col_stride () const |
|
bool | empty () const |
|
ConstRowRefType | operator[] (size_type index) const |
|
const_reference | at (size_type index) const throw (std::out_of_range) |
|
const OwnerType & | Owner (void) const |
|
const_pointer | Pointer (index_type rowIndex, index_type colIndex) const |
|
const_pointer | Pointer (void) const |
|
bool | ValidIndex (size_type index) const |
|
bool | ValidIndex (size_type rowIndex, size_type colIndex) const |
|
bool | ValidRowIndex (size_type rowIndex) const |
|
bool | ValidColIndex (size_type colIndex) const |
|
const_reference | at (size_type rowIndex, size_type colIndex) const throw (std::out_of_range) |
|
const_reference | operator() (size_type rowIndex, size_type colIndex) const throw (std::out_of_range) |
|
const_reference | Element (size_type rowIndex, size_type colIndex) const |
|
ConstRowRefType | Row (size_type index) const throw (std::out_of_range) |
|
ConstColumnRefType | Column (size_type index) const throw (std::out_of_range) |
|
ConstDiagonalRefType | Diagonal () const |
|
ConstVectorPointerType & | RowPointers (ConstVectorPointerType &rowPointers) const throw (std::runtime_error) |
|
vctDynamicConstMatrixRef
< _elementType > | Ref (const size_type rows, const size_type cols, const size_type startRow=0, const size_type startCol=0) const throw (std::out_of_range) |
|
ConstRefTransposeType | TransposeRef (void) const |
|
MatrixReturnType | Transpose () const |
|
std::string | ToString (void) |
|
void | ToStream (std::ostream &outputStream) const |
|
void | ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const |
|
void | SerializeRaw (std::ostream &outputStream) const |
|
value_type | SumOfElements (void) const |
|
value_type | ProductOfElements (void) const |
|
value_type | Trace (void) const |
|
value_type | NormSquare (void) const |
|
NormType | Norm (void) const |
|
value_type | L1Norm (void) const |
|
value_type | LinfNorm (void) const |
|
value_type | MaxElement (void) const |
|
value_type | MinElement (void) const |
|
value_type | MaxAbsElement (void) const |
|
value_type | MinAbsElement (void) const |
|
void | MinAndMaxElement (value_type &minElement, value_type &maxElement) const |
|
bool | IsPositive (void) const |
|
bool | IsNonNegative (void) const |
|
bool | IsNonPositive (void) const |
|
bool | IsNegative (void) const |
|
bool | All (void) const |
|
bool | Any (void) const |
|
bool | IsFinite (void) const |
|
bool | HasNaN (void) const |
|
bool | IsColMajor (void) const |
|
bool | IsRowMajor (void) const |
|
bool | IsCompact (void) const |
|
bool | IsFortran (void) const |
|
bool | StorageOrder (void) const |
|
bool | IsSquare (void) const |
|
bool | IsSquare (size_type size) const |
|
template<class __matrixOwnerType > |
bool | FastCopyCompatible (const vctDynamicConstMatrixBase< __matrixOwnerType, value_type > &source) const |
|
template<size_type __rows, size_type __cols, stride_type __rowStride, stride_type __colStride, class __dataPtrType > |
bool | FastCopyCompatible (const vctFixedSizeConstMatrixBase< __rows, __cols, __rowStride, __colStride, value_type, __dataPtrType > &source) const |
|
template<class __matrixOwnerType > |
bool | Equal (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | operator== (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | AlmostEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix, value_type tolerance) const |
|
template<class __matrixOwnerType > |
bool | AlmostEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | NotEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | operator!= (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | Lesser (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | LesserOrEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | Greater (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
bool | GreaterOrEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
BoolMatrixReturnType | ElementwiseEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
BoolMatrixReturnType | ElementwiseNotEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
BoolMatrixReturnType | ElementwiseLesser (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
BoolMatrixReturnType | ElementwiseLesserOrEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
BoolMatrixReturnType | ElementwiseGreater (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
template<class __matrixOwnerType > |
BoolMatrixReturnType | ElementwiseGreaterOrEqual (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &otherMatrix) const |
|
bool | Equal (const value_type &scalar) const |
|
bool | operator== (const value_type &scalar) const |
|
bool | NotEqual (const value_type &scalar) const |
|
bool | operator!= (const value_type &scalar) const |
|
bool | Lesser (const value_type &scalar) const |
|
bool | LesserOrEqual (const value_type &scalar) const |
|
bool | Greater (const value_type &scalar) const |
|
bool | GreaterOrEqual (const value_type &scalar) const |
|
BoolMatrixReturnType | ElementwiseEqual (const value_type &scalar) const |
|
BoolMatrixReturnType | ElementwiseNotEqual (const value_type &scalar) const |
|
BoolMatrixReturnType | ElementwiseLesser (const value_type &scalar) const |
|
BoolMatrixReturnType | ElementwiseLesserOrEqual (const value_type &scalar) const |
|
BoolMatrixReturnType | ElementwiseGreater (const value_type &scalar) const |
|
BoolMatrixReturnType | ElementwiseGreaterOrEqual (const value_type &scalar) const |
|
MatrixReturnType | Abs (void) const |
|
MatrixReturnType | Negation (void) const |
|
MatrixReturnType | Floor (void) const |
|
MatrixReturnType | Ceil (void) const |
|