Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Sub(const Src: TOpenCLValue; Value: TCplx): TOpenCLValue; | Subtract complex Value from Src. |
| 2 | function Sub(Vec1: TOpenCLValue; Vec2: TOpenCLValue): TOpenCLValue; | Subtract Vec2 elements from Vec1 elements. |
| 3 | function Sub(const Src: TOpenCLValue; Value: Double): TOpenCLValue; | Subtract real Value from Src. |
Overload 1: function Sub(const Src: TOpenCLValue; Value: TCplx): TOpenCLValue;
Subtract complex Value from Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue | |
| 2 | Value | TCplx | scalar |
Returns: TOpenCLValue
Remarks:
Stores the result in the calling object. FloatPrecision and TOpenCLBase.Complex property of calling object are adjusted automatically.
Overload 2: function Sub(Vec1: TOpenCLValue; Vec2: TOpenCLValue): TOpenCLValue;
Subtract Vec2 elements from Vec1 elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec1 | TOpenCLValue | source TOpenCLValue |
| 2 | Vec2 | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Stores the result in the calling object. FloatPrecision and TOpenCLBase.Complex property of calling object are adjusted automatically. An exception is raised, if Vec1 and Vec2 FloatPrecision and TOpenCLBase.Complex property do not match.
Overload 3: function Sub(const Src: TOpenCLValue; Value: Double): TOpenCLValue;
Subtract real Value from Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue | |
| 2 | Value | Double | scalar |
Returns: TOpenCLValue
Remarks:
Stores the result in the calling object. FloatPrecision and TOpenCLBase.Complex property of calling object are adjusted automatically.