ClMtxExpr.RealPart Method

Overload List

#SignatureDescription
1clMatrix RealPart(TOpenCLMatrix X)Returns the real part of the complex number.
2clValue RealPart(TOpenCLValue X)Returns the real part of the complex number.
3clVector RealPart(TOpenCLVector X)Returns the real part of the complex number.

Overload 1: clMatrix RealPart(TOpenCLMatrix X)

Returns the real part of the complex number.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls Dew.Math.clMatrix.RealPart

Overload 2: clValue RealPart(TOpenCLValue X)

Returns the real part of the complex number.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls Dew.Math.clValue.RealPart

Examples
TOpenCLValue a;
TOpenCLValue b;
MtxVec.CreateIt(out a, out b);
try
    {
        a.Copy(Cplx(2,3)); // = [2+3i]
        b.RealPart(a); // b = new double[] {2}
    }
finally
    {
        MtxVec.FreeIt(ref a, ref b);
    }

Overload 3: clVector RealPart(TOpenCLVector X)

Returns the real part of the complex number.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls Dew.Math.clVector.RealPart