|
dune-common 2.8.0
|
Loading...
Searching...
No Matches
math.hh
Go to the documentation of this file.
110 static_assert(std::numeric_limits<T>::is_integer, "`factorial(n)` has to be called with an integer type.");
130 static_assert(std::numeric_limits<T>::is_integer, "`binomial(n, k)` has to be called with an integer type.");
146 constexpr inline static auto binomial (std::integral_constant<T, n>, std::integral_constant<T, k>) noexcept
152 constexpr inline static auto binomial (std::integral_constant<T, n>, std::integral_constant<T, n>) noexcept
Utilities for type computations, constraining overloads, ...
#define DUNE_COMMON_MATH_ISFUNCTION_FUNCTOR(function)
Definition math.hh:266
#define DUNE_COMMON_MATH_ISFUNCTION(function, stdfunction)
Definition math.hh:229
static constexpr T binomial(const T &n, const T &k) noexcept
calculate the binomial coefficient n over k as a constexpr
Definition math.hh:128
constexpr Mantissa power(Mantissa m, Exponent p)
Power method for integer exponents.
Definition math.hh:73
static constexpr T factorial(const T &n) noexcept
calculate the factorial of n as a constexpr
Definition math.hh:108
K conjugateComplex(const K &x)
compute conjugate complex of x
Definition math.hh:161
bool isNaN(const FieldVector< K, SIZE > &b, PriorityTag< 2 >, ADLTag)
Definition fvector.hh:610
bool isInf(const FieldVector< K, SIZE > &b, PriorityTag< 2 >, ADLTag)
Definition fvector.hh:600
auto isFinite(const FieldVector< K, SIZE > &b, PriorityTag< 2 >, ADLTag)
Definition fvector.hh:590
bool isUnordered(const FieldVector< K, 1 > &b, const FieldVector< K, 1 > &c, PriorityTag< 2 >, ADLTag)
Definition fvector.hh:620
Standard implementation of MathematicalConstants.
Definition math.hh:32
static const T pi()
Archimedes' constant.
Definition math.hh:46
Tag to make sure the functions in this namespace can be found by ADL.
Definition math.hh:227
Definition math.hh:280
constexpr auto operator()(const T &t1, const T &t2) const
Definition math.hh:282
T acos(T... args)
T exp(T... args)
T imag(T... args)
T isunordered(T... args)
T real(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8