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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
Hypot operation (scalar only)
T operator()(const T &x, const T &y) const
A non-counting (dummy) refCount.
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