59 template<
class T,
class T2=Foam::scalar>
70 template<
class T,
class T2=Foam::scalar>
79 return std::fmod(
x,
y);
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
T operator()(const T &x, const T2 &y) const
Scalar division with divide-by-zero protection.
A traits class, which is primarily used for primitives and vector-space.
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
Hypot operation (scalar only)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
T operator()(const T &x, const T &y) const
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
T operator()(const T &x, const T2 &y) const
Floating point modulo operation with divide-by-zero protection.