VF_minpos | VD_minpos | VE_minpos |
VI_minpos | VBI_minpos | VSI_minpos | VLI_minpos | VQI_minpos | |
VU_minpos | VUB_minpos | VUS_minpos | VUL_minpos | VUQ_minpos | VUI_minpos |
|
Function | Finds the smallest positive and non-zero element of a vector. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_minpos( fVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::minpos(); |
Pascal/Delphi | uses VFstd;
function VF_minpos( X:fVector; size:UIntSize ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_minpos( float *h_RetVal, fVector d_X, ui size );
int cusdVF_minpos( float *d_RetVal, fVector d_X, ui size );
float VFcu_minpos( fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_minpos( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_minpos( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_minpos( h_X:fVector; size:UIntSize ): Single;
|
|
Description | The vector X is searched for its smallest positive and non-zero element. In case there are no positive elements at all, this function returns 0. |
|
|
Return value | Minimum positive value encountered. |
|
|