| VF_maxind | VD_maxind | VE_maxind |
| VI_maxind | VBI_maxind | VSI_maxind | VLI_maxind | VQI_maxind |
| VU_maxind | VUB_maxind | VUS_maxind | VUL_maxind | VUI_maxind |
|
| Function | Find 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/Delphi | uses VFstd;
function VF_maxind( var Ind:UIntSize; X:fVector; size:UIntSize ): Single; |
|
| Description | The 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). |
|
|
| Return value | maximum value encountered. |
|
|