clValue.Sqr Method

function Sqr(const X: TOpenCLValue): TOpenCLValue;

Square.

#NameTypeDescription
1XTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculate the square of X.

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