9#include <dune/common/hash.hh>
10#include <dune/common/quadmath.hh>
12#include <amdis/common/DerivativeTraits.hpp>
13#include <amdis/common/StaticSize.hpp>
14#include <amdis/common/ValueCategory.hpp>
15#include <amdis/gridfunctions/ConstantGridFunction.hpp>
20 struct common_type<Dune::Float128, T>
22 using type = Dune::Float128;
26 struct common_type<T, Dune::Float128>
28 using type = Dune::Float128;
32 struct common_type<Dune::Float128, Dune::Float128>
34 using type = Dune::Float128;
38 struct hash<Dune::Float128>
40 typedef Dune::Float128 argument_type;
41 typedef std::size_t result_type;
43 std::size_t operator()(
const Dune::Float128& arg)
const
45 hash<long double> hasher_ld;
46 return hasher_ld((
long double)(arg));
51 struct hash<const Dune::Float128>
52 :
public hash<Dune::Float128>
64 std::enable_if_t<not std::is_integral_v<T> && std::is_arithmetic_v<T>,
int> = 0>
65 inline Float128 pow(
const Float128& x,
const T& p)
67 return powq(float128_t(x), float128_t(p));
90 struct SizeImpl<Dune::Float128>
92 static constexpr auto eval(Dune::Float128)
93 -> std::integral_constant<std::size_t, 1> {
return {}; }
97 struct NumRowsImpl<Dune::Float128>
99 static constexpr auto eval(Dune::Float128)
100 -> std::integral_constant<std::size_t, 1> {
return {}; }
104 struct NumColsImpl<Dune::Float128>
106 static constexpr auto eval(Dune::Float128)
107 -> std::integral_constant<std::size_t, 1> {
return {}; }
112 template <
class K,
int N>
113 struct DerivativeTraits<Dune::Float128(Dune::FieldVector<K,N>), tag::gradient>
115 using Range = Dune::FieldVector<Dune::Float128,N>;
119 struct ValueCategory<Dune::Float128>
121 using type = tag::scalar;
127struct fmt::formatter<Dune::Float128>
128 :
public formatter<long double>
130 template <
class FormatContext>
131 auto format(Dune::Float128
const& f, FormatContext& ctx)
const
133 return formatter<long double>::format(
static_cast<long double>(f), ctx);
constexpr bool ConstantToGridFunction
Concepts that is true for all ''simple'' types that can be converted automatically to a GridFunction,...
Definition: ConstantGridFunction.hpp:187