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: 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