clVector::CartToPolar Method

Overload List

#SignatureDescription
1void CartToPolar(TOpenCLMtxVec *AmpltVec, TOpenCLMtxVec *PhaseVec) const;Converts elements from cartesian to polar coordinate form.
2void CartToPolar(TOpenCLMtxVec *AmpltVec, TOpenCLMtxVec *PhaseVec, int AmpltIndex, int PhaseIndex, int Index, int Len) const;Convert calling object elements [Index] to [Index+Len-1] from cartesian to polar form.

Overload 1: void CartToPolar(TOpenCLMtxVec *AmpltVec, TOpenCLMtxVec *PhaseVec) const;

Converts elements from cartesian to polar coordinate form.

#NameTypeDescription
1AmpltVecTOpenCLMtxVec *
2PhaseVecTOpenCLMtxVec *
Remarks:

Converts all calling object elements from cartesian to polar coordinate form, storing the magnitude (radius) component of corresponding elements in the AmpltVec and the phase (angle) component of corresponding elements in the PhaseVec. If you want to use this method then the calling matrix clVector::Complex property must be true. If this is not the case, an exception is raised. Size and clVector::Complex properties of AmpltVec and PhaseVec are set automatically.

See Also: clVector::PolarToCart
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: void CartToPolar(TOpenCLMtxVec *AmpltVec, TOpenCLMtxVec *PhaseVec, int AmpltIndex, int PhaseIndex, int Index, int Len) const;

Convert calling object elements [Index] to [Index+Len-1] from cartesian to polar form.

#NameTypeDescription
1AmpltVecTOpenCLMtxVec *
2PhaseVecTOpenCLMtxVec *
3AmpltIndexint
4PhaseIndexint
5Indexint
6Lenint
Remarks:

Store the results in AmpltVec (radius values) and PhaseVec(phase values). Size and clVector::Complex properties of the calling vector must be set explicitly. An exception is raised if array borders are overrun or underrun.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler