VF_CtoArg | VD_CtoArg | VE_CtoArg |
|
Function | Argument (angle) of cartesian-complex numbers |
|
Syntax C/C++ | #include <VCFstd.h>
void VF_CtoArg( fVector Arg, cfVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::CtoArg( const vector<complex<T>>& X ); |
Pascal/Delphi | uses VCFstd;
procedure VF_CtoArg( Arg:fVector; X:cfVector; size:UIntSize ); |
|
CUDA function C/C++ | #include <cudaVCFstd.h>
int cudaVF_CtoArg( fVector d_Arg, cfVector d_X, ui size );
void VFcu_CtoArg( fVector h_Arg, cfVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VCFstd;
function cudaVF_CtoArg( d_Arg:fVector; d_X:cfVector; size:UIntSize ): IntBool;
procedure VFcu_CtoArg( h_Arg:fVector; h_X:cfVector; size:UIntSize );
|
|
Description | Argi = arctan( Im(Xi) / Re(Xi) )
The argument, i.e. the angle of each element of the complex vector X is calculated. For Cartesian coordinates {0, 0}, the angle is arbitrary and is set to zero.
When necessary, depending on the signs of Re(Xi) and Im(Xi), p is added or subtracted from the arctan to obtain the correct quadrant. |
|
|
|
|