VF_maxindVD_maxindVE_maxind
VI_maxindVBI_maxindVSI_maxindVLI_maxindVQI_maxind 
VU_maxindVUB_maxindVUS_maxindVUL_maxindVUQ_maxindVUI_maxind
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;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_maxind( float *h_RetVal, ui *h_Ind, fVector d_X, ui size );
int cusdVF_maxind( float *d_RetVal, ui *h_Ind, fVector d_X, ui size );
float VFcu_maxind( ui *h_Ind, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_maxind( var h_RetVal:Single; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_maxind( d_RetVal:PSingle; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_maxind( var h_Ind:UIntSize; h_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