TOpenCLValue::ImagPart Method

Overload List

#SignatureDescription
1TOpenCLBase *ImagPart(TOpenCLBase *Vec, int VecIndex, int Index, int Len);
2TOpenCLValue *ImagPart(TOpenCLValue *Vec);Gets the imaginary part of a complex value.

Overload 1: TOpenCLBase *ImagPart(TOpenCLBase *Vec, int VecIndex, int Index, int Len);

#NameTypeDescription
1VecTOpenCLBase *
2VecIndexint
3Indexint
4Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLValue *ImagPart(TOpenCLValue *Vec);

Gets the imaginary part of a complex value.

#NameTypeDescription
1VecTOpenCLValue *
Remarks:

Gets the imaginary part of a complex value Vec and stores the real result in the calling object. FloatPrecision and TOpenCLBase::Complex properties of the calling object are set implicitly to match Vec object. Vec TOpenCLBase::Complex must be true otherwise the exception will be raised.

Examples
#include "Math387.h"
#include "Units.Math387.h"
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::Math387;

void Example()
{
    clValue a, b;

    b.Copy(Cplx(8));
    a.ImagPart(b);  // a = 0
}
See Also: TOpenCLValue::RealPart, TOpenCLValue::RealToCplx
Declared in Dew::Math::TOpenCLValue · Dew.Math/clMtxVec.h · Cross-compiler