clValue::Rem Method

TOpenCLValue *Rem(TOpenCLValue *X, TOpenCLValue *Y) const;

The Reminder after division X/Y.

#NameTypeDescription
1XTOpenCLValue *
2YTOpenCLValue *
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
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b, c;

    a.Copy(4);
    b.Copy(3);
    c.Rem(a, b); // c = Rem(4,3)
}
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler