FunctionFinds 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/Delphiuses 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/Delphiuses 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;
DescriptionThe 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.
Error handlingnone
Return valueMinimum positive value encountered.
See alsoVF_min,   VF_absmin,   VF_minmax,   VF_minexp,   VF_runmin,   VF_minind,   VF_min_max_mean_stddev

VectorLib Table of Contents  OptiVec home