VF_maxind | VD_maxind | VE_maxind |
VI_maxind | VBI_maxind | VSI_maxind | VLI_maxind | VQI_maxind | |
VU_maxind | VUB_maxind | VUS_maxind | VUL_maxind | VUQ_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; |
|
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/Delphi | uses 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;
|
|
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. |
|
|