FunctionTransformation 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/Delphiuses 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/Delphiuses 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 );
DescriptionThe 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.
Error handlingnone
Return valuenone
See alsoVF_CtoP,   VF_PolartoC,   VF_CtoReIm,   VF_CtoAbs,   VF_CtoArg

VectorLib Table of Contents  OptiVec home