Scalar.H File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pTraits< Scalar >
 
struct  nameOp< Scalar >
 A word representation of a floating-point value. More...
 
struct  compareOp< Scalar >
 Compare scalar values. More...
 
struct  equalOp< Scalar >
 Compare scalar values for equality. More...
 
struct  notEqualOp< Scalar >
 Compare scalar values for inequality. More...
 
struct  floorOp< Scalar >
 Round scalar downwards - functor version of std::floor. More...
 
struct  ceilOp< Scalar >
 Round scalar upwards - functor version of std::ceil. More...
 
struct  roundOp< Scalar >
 Round scalar - functor version of std::round. More...
 

Namespaces

namespace  Foam
 Namespace for OpenFOAM.
 

Functions

word name (const Scalar val)
 A word representation of a floating-point value. More...
 
Scalar ScalarRead (const char *buf)
 Parse entire buffer as a float/double, skipping leading/trailing whitespace. More...
 
bool ScalarRead (const char *buf, Scalar &val)
 Parse entire buffer as a float/double, skipping leading/trailing whitespace. More...
 
Scalar ScalarRead (const std::string &str)
 Parse entire string as a float/double, skipping leading/trailing whitespace. More...
 
bool ScalarRead (const std::string &str, Scalar &val)
 Parse entire string as a float/double, skipping leading/trailing whitespace. More...
 
Scalar ScalarRead (Istream &is)
 
Istream & operator>> (Istream &is, Scalar &val)
 
Ostream & operator<< (Ostream &os, const Scalar val)
 
 transFunc (sqrt) transFunc(cbrt) transFunc(exp) transFunc(log) transFunc(log10) transFunc(sin) transFunc(cos) transFunc(tan) transFunc(asin) transFunc(acos) transFunc(atan) transFunc(sinh) transFunc(cosh) transFunc(tanh) transFunc(asinh) transFunc(acosh) transFunc(atanh) transFunc(erf) transFunc(erfc) transFunc(lgamma) transFunc(tgamma) besselFunc(j0) besselFunc(j1) besselFunc(y0) besselFunc(y1) besselFunc2(jn) besselFunc2(yn) inline Scalar &setComponent(Scalar &val
 Non-const access to scalar-type (has no components) More...
 
constexpr Scalar component (const Scalar val, const direction) noexcept
 Return scalar value (has no components) More...
 
Scalar sign (const Scalar s)
 Return 1 if s is greater_equal zero, or otherwise -1. More...
 
Scalar pos (const Scalar s)
 Return 1 if s is greater than zero, otherwise 1. More...
 
Scalar pos0 (const Scalar s)
 Return 1 if s is greater_equal zero, or otherwise 0. More...
 
Scalar neg (const Scalar s)
 Return 1 if s is less than zero, or otherwise 0. More...
 
Scalar neg0 (const Scalar s)
 Return 1 if s is less_equal zero, or otherwise 0. More...
 
Scalar posPart (const Scalar s)
 Return the positive part of s, otherwise zero. Same as max(0, s). More...
 
Scalar negPart (const Scalar s)
 Return the negative part of s, otherwise zero. Same as min(0, s). More...
 
bool equal (const Scalar &s1, const Scalar &s2)
 
bool notEqual (const Scalar s1, const Scalar s2)
 
Scalar limit (const Scalar s1, const Scalar s2)
 
Scalar minMod (const Scalar s1, const Scalar s2)
 
Scalar magSqr (const Scalar s)
 
Scalar sqr (const Scalar s)
 
Scalar pow3 (const Scalar s)
 
Scalar pow4 (const Scalar s)
 
Scalar pow5 (const Scalar s)
 
Scalar pow6 (const Scalar s)
 
Scalar pow025 (const Scalar s)
 
Scalar inv (const Scalar s)
 
Scalar dot (const Scalar s1, const Scalar s2)
 
Scalar cmptMultiply (const Scalar s1, const Scalar s2)
 
Scalar cmptPow (const Scalar s1, const Scalar s2)
 
Scalar cmptDivide (const Scalar s1, const Scalar s2)
 
Scalar cmptMax (const Scalar s)
 
Scalar cmptMin (const Scalar s)
 
Scalar cmptAv (const Scalar s)
 
Scalar cmptSqr (const Scalar s)
 
Scalar cmptMag (const Scalar s)
 
Scalar cmptMagSqr (const Scalar s)
 
Scalar sqrtSumSqr (const Scalar a, const Scalar b)
 
Scalar stabilise (const Scalar s, const Scalar tol)
 Stabilisation around zero for division. More...
 

Variables

const direction noexcept
 

Detailed Description

Original source file Scalar.H

Definition in file Scalar.H.