VCF_cabsminVCD_cabsminVCE_cabsmin
FunctionElement of smallest absolute value within one vector
Syntax C/C++#include <VCFstd.h>
fComplex VCF_cabsmin( cfVector X, ui size);
C++ VecObj#include <OptiVec.h>
T vector<complex<T>>::cabsmin();
Pascal/Delphiuses VCFstd;
function VCF_cabsmin( X:cfVector; size:UIntSize ):fComplex;

Alternative syntax (obsolete, but still supported):
procedure VCF_cabsmin( var RetVal:fComplex; X:cfVector; size:UIntSize );

    (similarly VCD_,   VCE_)
CUDA function C/C++#include <cudaVCFstd.h>
int cudaVCF_cabsmin( fComplex *h_RetVal, cfVector d_X, ui size );
int cusdVCF_cabsmin( fComplex *d_RetVal, cfVector d_X, ui size );
fComplex VCFcu_cabsmin( cfVector h_X, ui size );
CUDA function Pascal/Delphiuses VCFstd;
function cudaVCF_cabsmin( var h_RetVal:fComplex; d_X:cfVector; size:UIntSize ): IntBool;
function cusdVCF_cabsmin( d_RetVal:PfComplex; d_X:cfVector; size:UIntSize ): IntBool;
function VCFcu_cabsmin( h_X:cfVector; size:UIntSize ):fComplex;
DescriptionThe absolute values of all elements of a cartesian-complex vector are compared and the element with the smallest absolute value is returned. A variant of this function, finding the smallest element in terms of the sum |Re| + |Im|, is offered by VCF_sabsmin. The latter function is much faster than VCF_cabsmin.
Error handlingnone
Return valuesmallest element in terms of absolute value
See alsoVCF_absmin,   VCF_absminReIm,   VCF_sabsmin

VectorLib Table of Contents  OptiVec home