|
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) noexcept |
| Return 1 if s is greater_equal zero, or otherwise -1. More...
|
|
Scalar | pos (const Scalar s) noexcept |
| Return 1 if s is greater than zero, otherwise 0. More...
|
|
Scalar | pos0 (const Scalar s) noexcept |
| Return 1 if s is greater_equal zero, or otherwise 0. More...
|
|
Scalar | neg (const Scalar s) noexcept |
| Return 1 if s is less than zero, or otherwise 0. More...
|
|
Scalar | neg0 (const Scalar s) noexcept |
| Return 1 if s is less_equal zero, or otherwise 0. More...
|
|
Scalar | posPart (const Scalar s) noexcept |
| Return the positive part of s, otherwise zero. Same as max(0, s). More...
|
|
Scalar | negPart (const Scalar s) noexcept |
| Return the negative part of s, otherwise zero. Same as min(0, s). More...
|
|
bool | equal (const Scalar &a, const Scalar &b) |
|
bool | notEqual (const Scalar a, const Scalar b) |
|
Scalar | clamp (const Scalar val, const Foam::zero_one) |
| Clamp scalar value to a 0-1 range. More...
|
|
Scalar | clamp (const Scalar val, const Scalar lower, const Scalar upper) |
|
Scalar | limit (const Scalar s1, const Scalar s2) |
|
Scalar | minMod (const Scalar s1, const Scalar s2) |
|
constexpr Scalar | lerp (const Scalar a, const Scalar b, const Scalar t) |
| Linear interpolation of scalars a and b by factor t. More...
|
|
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...
|
|
Original source file Scalar.H
Definition in file Scalar.H.