VF_absminindVD_absminindVE_absminind
VCF_absminindVCD_absminindVCE_absminind
VPF_absminindVPD_absminindVPE_absminind
FunctionSmallest absolute value and the index of its first occurrence.
Syntax C/C++#include <VFstd.h>
float VF_absminind( ui *Ind, fVector X, ui size );

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

    (similarly VD_,   VE_)
function VCF_absminind( var Ind:UIntSize; X:cfVector; size:UIntSize ): Single;
    (similarly VCD_,   VCE_,   VPF_,   VPD_,   VPE_)
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_absminind( float *h_RetVal, ui *h_Ind, fVector d_X, ui size );
int cusdVF_absminind( float *d_RetVal, ui *h_Ind, fVector d_X, ui size );
float VFcu_absminind( ui *h_Ind, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_absminind( var h_RetVal:Single; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_absminind( d_RetVal:PSingle; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_absminind( var h_Ind:UIntSize; h_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 returned. The index of this minimum is stored at the address given by Ind. In case of more than one element with the same minimum value, the lowest index is chosen.
Error handlingnone
Return valueminimum absolute value encountered.
See alsoVF_minind,   VF_absmin,   VF_runmin,   VF_maxind,   VCF_absminReIm

VectorLib Table of Contents  OptiVec home