VCF_cabsmax | VCD_cabsmax | VCE_cabsmax |
|
Function | Element 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | The 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. |
|
|
Return value | largest element in terms of absolute value |
|
|