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

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

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

VectorLib Table of Contents  OptiVec home