FunctionAbsolute value (magnitude) of cartesian complex numbers
Syntax C/C++#include <VCFstd.h>
void VF_CtoAbs( fVector Abs, cfVector X, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::CtoAbs( const vector<complex<T>>& X );
Pascal/Delphiuses VCFstd;
procedure VF_CtoAbs( Abs:fVector; X:cfVector; size:UIntSize );
CUDA function C/C++#include <cudaVCFstd.h>
int cudaVF_CtoAbs( fVector d_Abs, cfVector d_X, ui size ); void VFcu_CtoAbs( fVector h_Abs, cfVector h_X, ui size );
CUDA function Pascal/Delphiuses VCFstd;
function cudaVF_CtoAbs( d_Abs:fVector; d_X:cfVector; size:UIntSize ): IntBool;
procedure VFcu_CtoAbs( h_Abs:fVector; h_X:cfVector; size:UIntSize );
DescriptionAbsi = sqrt( Re2(Xi) + Im2(Xi) )
The absolute value, i.e. the magnitude of each element of the complex vector X is calculated. This function is almost identical to VCF_abs, but does not perform any error handling and requires input values whose real and imaginary parts are both smaller than ±sqrt( HUGE ).
Error handlingnone
Return valuenone
See alsoVCF_abs,   VF_PolartoC,   VF_CtoReIm,   VF_CtoArg,   VF_CtoNorm

VectorLib Table of Contents  OptiVec home