VF_PolartoCVD_PolartoCVE_PolartoC
FunctionConstruct Cartesian complex numbers from polar coordinates, entered as separate vectors for Mag and Arg.
Syntax C/C++#include <VCFstd.h>
void VF_PolartoC( cfVector X, fVector Mag, fVector Arg, ui size );
C++ VecObj#include <OptiVec.h>
void vector<complex<T>>::PolartoC( const vector<T>& Mag, const vector<T>& Arg );
Pascal/Delphiuses VCFstd;
procedure VF_PolartoC( X:cfVector; Mag, Arg:fVector; size:UIntSize );
CUDA function C/C++#include <cudaVCFstd.h>
int cudaVF_PolartoC( cfVector d_X, fVector d_Mag, fVector d_Arg, ui size );
void VFcu_PolartoC( cfVector h_X, fVector h_Mag, fVector h_Arg, ui size );
CUDA function Pascal/Delphiuses VCFstd;
function cudaVF_PolartoC( d_X:cfVector; d_Mag, d_Arg:fVector; size:UIntSize): IntBool;
procedure VFcu_PolartoC( h_X:cfVector; h_Mag, h_Arg:fVector; size:UIntSize);
DescriptionThe polar coordinates Mag (magnitude, absolute value) and Arg (argument, angle) of each element are used to construct the Cartesian complex vector X.
The difference between this function and VF_PtoC is that, in the latter, the input consists of one vector of type pfVector, rather than of two real-valued vectors for Mag and Arg.
Error handlingThe total loss of precision for very large values of Arg is treated tacitly (without an error message); if it occurs, the result is set to {Mag, 0}.
Return valuenone
See alsoVF_PtoC,   VF_CtoPolar,   VF_ReImtoC,   VF_CtoArg,   VF_CtoNorm

VectorLib Table of Contents  OptiVec home