Prototypes | Header File(s) | |
template <class T> | ||
int |
maxIndex(const RWMathVec<T>&) |
<rw/math/mathvec.h> |
int |
minIndex(const RWMathVec<T>&) |
<rw/math/mathvec.h> |
void |
maxIndex(const RWGenMat<T>&, int* maxi, int* maxj) |
<rw/math/genmat.h> |
void |
minIndex(const RWGenMat<T>&, int* maxi, int* maxj) |
<rw/math/genmat.h> |
RWIntVec |
maxIndex(const RWMathArray<T>&) |
<rw/math/mtharray.h> |
RWIntVec |
minIndex(const RWMathArray<T>&) |
<rw/math/mtharray.h> |
Take a vector or array as an argument and return the index of the maximum or minimum element of the vector, respectively. If instead you want the maximum or minimum value of the vector, use function maxValue() or minValue().