TOpenCLValue.Rem Method

function Rem(const X: TOpenCLValue; const Y: TOpenCLValue): TOpenCLValue;

The Reminder after division X/Y.

#NameTypeDescription
1XTOpenCLValue
2YTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculates reminder after division according to formula:

x[i]-y[i]*Trunc(const X[i]/y[i]).

The result will be saved to the calling vector. X and Y must be a real and have the same length. FloatPrecision and TOpenCLBase.Complex properties of the calling vector are set implicitly to match the X object.

Examples
var a,b,c: TOpenCLValue;
begin
    CreateIt(a,b,c);
    try
        a.Copy(4);
        b.Copy(3);
        c.Rem(a,b); // c = Rem(4,3)
    finally
        FreeIt(a,b,c);
    end;
end;