|
| 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 |
|
reference | operator[] (index_type index) |
|
const_reference | operator[] (index_type index) const |
|
const VectorOwnerType & | Owner (void) const |
|
VectorOwnerType & | Owner (void) |
|
pointer | Pointer (index_type index=0) |
|
const_pointer | Pointer (index_type index=0) const |
|
reference | at (index_type index) throw (std::out_of_range) |
|
const_reference | at (index_type index) const throw (std::out_of_range) |
|
reference | operator() (index_type index) throw (std::out_of_range) |
|
const_reference | operator() (index_type index) const throw (std::out_of_range) |
|
reference | Element (index_type index) |
|
const_reference | Element (index_type index) const |
|
value_type | SetAll (const value_type value) |
|
bool | Zeros (void) |
|
ThisType & | Assign (const value_type *elements) |
|
ThisType & | Assign (value_type element0, value_type element1,...) throw (std::runtime_error) |
|
template<class __vectorOwnerType , class __elementType > |
ThisType & | ConcatenationOf (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &otherVector, __elementType lastElement) |
|
template<class __inputVectorOwner , class __indexVectorOwner > |
void | SelectFrom (const vctDynamicConstVectorBase< __inputVectorOwner, _elementType > &input, const vctDynamicConstVectorBase< __indexVectorOwner, index_type > &index) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
void | CrossProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &inputVector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &inputVector2) |
|
template<class __vectorOwnerType > |
ThisType & | AddProductOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | AddElementwiseProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
|
template<class __vectorOwnerType > |
ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other) |
|
|
template<class __vectorOwnerType > |
ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other, size_type length, size_type startPositionThis=0, size_type startPositionOther=0) |
|
|
- Parameters
-
other | The vector to be copied. |
|
template<class __vectorOwnerType , typename __elementType > |
ThisType & | Assign (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &other) |
|
template<class __vectorOwnerType , typename __elementType > |
ThisType & | operator= (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &other) |
|
template<size_type __size, stride_type __stride, class __elementType , class __dataPtrType > |
ThisType & | Assign (const vctFixedSizeConstVectorBase< __size, __stride, __elementType, __dataPtrType > &other) |
|
|
different types. This method will use SetSize on the destination vector (this vector) to make sure the assignment will work. It is important to note that if the sizes don't match, memory for this vector will be re-allocated. If the program has previously created some references (as in vctDynamic{Const}VectorRef) on this vector, they will become invalid.
- Note
- For a non-reallocating Assign, it is recommended to use the Assign() methods.
-
This method is provided for both fixed size and dynamic vectors for API consistency (usable in templated code). There is obviously not resize involved on fixed size vectors.
-
If the destination vector 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.
- Parameters
-
other | The vector to be copied. |
|
template<class __vectorOwnerType , typename __elementType > |
ThisType & | ForceAssign (const vctDynamicConstVectorBase< __vectorOwnerType, __elementType > &other) |
|
template<size_type __size, stride_type __stride, class __elementType , class __dataPtrType > |
ThisType & | ForceAssign (const vctFixedSizeConstVectorBase< __size, __stride, __elementType, __dataPtrType > &other) |
|
|
template<class __vectorOwnerType > |
bool | FastCopyOf (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source, bool performSafetyChecks=true) throw (std::runtime_error) |
|
template<size_type __size, stride_type __stride, class __dataPtrType > |
bool | FastCopyOf (const vctFixedSizeConstVectorBase< __size, __stride, value_type, __dataPtrType > &source, bool performSafetyChecks=true) throw (std::runtime_error) |
|
|
The following methods are size dependant, i.e. don't necessarily mean anything for all sizes of vector. For example, using the Z() method on a vector of size 2 shouldn't be allowed. Therefore, we are using CMN_ASSERT to check that the size is valid
|
value_type & | X (void) |
|
const value_type & | X (void) const |
|
value_type & | Y (void) |
|
const value_type & | Y (void) const |
|
value_type & | Z (void) |
|
const value_type & | Z (void) const |
|
value_type & | W (void) |
|
const value_type & | W (void) const |
|
vctDynamicVectorRef< _elementType > | XY (void) |
|
vctDynamicVectorRef< _elementType > | XZ (void) |
|
vctDynamicVectorRef< _elementType > | XW (void) |
|
vctDynamicVectorRef< _elementType > | YZ (void) |
|
vctDynamicVectorRef< _elementType > | YW (void) |
|
vctDynamicVectorRef< _elementType > | ZW (void) |
|
vctDynamicConstVectorRef
< _elementType > | XY (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XZ (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XW (void) const |
|
vctDynamicConstVectorRef
< _elementType > | YZ (void) const |
|
vctDynamicConstVectorRef
< _elementType > | YW (void) const |
|
vctDynamicConstVectorRef
< _elementType > | ZW (void) const |
|
vctDynamicVectorRef< _elementType > | XYZ (void) |
|
vctDynamicVectorRef< _elementType > | YZW (void) |
|
vctDynamicConstVectorRef
< _elementType > | XYZ (void) const |
|
vctDynamicConstVectorRef
< _elementType > | YZW (void) const |
|
vctDynamicVectorRef< _elementType > | XYZW (void) |
|
vctDynamicConstVectorRef
< _elementType > | XYZW (void) const |
|
vctDynamicVectorRef< _elementType > | Ref (const size_type size, const size_type startPosition=0) throw (std::out_of_range) |
|
vctDynamicConstVectorRef
< _elementType > | Ref (const size_type size, const size_type startPosition=0) const throw (std::out_of_range) |
|
|
Operate on both elements and store values in both.
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | SumOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | DifferenceOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | ElementwiseProductOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | ElementwiseRatioOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | ElementwiseMinOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | ElementwiseMaxOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &vector1, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector2) |
|
template<class __vectorOwnerType1 , class __vectorOwnerType2 > |
ThisType & | ElementwiseClippedInOf (const vctDynamicConstVectorBase< __vectorOwnerType1, _elementType > &boundVector, const vctDynamicConstVectorBase< __vectorOwnerType2, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | Add (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | Subtract (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | ElementwiseMultiply (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | ElementwiseDivide (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | ElementwiseMin (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | ElementwiseMax (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | ElementwiseClipIn (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &boundVector) |
|
template<class __vectorOwnerType > |
ThisType & | operator+= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | operator-= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | SwapElementsWith (vctDynamicVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
|
Store the result of op(vector, scalar) to a third vector.
|
template<class __vectorOwnerType > |
ThisType & | SumOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
|
template<class __vectorOwnerType > |
ThisType & | DifferenceOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
|
template<class __vectorOwnerType > |
ThisType & | ProductOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
|
template<class __vectorOwnerType > |
ThisType & | RatioOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type scalar) |
|
template<class __vectorOwnerType > |
ThisType & | ClippedAboveOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type upperBound) |
|
template<class __vectorOwnerType > |
ThisType & | ClippedBelowOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type lowerBound) |
|
template<class __vectorOwnerType > |
ThisType & | ClippedInOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector, const value_type bound) |
|
|
Store the result of op(scalar, vector) to a third vector.
|
template<class __vectorOwnerType > |
ThisType & | SumOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | DifferenceOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | ProductOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | RatioOf (const value_type scalar, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | ClippedAboveOf (const value_type upperBound, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | ClippedBelowOf (const value_type lowerBound, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
template<class __vectorOwnerType > |
ThisType & | ClippedInOf (const value_type bound, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &vector) |
|
|
Store the result of op(this, scalar) back to this vector.
|
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 & | ClipIn (const value_type bound) |
|
ThisType & | operator+= (const value_type scalar) |
|
ThisType & | operator-= (const value_type scalar) |
|
ThisType & | operator*= (const value_type scalar) |
|
ThisType & | operator/= (const value_type scalar) |
|
|
matrix. Store the result of op() to a third vector (this vector).
|
template<class __matrixOwnerType , class __vectorOwnerType > |
ThisType & | ProductOf (const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix, const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &inputVector) |
|
template<class __vectorOwnerType , class __matrixOwnerType > |
ThisType & | ProductOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &inputVector, const vctDynamicConstMatrixBase< __matrixOwnerType, _elementType > &inputMatrix) |
|
|
Store the result of op(vector) to another vector.
|
template<class __vectorOwnerType > |
ThisType & | AbsOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | NegationOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | FloorOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | CeilOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) |
|
template<class __vectorOwnerType > |
ThisType & | NormalizedOf (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) throw (std::runtime_error) |
|
|
Store the result of op(this) to this vector.
|
ThisType & | AbsSelf (void) |
|
ThisType & | NegationSelf (void) |
|
ThisType & | FloorSelf (void) |
|
ThisType & | CeilSelf (void) |
|
ThisType & | NormalizedSelf (void) throw (std::runtime_error) |
|
| VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType) |
|
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 |
|
difference_type | stride () const |
|
bool | empty () const |
|
const_reference | operator[] (index_type index) const |
|
const_reference | at (size_type index) const throw (std::out_of_range) |
|
const_reference | operator() (size_type index) const throw (std::out_of_range) |
|
const_reference | Element (size_type index) const |
|
const OwnerType & | Owner (void) const |
|
const_pointer | Pointer (index_type index=0) const |
|
bool | ValidIndex (size_type index) const |
|
vctDynamicConstVectorRef
< _elementType > | Ref (const size_type size, const size_type startPosition=0) const throw (std::out_of_range) |
|
template<class __vectorOwnerType > |
value_type | DotProduct (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
std::string | ToString (void) const |
|
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 |
|
const value_type & | X (void) const |
|
const value_type & | Y (void) const |
|
const value_type & | Z (void) const |
|
const value_type & | W (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XY (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XZ (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XW (void) const |
|
vctDynamicConstVectorRef
< _elementType > | YZ (void) const |
|
vctDynamicConstVectorRef
< _elementType > | YW (void) const |
|
vctDynamicConstVectorRef
< _elementType > | ZW (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XYZ (void) const |
|
vctDynamicConstVectorRef
< _elementType > | YZW (void) const |
|
vctDynamicConstVectorRef
< _elementType > | XYZW (void) const |
|
value_type | SumOfElements (void) const |
|
value_type | ProductOfElements (void) const |
|
value_type | NormSquare (void) const |
|
NormType | Norm (void) const |
|
bool | IsNormalized (void) const |
|
bool | IsNormalized (_elementType tolerance) 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 | IsCompact (void) const |
|
bool | IsFortran (void) const |
|
template<class __vectorOwnerType > |
bool | FastCopyCompatible (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source) const |
|
template<size_type __size, stride_type __stride, class __dataPtrType > |
bool | FastCopyCompatible (const vctFixedSizeConstVectorBase< __size, __stride, value_type, __dataPtrType > &source) const |
|
template<class __vectorOwnerType > |
bool | Equal (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | operator== (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | AlmostEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector, value_type tolerance) const |
|
template<class __vectorOwnerType > |
bool | AlmostEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | NotEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | operator!= (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | Lesser (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | LesserOrEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | Greater (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
bool | GreaterOrEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
BoolVectorReturnType | ElementwiseEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
BoolVectorReturnType | ElementwiseNotEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
BoolVectorReturnType | ElementwiseLesser (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
BoolVectorReturnType | ElementwiseLesserOrEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
BoolVectorReturnType | ElementwiseGreater (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) const |
|
template<class __vectorOwnerType > |
BoolVectorReturnType | ElementwiseGreaterOrEqual (const vctDynamicConstVectorBase< __vectorOwnerType, _elementType > &otherVector) 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 |
|
BoolVectorReturnType | ElementwiseEqual (const value_type &scalar) const |
|
BoolVectorReturnType | ElementwiseNotEqual (const value_type &scalar) const |
|
BoolVectorReturnType | ElementwiseLesser (const value_type &scalar) const |
|
BoolVectorReturnType | ElementwiseLesserOrEqual (const value_type &scalar) const |
|
BoolVectorReturnType | ElementwiseGreater (const value_type &scalar) const |
|
BoolVectorReturnType | ElementwiseGreaterOrEqual (const value_type &scalar) const |
|
VectorReturnType | Abs (void) const |
|
VectorReturnType | Negation (void) const |
|
VectorReturnType | Floor (void) const |
|
VectorReturnType | Ceil (void) const |
|
VectorReturnType | Normalized (void) const throw (std::runtime_error) |
|