FunctionSmallest absolute value within one vector
Syntax C/C++#include <VFstd.h>
float VF_absmin( fVector X, ui size );

    (similarly VD_,   VE_)
float VCF_absmin( cfVector X, ui size );
    (similarly VCD_,   VCE_,   VPF_,   VPD_,   VPE_)
C++ VecObj#include <OptiVec.h>
T vector<T>::absmin();
T vector<complex<T>>::absmin();
Pascal/Delphiuses VFstd;
function VF_absmin( X:fVector; size:UIntSize ): Single;

    (similarly VD_,   VE_)
function VCF_absmin( X:cfVector; size:UIntSize ): Single;
    (similarly VCD_,   VCE_,   VPF_,   VPD_,   VPE_)
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_absmin( float *h_RetVal, fVector d_X, ui size );
int cusdVF_absmin( float *d_RetVal, fVector d_X, ui size );
float VFcu_absmin( fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_absmin( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_absmin( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_absmin( X:fVector; size:UIntSize ): Single;
DescriptionThe absolute values of all elements of a vector are compared and the smallest returned.
For complex numbers, the magnitudes of the elements are compared and the smallest magnitude is returned. If you need the complex number itself rather than only its magnitude, call VCF_cabsmin. In order to find the smallest real and imaginary parts of cartesian complex vectors separately, please use VCF_absminReIm.
Error handlingnone
Return valueminimum absolute value encountered.
See alsoVF_min,   VF_absmax,   VF_absminmax,   VF_minexp,   VF_runmin,   VF_minind,   VCF_absminReIm,   VCF_cabsmin,   VCF_sabsmin

VectorLib Table of Contents  OptiVec home