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