function Sqr(const X: TOpenCLValue): TOpenCLValue;
Square.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue |
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