VF_CtoAbs | VD_CtoAbs | VE_CtoAbs |
|
Function | Absolute 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/Delphi | uses 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/Delphi | uses VCFstd;
function cudaVF_CtoAbs( d_Abs:fVector; d_X:cfVector; size:UIntSize ): IntBool;
procedure VFcu_CtoAbs( h_Abs:fVector; h_X:cfVector; size:UIntSize );
|
|
Description | Absi = 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 ). |
|
|
|
|