VF_minindVD_minindVE_minind
VI_minindVBI_minindVSI_minindVLI_minindVQI_minind 
VU_minindVUB_minindVUS_minindVUL_minindVUQ_minindVUI_minind
FunctionFind the smallest (or the most negative) element of a vector and its index.
Syntax C/C++#include <VFstd.h>
float VF_minind( ui *Ind, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::minind( ui *Ind );
Pascal/Delphiuses VFstd;
function VF_minind( var Ind:UIntSize; X:fVector; size:UIntSize ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_minind( float *h_RetVal, ui *h_Ind, fVector d_X, ui size );
int cusdVF_minind( float *d_RetVal, ui *h_Ind, fVector d_X, ui size );
float VFcu_minind( ui *h_Ind, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_minind( var h_RetVal:Single; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_minind( d_RetVal:PSingle; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_minind( var h_Ind:UIntSize; h_X:fVector; size:UIntSize ): Single;
DescriptionThe vector X is searched for its smallest (or most negative) element; its value is returned. At the address passed as Ind, the index of this element is stored. In the case of several mimima of equal depth, the first one is chosen (i.e., the smallest of their indices is stored in Ind).
Error handlingnone
Return valueminimum value encountered.
See alsoVF_min,   VF_maxind,   VF_absmin,   VF_runmin

VectorLib Table of Contents  OptiVec home