FunctionLargest complex vector element in terms of the sum |Re| + |Im|
Syntax C/C++#include <VCFstd.h>
fComplex VCF_sabsmax( cfVector X, ui size);
C++ VecObj#include <OptiVec.h>
T vector<complex<T>>::sabsmax();
Pascal/Delphiuses VCFstd;
function VCF_sabsmax( X:cfVector; size:UIntSize ):fComplex;

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

    (similarly VCD_,   VCE_)
CUDA function C/C++#include <cudaVCFstd.h>
int cudaVCF_sabsmax( fComplex *h_RetVal, cfVector d_X, ui size );
int cusdVCF_sabsmax( fComplex *d_RetVal, cfVector d_X, ui size );
fComplex VCFcu_sabsmax( cfVector h_X, ui size );
CUDA function Pascal/Delphiuses VCFstd;
function cudaVCF_sabsmax( var h_RetVal:fComplex; d_X:cfVector; size:UIntSize ): IntBool;
function cusdVCF_sabsmax( d_RetVal:PfComplex; d_X:cfVector; size:UIntSize ): IntBool;
function VCFcu_sabsmax( h_X:cfVector; size:UIntSize ):fComplex;
DescriptionBy the criterion of the sum |Re| + |Im|, the largest element of a cartesian complex vector is found and returned. In many applications, this function may serve as a much faster replacement for VCF_cabsmax. The latter function uses the absolute value, sqrt(Re2 + Im2), as its criterion.
Error handlingnone
Return valuelargest element
See alsoVCF_absmax,   VCF_absmaxReIm,   VCF_cabsmax

VectorLib Table of Contents  OptiVec home