VF_CtoPolar | VD_CtoPolar | VE_CtoPolar |
|
Function | Transformation of complex numbers from Cartesian into polar coordinates, stored in separate vectors Mag and Arg. |
|
Syntax C/C++ | #include <VCFstd.h>
void VF_CtoPolar( fVector Mag, fVector Arg, cfVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::CtoPolar( vector<T> Arg, const vector<complex<T>>& X ); |
Pascal/Delphi | uses VCFstd;
procedure VF_CtoPolar( Mag, Arg:fVector; X:cfVector; size:UIntSize ); |
|
CUDA function C/C++ | #include <cudaVCFstd.h>
int cudaVF_CtoPolar( fVector d_Mag, fVector d_Arg, cfVector d_X, ui size );
void VFcu_CtoPolar( fVector h_Mag, fVector h_Arg, cfVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VCFstd;
function cudaVF_CtoPolar( d_Mag, d_Arg:fVector; d_X:cfVector; size:UIntSize ): IntBool;
procedure VFcu_CtoPolar( h_Mag, h_Arg:fVector; h_X:cfVector; size:UIntSize );
|
|
Description | The polar coordinates Mag (magnitude, absolute value) and Arg (argument, angle) of each element of the Cartesian complex vector X are calculated. For the Cartesian coordinates {0, 0}, the polar coordinates are also set to {0 @ 0}.
This function is similar to VF_CtoP, with the exception that Mag and Arg are stored in separate vectors instead of one polar complex vector, as in VF_CtoP. |
|
|
|
|