ClMtxExpr.ImagPart Method

Overload List

#SignatureDescription
1clMatrix ImagPart(TOpenCLMatrix X)Returns the imaginary part of the source.
2clValue ImagPart(TOpenCLValue X)Returns the imaginary part of the source.
3clVector ImagPart(TOpenCLVector X)Returns the imaginary part of the source.

Overload 1: clMatrix ImagPart(TOpenCLMatrix X)

Returns the imaginary part of the source.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls Dew.Math.clMatrix.ImagPart

Overload 2: clValue ImagPart(TOpenCLValue X)

Returns the imaginary part of the source.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls Dew.Math.clValue.ImagPart

Examples
using Dew.Math;
using Dew.Math.Units;

namespace Dew.Examples
{
    void Example()
    {
        TOpenCLValue a,b;
        clMtxVec.CreateIt(out a, out b);
        try
        {
            b.Copy(Cplx(8));
            a.ImagPart(b);  // a = 0
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}

Overload 3: clVector ImagPart(TOpenCLVector X)

Returns the imaginary part of the source.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls Dew.Math.clVector.ImagPart