ClMtxExpr.RealPart Method

Overload List

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

Overload 1: function RealPart(X: TOpenCLMatrix): clMatrix;

Returns the real part of the complex number.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls clMatrix.RealPart

Overload 2: function RealPart(X: TOpenCLValue): clValue;

Returns the real part of the complex number.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls clValue.RealPart

Examples
var a,b: TOpenCLValue;
begin
    CreateIt(a,b);
    try
        a.Copy(Cplx(2,3)); // = [2+3i]
        b.RealPart(a); // b = [2]
    finally
        FreeIt(a,b);
    end;
end;

Overload 3: function RealPart(X: TOpenCLVector): clVector;

Returns the real part of the complex number.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls clVector.RealPart