#include <vctDynamicNArrayBase.h>
Inheritance diagram for vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >:


Definition at line 43 of file vctDynamicNArrayBase.h.
| other | The array to be copied. |
| other | The nArray to be copied. |
| typedef vctDynamicNArrayBase vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ThisType |
Type of the nArray itself
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Reimplemented in vctDynamicNArray< _elementType, _dimension >, and vctDynamicNArrayRef< _elementType, _dimension >.
Definition at line 51 of file vctDynamicNArrayBase.h.
| typedef vctDynamicConstNArrayBase<_nArrayOwnerType, _elementType, _dimension> vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::BaseType |
Type of the base class
Reimplemented in vctDynamicNArray< _elementType, _dimension >, vctReturnDynamicNArray< _elementType, _dimension >, and vctDynamicNArrayRef< _elementType, _dimension >.
Definition at line 54 of file vctDynamicNArrayBase.h.
| typedef _nArrayOwnerType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::OwnerType |
Type of the data owner (dynamic array or pointer)
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 57 of file vctDynamicNArrayBase.h.
| iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::begin | ( | void | ) | [inline] |
Returns an iterator on the first element (STL compatibility).
Definition at line 94 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::at(), and vctRandom().
| const_iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::begin | ( | void | ) | const [inline] |
Returns a const iterator on the first element (STL compatibility).
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 100 of file vctDynamicNArrayBase.h.
| iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::end | ( | void | ) | [inline] |
Returns an iterator on the last element (STL compatibility).
Definition at line 107 of file vctDynamicNArrayBase.h.
Referenced by vctRandom().
| const_iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::end | ( | void | ) | const [inline] |
Returns a const iterator on the last element (STL compatibility).
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 113 of file vctDynamicNArrayBase.h.
| reverse_iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::rbegin | ( | void | ) | [inline] |
Returns a reverse iterator on the last element (STL compatibility).
Definition at line 120 of file vctDynamicNArrayBase.h.
| const_reverse_iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::rbegin | ( | void | ) | const [inline] |
Returns a reverse const iterator on the last element (STL compatibility).
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 126 of file vctDynamicNArrayBase.h.
| reverse_iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::rend | ( | void | ) | [inline] |
Returns a reverse iterator on the element before first (STL compatibility).
Definition at line 133 of file vctDynamicNArrayBase.h.
| const_reverse_iterator vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::rend | ( | void | ) | const [inline] |
Returns a reverse const iterator on the element before first (STL compatibility).
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 139 of file vctDynamicNArrayBase.h.
| const OwnerType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Owner | ( | void | ) | const [inline] |
Access the NArray owner. This method should be used only to access some extra information related to the memory layout. It is used by the engines (vctDynamicNArrayLoopEngines).
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 146 of file vctDynamicNArrayBase.h.
| pointer vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Pointer | ( | const nsize_type & | indices | ) | [inline] |
Return a non const pointer to an element of the container, specified by its indices. Addition to the STL requirements.
Definition at line 157 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayRef< _elementType, _dimension >::PermutationOf(), vctDynamicNArrayRef< _elementType, _dimension >::SetRef(), vctDynamicNArrayRef< _elementType, _dimension >::SliceOf(), vctDynamicNArrayRef< _elementType, _dimension >::SubarrayOf(), and vctDynamicNArrayRef< _elementType, _dimension >::vctDynamicNArrayRef().
| const_pointer vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Pointer | ( | const nsize_type & | indices | ) | const [inline] |
Returns a const pointer to an element of the container, specified by its indices. Addition to the STL requirements.
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 163 of file vctDynamicNArrayBase.h.
| pointer vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Pointer | ( | void | ) | [inline] |
Returns a non const pointer to the first element of the container. Addition to the STL requirements.
Definition at line 171 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::at(), and vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::Element().
| const_pointer vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Pointer | ( | void | ) | const [inline] |
Returns a const pointer to the first element of the container. Addition to the STL requirements.
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 177 of file vctDynamicNArrayBase.h.
| reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::at | ( | size_type | metaIndex | ) | throw (std::out_of_range) [inline] |
Access an element by index (non const). Compare with std::vector::at(). This method can be a handy substitute for the overloaded operator () when operator overloading is unavailable or inconvenient.
Definition at line 187 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::operator()().
| const_reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::at | ( | size_type | metaIndex | ) | const throw (std::out_of_range) [inline] |
Access an element by index (const). Compare with std::matrix::at(). This method can be a handy substitute for the overloaded operator [] when operator overloading is unavailable or inconvenient.
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 196 of file vctDynamicNArrayBase.h.
| reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::at | ( | const nsize_type & | coordinates | ) | throw (std::out_of_range) [inline] |
Access an element by index. Compare with std::vector::at(). This method can be a handy substitute for the overloaded operator () when operator overloading is unavailable or inconvenient.
Definition at line 207 of file vctDynamicNArrayBase.h.
| const_reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::at | ( | const nsize_type & | coordinates | ) | const throw (std::out_of_range) [inline] |
Access an element by indices (const). Compare with std::vector::at(). This method can be a handy substitute for the overloaded operator () when operator overloading is unavailable or inconvenient.
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 215 of file vctDynamicNArrayBase.h.
| reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator() | ( | const nsize_type & | coordinates | ) | throw (std::out_of_range) [inline] |
Overloaded operator () for simplified (non const) element access with bounds checking
Definition at line 223 of file vctDynamicNArrayBase.h.
| const_reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator() | ( | const nsize_type & | coordinates | ) | const throw (std::out_of_range) [inline] |
documented in base class
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 230 of file vctDynamicNArrayBase.h.
| reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Element | ( | const nsize_type & | coordinates | ) | [inline] |
Access an element by indices (non const). This method allows to access an element without any bounds checking. It doesn't create any temporary references as a nArray[][]...[] would do.
Definition at line 242 of file vctDynamicNArrayBase.h.
| const_reference vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Element | ( | const nsize_type & | coordinates | ) | const [inline] |
Access an element by indices (const). This method allows to access an element without any bounds checking. It doesn't create any temporary references as nArray[][]...[] would do.
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 248 of file vctDynamicNArrayBase.h.
| SubarrayRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Subarray | ( | const nsize_type & | startPosition, | |
| const nsize_type & | lengths | |||
| ) | [inline] |
Create a non-const reference to a subarray of this nArray.
| startPosition | vector of indices of the element position where the reference will start | |
| lengths | the number of elements to reference in each dimension |
Definition at line 260 of file vctDynamicNArrayBase.h.
| ConstSubarrayRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Subarray | ( | const nsize_type & | startPosition, | |
| const nsize_type & | lengths | |||
| ) | const [inline] |
documented in base class
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 270 of file vctDynamicNArrayBase.h.
| PermutationRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Permutation | ( | const ndimension_type & | dimensions | ) | [inline] |
Create a non-const reference to this nArray with the strides permuted.
| dimensions | a sequence of dimension numbers representing the permuted order of strides |
Definition at line 283 of file vctDynamicNArrayBase.h.
| ConstPermutationRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Permutation | ( | const ndimension_type & | dimensions | ) | const [inline] |
documented in base class
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 292 of file vctDynamicNArrayBase.h.
| SliceRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Slice | ( | dimension_type | dimension, | |
| size_type | index | |||
| ) | throw (std::runtime_error, std::out_of_range) [inline] |
Create a non-const reference to a slice of dimension n-1, where n is the dimension of this nArray.
| dimension | the dimension number of the direction by which to reduce | |
| slice | the index number in the dimension specified by which to set the reference |
Definition at line 306 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::operator[]().
| ConstSliceRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Slice | ( | dimension_type | dimension, | |
| size_type | index | |||
| ) | const throw (std::runtime_error, std::out_of_range) [inline] |
documented in base class
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 314 of file vctDynamicNArrayBase.h.
| SliceRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator[] | ( | size_type | index | ) | [inline] |
Reference an (n-1)-dimension slice of this nArray by index (non-const).
Definition at line 325 of file vctDynamicNArrayBase.h.
| ConstSliceRefType vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator[] | ( | size_type | index | ) | const [inline] |
documented in base class
Reimplemented from vctDynamicConstNArrayBase< _nArrayOwnerType, _elementType, _dimension >.
Definition at line 332 of file vctDynamicNArrayBase.h.
| value_type vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::SetAll | ( | const value_type | value | ) | [inline] |
Assign the given value to all the elements.
| value | the value used to set all the elements of the nArray |
Definition at line 342 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::Zeros().
| bool vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Zeros | ( | void | ) | [inline] |
Assign zero to all elements. This methods assumes that the element type has a zero and this zero value can be set using memset(0). If the nArray is not compact this method will use SetAll(0) and memset otherwise. This provides a slightly more efficent way to set all elements to zero.
Definition at line 359 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Assign | ( | const value_type * | elements | ) | [inline] |
Assign to this nArray values from a C array given as a pointer to value_type. The purpose of this method is to simplify the syntax by not necessitating the creation of an explicit nArray for the given array. However, we only provide this method for an array of value_type. For arrays of other types an nArray still needs to be declared.
| elements | a pointer to a C array of elements to be assigned to this nArray |
Definition at line 431 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ForceAssign | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, __elementType, DIMENSION > & | other | ) | [inline] |
Forced assignment operation between arrays of different types. This method will use SetSize on the destination array (this nArray) to make sure the assignment will work. It is important to note that if the sizes don't match, memory for this array will be re-allocated. If the program has previously created some references (as in vctDynamic{Const}NArrayRef) on this array, they will become invalid.
If the destination array 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.
| other | The array to be copied. |
Definition at line 482 of file vctDynamicNArrayBase.h.
| bool vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::FastCopyOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | source, | |
| bool | performSafetyChecks = true | |||
| ) | throw (std::runtime_error) [inline] |
Fast copy. This method uses memcpy whenever it is possible to perform a fast copy from another array to this array.
std::runtime_error). See cmnThrow for details.
false. If both narrays are compact and have the same strides, a memcpy is performed and the method returns true.
performSafetyChecks to false. This should be used only when the programmer knows for sure that the source and destination are compatible (sizes, strides and compactness).
The basic and safe use of this method for an array would be:
if (!destination.FastCopyOf(source)) {
destination.Assign(source);
}
If the method is to be called many times (in a loop for example), it is recommended to check that the source and destination are compatible once and then use the option to turn off the different safety checks for each FastCopyOf.
bool canUseFastCopy = destination.FastCopyPossible(source); vct::index_type index; for (index = 0; index < 1000; index++) { DoSomethingUseful(source); if (canUseFastCopy) { destination.FastCopyOf(source, false); // Do not check again } else { destination.Assign(source); } }
| source | NArray used to set the content of this array. | |
| performSafetyChecks | Flag set to false to avoid safety checks, use with extreme caution. |
Definition at line 548 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::Assign().
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::SumOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType1, value_type, DIMENSION > & | nArray1, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType2, value_type, DIMENSION > & | nArray2 | |||
| ) | [inline] |
Binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| nArray1 | The first operand of the binary operation | |
| nArray2 | The second operand of the binary operation |
Definition at line 574 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::DifferenceOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType1, value_type, DIMENSION > & | nArray1, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType2, value_type, DIMENSION > & | nArray2 | |||
| ) | [inline] |
Binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| nArray1 | The first operand of the binary operation | |
| nArray2 | The second operand of the binary operation |
Definition at line 585 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseProductOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType1, value_type, DIMENSION > & | nArray1, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType2, value_type, DIMENSION > & | nArray2 | |||
| ) | [inline] |
Binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| nArray1 | The first operand of the binary operation | |
| nArray2 | The second operand of the binary operation |
Definition at line 596 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseRatioOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType1, value_type, DIMENSION > & | nArray1, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType2, value_type, DIMENSION > & | nArray2 | |||
| ) | [inline] |
Binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| nArray1 | The first operand of the binary operation | |
| nArray2 | The second operand of the binary operation |
Definition at line 607 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseMinOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType1, value_type, DIMENSION > & | nArray1, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType2, value_type, DIMENSION > & | nArray2 | |||
| ) | [inline] |
Binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| nArray1 | The first operand of the binary operation | |
| nArray2 | The second operand of the binary operation |
Definition at line 618 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseMaxOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType1, value_type, DIMENSION > & | nArray1, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType2, value_type, DIMENSION > & | nArray2 | |||
| ) | [inline] |
Binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ElementwiseProductOf), a division (ElementwiseRatioOf), a minimum (ElementwiseMinOf) or a maximum (ElementwiseMaxOf).
| nArray1 | The first operand of the binary operation | |
| nArray2 | The second operand of the binary operation |
Definition at line 629 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Add | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 658 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::operator+=().
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Subtract | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 668 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::operator-=().
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseMultiply | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 678 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseDivide | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 688 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseMin | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 698 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ElementwiseMax | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 708 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator+= | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 718 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator-= | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Store back binary elementwise operations between two nArrays. For each element of the nArrays, performs
where
is either an addition (Add), a subtraction (Subtraction), a multiplication (ElementwiseMultiply) a division (ElementwiseDivide), a minimization (ElementwiseMin) or a maximisation (ElementwiseMax).
| otherNArray | The second operand of the binary operation (this[i] is the first operand) |
Definition at line 725 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::SumOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| nArray | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 748 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::DifferenceOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| nArray | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 759 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ProductOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| nArray | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 770 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::RatioOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray, | |
| const value_type | scalar | |||
| ) | [inline] |
Binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| nArray | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 781 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ClippedAboveOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray, | |
| const value_type | lowerBound | |||
| ) | [inline] |
Binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| nArray | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 792 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ClippedBelowOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray, | |
| const value_type | upperBound | |||
| ) | [inline] |
Binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| nArray | The first operand of the binary operation. | |
| scalar | The second operand of the binary operation. |
Definition at line 803 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::SumOf | ( | const value_type | scalar, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray | |||
| ) | [inline] |
Binary elementwise operations between a scalar and an nArray. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| nArray | The second operand of the binary operation. |
Definition at line 831 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::DifferenceOf | ( | const value_type | scalar, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray | |||
| ) | [inline] |
Binary elementwise operations between a scalar and an nArray. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| nArray | The second operand of the binary operation. |
Definition at line 842 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ProductOf | ( | const value_type | scalar, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray | |||
| ) | [inline] |
Binary elementwise operations between a scalar and an nArray. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| nArray | The second operand of the binary operation. |
Definition at line 853 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::RatioOf | ( | const value_type | scalar, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray | |||
| ) | [inline] |
Binary elementwise operations between a scalar and an nArray. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| nArray | The second operand of the binary operation. |
Definition at line 864 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ClippedAboveOf | ( | const value_type | upperBound, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray | |||
| ) | [inline] |
Binary elementwise operations between a scalar and an nArray. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| nArray | The second operand of the binary operation. |
Definition at line 875 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ClippedBelowOf | ( | const value_type | lowerBound, | |
| const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | nArray | |||
| ) | [inline] |
Binary elementwise operations between a scalar and an nArray. For each element of the nArray "this", performs
where
is either an addition (SumOf), a subtraction (DifferenceOf), a multiplication (ProductOf), a division (RatioOf), a minimum (ClippedAboveOf) or a maximum (ClippedBelowOf).
| scalar | The first operand of the binary operation. | |
| nArray | The second operand of the binary operation. |
Definition at line 886 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Add | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 912 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Subtract | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 921 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Multiply | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 930 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::operator *=().
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::Divide | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 939 of file vctDynamicNArrayBase.h.
Referenced by vctDynamicNArrayBase< vctDynamicNArrayRefOwner< _elementType, _dimension >, _elementType, _dimension >::operator/=().
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ClipAbove | ( | const value_type | upperBound | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 948 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::ClipBelow | ( | const value_type | lowerBound | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 957 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator+= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 966 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator-= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 972 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator *= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 978 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::operator/= | ( | const value_type | scalar | ) | [inline] |
Store back binary elementwise operations between an nArray and a scalar. For each element of the nArray "this", performs
where
is either an addition (Add), a subtraction (Subtract), a multiplication (Multiply), a division (Divide), a minimum (ClipAbove) or a maximum (ClipBelow).
| scalar | The second operand of the binary operation (this[i] is the first operand). |
Definition at line 984 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::AbsOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsOf) or the opposite (NegationOf).
| otherNArray | The operand of the unary operation. |
Definition at line 1017 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::NegationOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsOf) or the opposite (NegationOf).
| otherNArray | The operand of the unary operation. |
Definition at line 1027 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::FloorOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsOf) or the opposite (NegationOf).
| otherNArray | The operand of the unary operation. |
Definition at line 1037 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::CeilOf | ( | const vctDynamicConstNArrayBase< __nArrayOwnerType, value_type, DIMENSION > & | otherNArray | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsOf) or the opposite (NegationOf).
| otherNArray | The operand of the unary operation. |
Definition at line 1047 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::AbsSelf | ( | void | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsSelf) or the opposite (NegationSelf).
Definition at line 1067 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::NegationSelf | ( | void | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsSelf) or the opposite (NegationSelf).
Definition at line 1076 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::FloorSelf | ( | void | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsSelf) or the opposite (NegationSelf).
Definition at line 1085 of file vctDynamicNArrayBase.h.
| ThisType& vctDynamicNArrayBase< _nArrayOwnerType, _elementType, _dimension >::CeilSelf | ( | void | ) | [inline] |
Unary elementwise operations on an nArray. For each element of the nArray "this", performs
where
can calculate the absolute value (AbsSelf) or the opposite (NegationSelf).
Definition at line 1094 of file vctDynamicNArrayBase.h.