FunctionFind the largest element of a vector and its index.
Syntax C/C++#include <VFstd.h>
float VF_maxind( ui *Ind, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::maxind( ui *Ind );
Pascal/Delphiuses VFstd;
function VF_maxind( var Ind:UIntSize; X:fVector; size:UIntSize ): Single;
DescriptionThe vector X is searched for its largest element; its value is returned. At the address passed as Ind, the index of this element is stored.In the case of several maxima of equal height, the first one is chosen (i.e., the smallest index is stored in Ind).
Error handlingnone
Return valuemaximum value encountered.
See alsoVF_max,   VF_minind,   VF_absmax,   VF_runmax

VectorLib Table of Contents  OptiVec home