Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.37 maxIndex() and minIndex()

PrototypesHeader 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>

10.37.1 Description

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().


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.