ClMtxExpr.Sqr Method

Overload List

#SignatureDescription
1function Sqr(X: TOpenCLMatrix): clMatrix;Result = X^2 from the source
2function Sqr(X: TOpenCLValue): clValue;Result = X^2 from the source
3function Sqr(X: TOpenCLVector): clVector;Result = X^2 from the source

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

Compute X^2 from the source.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls clMatrix.Sqr

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

Compute X^2 from the source.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls clValue.Sqr

Examples
var a, b: clValue;
begin
    b.Copy(2);
    a.Sqr(b); // a=[4]
end;

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

Compute X^2 from the source.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls clVector.Sqr