9#include <Kokkos_Macros.hpp>
11#include "detail/tagged_vector.hpp"
20
21
22using CoordinateElement = Real;
25
26
27
29template <
class... CDims>
30using Coordinate = detail::TaggedVector<CoordinateElement, CDims...>;
32template <
concepts::discrete_dimension... DDims>
34 DiscreteElement<DDims...>
const& c)
35 requires(
sizeof...(DDims) > 1)
37 return Coordinate<
typename DDims::continuous_dimension_type...>(
38 coordinate(DiscreteElement<DDims>(c))...);
46 static_assert(is_discrete_element_v<T>,
"Parameter T must be of type DiscreteElement");
47 using type =
decltype(coordinate(std::declval<T>()));
The top-level namespace of DDC.
KOKKOS_FUNCTION Coordinate< typename DDims::continuous_dimension_type... > coordinate(DiscreteElement< DDims... > const &c)