VF_minmaxVD_minmaxVE_minmax
VI_minmaxVBI_minmaxVSI_minmaxVLI_minmaxVQI_minmax 
VU_minmaxVUB_minmaxVUS_minmaxVUL_minmaxVUQ_minmaxVUI_minmax
FunctionFinds 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/Delphiuses 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/Delphiuses 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;
DescriptionThe 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.
Error handlingnone
Return valueMinimum value encountered.
See alsoVF_absminmax,   VF_min,   VF_max,   VF_min_max_mean_stddev

VectorLib Table of Contents  OptiVec home