Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Sqr(X: TOpenCLMatrix): clMatrix; | Result = X^2 from the source |
| 2 | function Sqr(X: TOpenCLValue): clValue; | Result = X^2 from the source |
| 3 | function Sqr(X: TOpenCLVector): clVector; | Result = X^2 from the source |
Overload 1: function Sqr(X: TOpenCLMatrix): clMatrix;
Compute X^2 from the source.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMatrix | source TOpenCLMatrix |
Returns: clMatrix
Remarks:
Internally calls clMatrix.Sqr
Overload 2: function Sqr(X: TOpenCLValue): clValue;
Compute X^2 from the source.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
Returns: clValue
Remarks:
Internally calls clValue.Sqr
Examples
var a, b: clValue;
begin
b.Copy(2);
a.Sqr(b); // a=[4]
end;
Overload 3: function Sqr(X: TOpenCLVector): clVector;
Compute X^2 from the source.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLVector | source TOpenCLVector |
Returns: clVector
Remarks:
Internally calls clVector.Sqr