ClMtxExpr.InvSqrt Method

Overload List

#SignatureDescription
1function InvSqrt(X: TOpenCLMatrix): clMatrix;Result = (1/X)^2
2function InvSqrt(X: TOpenCLValue): clValue;Result = (1/X)^2
3function InvSqrt(X: TOpenCLVector): clVector;Result = (1/X)^2

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

Compute (1/X)^2.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls clMatrix.InvSqrt

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

Compute (1/X)^2.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls clValue.InvSqrt

Examples
var a,b: clValue;
begin
    b.Copy(2.3);
    a.InvCbrt(b);  // a = 2.3^(1/3)
end;

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

Compute (1/X)^2.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls clVector.InvSqrt