|
template<class Base , class Exponent > |
constexpr Base | Dune::power (Base m, Exponent p) |
| Power method for integer exponents.
|
|
template<class T > |
static constexpr T | Dune::factorial (const T &n) noexcept |
| calculate the factorial of n as a constexpr
|
|
template<class T , T n> |
static constexpr auto | Dune::factorial (std::integral_constant< T, n >) noexcept |
| calculate the factorial of n as a constexpr
|
|
template<class T > |
static constexpr T | Dune::binomial (const T &n, const T &k) noexcept |
| calculate the binomial coefficient n over k as a constexpr
|
|
template<class T , T n, T k> |
static constexpr auto | Dune::binomial (std::integral_constant< T, n >, std::integral_constant< T, k >) noexcept |
| calculate the binomial coefficient n over k as a constexpr
|
|
template<class T , T n> |
static constexpr auto | Dune::binomial (std::integral_constant< T, n >, std::integral_constant< T, n >) noexcept |
|
template<class K > |
K | Dune::conjugateComplex (const K &x) |
| compute conjugate complex of x
|
|
template<class T > |
int | Dune::sign (const T &val) |
| Return the sign of the value.
|
|
| Dune::MathOverloads::DUNE_COMMON_MATH_ISFUNCTION (isNaN, isnan) |
|
| Dune::MathOverloads::DUNE_COMMON_MATH_ISFUNCTION (isInf, isinf) |
|
| Dune::MathOverloads::DUNE_COMMON_MATH_ISFUNCTION (isFinite, isfinite) |
|
template<class T > |
auto | Dune::MathOverloads::isUnordered (const T &t1, const T &t2, PriorityTag< 1 >, ADLTag) -> decltype(isUnordered(t1, t2)) |
|
template<class T > |
auto | Dune::MathOverloads::isUnordered (const T &t1, const T &t2, PriorityTag< 0 >, ADLTag) |
|
| Dune::MathImpl::DUNE_COMMON_MATH_ISFUNCTION_FUNCTOR (isNaN) |
|
| Dune::MathImpl::DUNE_COMMON_MATH_ISFUNCTION_FUNCTOR (isInf) |
|
| Dune::MathImpl::DUNE_COMMON_MATH_ISFUNCTION_FUNCTOR (isFinite) |
|
template<class T , class = std::enable_if_t<Impl::isComplexLike<T>::value>> |
auto | Dune::MathOverloads::isNaN (const T &t, PriorityTag< 2 >, ADLTag) |
|
template<class T , class = std::enable_if_t<Impl::isComplexLike<T>::value>> |
auto | Dune::MathOverloads::isInf (const T &t, PriorityTag< 2 >, ADLTag) |
|
template<class T , class = std::enable_if_t<Impl::isComplexLike<T>::value>> |
auto | Dune::MathOverloads::isFinite (const T &t, PriorityTag< 2 >, ADLTag) |
|
Some useful basic math stuff.