VF_minmax | VD_minmax | VE_minmax |
VI_minmax | VBI_minmax | VSI_minmax | VLI_minmax | VQI_minmax | |
VU_minmax | VUB_minmax | VUS_minmax | VUL_minmax | VUQ_minmax | VUI_minmax |
|
Function | Finds both the smallest and the largest element of a vector. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_minmax( float *xmax, fVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::minmax(T *xmax); |
Pascal/Delphi | uses VFstd;
function VF_minmax( var xmax:Single; X:fVector; size:UIntSize ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_minmax( float *h_xmin, float *h_xmax, fVector d_X, ui size );
int cusdVF_minmax( float *d_xmin, float *d_xmax, fVector d_X, ui size );
float VFcu_minmax( float *xmax, fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_minmax( var h_xmin, h_xmax:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_minmax( d_xmin, d_xmax:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_minmax( var h_xmax:Single; h_X:fVector; size:UIntSize ): Single;
|
|
Description | The vector X is searched for its smallest (or most negative) and its largest element. The latter is stored as xmax, the smallest element is returned. |
|
|
Return value | Minimum value encountered. |
|
|