TOpenCLValue.Sqr Method

function Sqr(const X: TOpenCLValue): TOpenCLValue;

Square.

#NameTypeDescription
1XTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the square of X.

Examples
var a,b: TOpenCLValue;
begin
    CreateIt(a,b);
    try
        b.Copy(2);
        a.Sqr(b); // a=[4]
    finally
        FreeIt(a,b);
    end;
end;
See Also: TOpenCLValue.Sqrt, TOpenCLValue.Power