VI_max | VBI_max | VSI_max | VLI_max | VQI_max | |
VU_max | VUB_max | VUS_max | VUL_max | VUQ_max | VUI_max |
|
Function | Find the largest element of a vector. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_max( fVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::_max(); |
Pascal/Delphi | uses VFstd;
function VF_max( X:fVector; size:UIntSize ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_max( float *h_RetVal, fVector d_X, ui size );
int cusdVF_max( float *d_RetVal, fVector d_X, ui size );
float VFcu_max( fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_max( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_max( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_max( h_X:fVector; size:UIntSize ): Single;
|
|
Description | The vector X is searched for its largest element, whose value is returned. In order to avoid confusion with the macro "max" in C/C++, the VecObj version of this function is written with a leading underbar as "_max". |
|
|
Return value | maximum value encountered. |
|
|