TOpenCLValue::PolarToCart Method

Overload List

#SignatureDescription
1TOpenCLBase *PolarToCart(TOpenCLBase *AmpltVec, TOpenCLBase *PhaseVec, int aIndex, int PIndex, int Index, int Len);
2TOpenCLValue *PolarToCart(TOpenCLValue *AmpltVec, TOpenCLValue *PhaseVec);Converts the polar magnitude/phase pair to cartesian pair.

Overload 1: TOpenCLBase *PolarToCart(TOpenCLBase *AmpltVec, TOpenCLBase *PhaseVec, int aIndex, int PIndex, int Index, int Len);

#NameTypeDescription
1AmpltVecTOpenCLBase *
2PhaseVecTOpenCLBase *
3aIndexint
4PIndexint
5Indexint
6Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLValue *PolarToCart(TOpenCLValue *AmpltVec, TOpenCLValue *PhaseVec);

Converts the polar magnitude/phase pair to cartesian pair.

#NameTypeDescription
1AmpltVecTOpenCLValue *
2PhaseVecTOpenCLValue *
Remarks:

Converts AmpltVec and PhaseVec values (combined) from polar to cartesian form. The result is stored as a complex number (x=Re, y=Im) in to the calling object. FloatPrecision and TOpenCLBase::Complex properties of the calling object are set implicitly to match AmpltVec and PhaseVec objects.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b, c;

    a.Copy(2);  // a = [2] //magnitude
    b.Copy(3); // b = [3] /phase
    c.PolarToCart(a,b); // result stored in c = projections to Re and Im axis
}
See Also: TOpenCLValue::CartToPolar
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler