function Mag(const X: TOpenCLValue): TOpenCLValue;
Magnitude.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Calculate the magnitude for X. This method has the same function as the clValue.Abs method.
Examples
var a,b: clValue;
begin
b.Copy(Cplx(2,3));
a.Mag(b);
end;
See Also: clValue.Abs