ARTS 2.5.11 (git: 6827797f)
|
Simple constexpr math that we can make use of in Arts. More...
Go to the source code of this file.
Namespaces | |
namespace | Math |
Namespace containing several constants, physical and mathematical. | |
Functions | |
constexpr auto | Math::pow2 (auto x) noexcept |
power of two | |
constexpr auto | Math::pow3 (auto x) noexcept |
power of three | |
constexpr auto | Math::pow4 (auto x) noexcept |
power of four | |
Simple constexpr math that we can make use of in Arts.
The main advantage of maning things like here is to avoid repetition later x*x*x*x is more difficult than pow4(x).
The main point of these functions is to avoid repetition as above in context where we also want to support compile time computations
Definition in file arts_constexpr_math.h.