TOpenCLValue Rem(TOpenCLValue X, TOpenCLValue Y)
The Reminder after division X/Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
| 2 | Y | TOpenCLValue | source TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Calculates reminder after division according to formula:
x[i]-y[i]*Trunc(x[i]/y[i]).
The results will be saved to the calling object.
Examples
clValue a;
clValue b;
clValue c;
a.Copy(4);
b.Copy(3);
c.Rem(a,b); // c = Rem(4,3)