15#include <Kokkos_Assert.hpp>
16#include <Kokkos_Macros.hpp>
25template <
concepts::discrete_dimension DDim>
28template <
concepts::discrete_dimension... DDims>
36template <
class... Tags>
47concept discrete_domain = is_discrete_domain_v<T>;
53template <
class... Tags>
59template <
class... DDims,
class... ODDims>
67template <
concepts::discrete_dimension... DDims>
70 template <
concepts::discrete_dimension...>
74 type_seq_is_unique_v<
TypeSeq<DDims...>>,
75 "The dimensions of a DiscreteDomain must be unique");
78 using discrete_element_type = DiscreteElement<DDims...>;
83 DiscreteElement<DDims...> m_element_begin;
85 DiscreteElement<DDims...> m_element_end;
88 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
90 return sizeof...(DDims);
96 template <
concepts::discrete_domain... DDoms>
97 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... domains)
98 : m_element_begin(domains.front()...)
99 , m_element_end((domains.front() + domains.extents())...)
104
105
106
108 discrete_element_type
const& element_begin,
109 discrete_vector_type
const& size)
110 : m_element_begin(element_begin)
111 , m_element_end(element_begin + size)
125 template <
concepts::discrete_dimension... ODDims>
128 if (
empty() && other.empty()) {
131 return m_element_begin == other.m_element_begin && m_element_end == other.m_element_end;
134#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
139 return !(*
this ==
other);
143 KOKKOS_FUNCTION
constexpr std::size_t
size()
const
145 return (1UL * ... * extent<DDims>().value());
148 KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
const noexcept
150 return m_element_end - m_element_begin;
153 template <
concepts::discrete_dimension QueryDDim>
156 return DiscreteElement<QueryDDim>(m_element_end)
157 - DiscreteElement<QueryDDim>(m_element_begin);
160 KOKKOS_FUNCTION
constexpr discrete_element_type
front()
const noexcept
162 return m_element_begin;
165 KOKKOS_FUNCTION
constexpr discrete_element_type
back()
const noexcept
167 return discrete_element_type((DiscreteElement<DDims>(m_element_end) - 1)...);
191 discrete_vector_type n1,
192 discrete_vector_type n2)
const
197 KOKKOS_FUNCTION
constexpr DiscreteElement<DDims...>
operator()(
200 return m_element_begin + dvect;
203 template <
concepts::discrete_dimension... ODDims>
207 ((DiscreteElement<ODDims>(m_element_begin)
208 <= DiscreteElement<ODDims>(odomain.m_element_begin))
211 ((DiscreteElement<ODDims>(m_element_end)
212 >= DiscreteElement<ODDims>(odomain.m_element_end))
217 DiscreteElement<DDims...>((select_or<DDims>(
218 odomain.m_element_begin,
219 DiscreteElement<DDims>(m_element_begin)))...),
221 (select_or<DDims>(oextents,
DiscreteVector<DDims>(myextents)))...));
224 template <
concepts::discrete_element... DElems>
225 KOKKOS_FUNCTION
bool contains(DElems
const&... delems)
const noexcept
228 sizeof...(DDims) == (0 + ... + DElems::size()),
229 "Invalid number of dimensions");
230 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
231 DiscreteElement<DDims...>
const delem(delems...);
232 for (std::size_t i = 0; i <
rank(); ++i) {
233 if ((detail::array(delem)[i] < detail::array(m_element_begin)[i])
234 || (detail::array(delem)[i] >= detail::array(m_element_end)[i])) {
241 template <
concepts::discrete_element... DElems>
243 DElems
const&... delems)
const noexcept
246 sizeof...(DDims) == (0 + ... + DElems::size()),
247 "Invalid number of dimensions");
248 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
250 (DiscreteElement<DDims>(take<DDims>(delems...))
251 - DiscreteElement<DDims>(m_element_begin))...);
254 KOKKOS_FUNCTION
constexpr bool empty()
const noexcept
259 KOKKOS_FUNCTION
constexpr explicit operator bool()
264 KOKKOS_FUNCTION
auto begin()
const
265 requires(
sizeof...(DDims) == 1)
270 KOKKOS_FUNCTION
auto end()
const
271 requires(
sizeof...(DDims) == 1)
276 KOKKOS_FUNCTION
auto cbegin()
const
277 requires(
sizeof...(DDims) == 1)
282 KOKKOS_FUNCTION
auto cend()
const
283 requires(
sizeof...(DDims) == 1)
288 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
289 requires(
sizeof...(DDims) == 1)
294 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
const
295 requires(
sizeof...(DDims) == 1)
304 template <
concepts::discrete_dimension...>
308 using discrete_element_type = DiscreteElement<>;
312 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
320 template <
class... DDoms>
321 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... )
322 requires(is_discrete_domain_v<DDoms> && ...)
327
328
329
331 [[
maybe_unused]] discrete_element_type
const& element_begin,
352#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
356 return !(*
this ==
other);
360 static KOKKOS_FUNCTION
constexpr std::size_t
size()
365 static KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
noexcept
370 static KOKKOS_FUNCTION
constexpr discrete_element_type
front()
noexcept
375 static KOKKOS_FUNCTION
constexpr discrete_element_type
back()
noexcept
401 discrete_vector_type ,
402 discrete_vector_type )
const
407 KOKKOS_FUNCTION
constexpr DiscreteElement<>
operator()(
413 template <
concepts::discrete_dimension... ODDims>
420 static KOKKOS_FUNCTION
bool contains()
noexcept
425 static KOKKOS_FUNCTION
bool contains(DiscreteElement<>)
noexcept
440 static KOKKOS_FUNCTION
constexpr bool empty()
noexcept
445 KOKKOS_FUNCTION
constexpr explicit operator bool()
451template <
concepts::discrete_dimension... QueryDDims,
concepts::discrete_dimension... DDims>
460template <ddc::concepts::type_seq T>
461struct ConvertTypeSeqToDiscreteDomain
465template <ddc::concepts::discrete_dimension... DDims>
466struct ConvertTypeSeqToDiscreteDomain<
ddc::
TypeSeq<DDims...>>
471template <ddc::concepts::type_seq T>
472using convert_type_seq_to_discrete_domain_t = ConvertTypeSeqToDiscreteDomain<T>::type;
477template <
concepts::discrete_dimension... DDimsA,
concepts::discrete_dimension... DDimsB>
482 using TagSeqA =
TypeSeq<DDimsA...>;
483 using TagSeqB =
TypeSeq<DDimsB...>;
485 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
486 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
492template <
concepts::discrete_dimension... DDimsB,
concepts::discrete_dimension... DDimsA>
495 using TagSeqA =
TypeSeq<DDimsA...>;
496 using TagSeqB =
TypeSeq<DDimsB...>;
498 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
499 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
506template <
typename DDom, concepts::discrete_dimension... DDims>
507using remove_dims_of_t =
decltype(remove_dims_of<DDims...>(std::declval<DDom>()));
513 ddc::concepts::discrete_dimension DDim1,
514 ddc::concepts::discrete_dimension DDim2,
515 ddc::concepts::discrete_dimension DDimA,
516 ddc::concepts::discrete_dimension... DDimsB>
517KOKKOS_FUNCTION
constexpr std::conditional_t<
518 std::is_same_v<DDimA, DDim1>,
523 [[maybe_unused]]
DiscreteDomain<DDimsB...>
const& DDom_b)
noexcept
525 if constexpr (std::is_same_v<DDimA, DDim1>) {
538 concepts::discrete_dimension... DDimsA,
539 concepts::discrete_dimension... DDimsB>
545 using TagSeqA =
TypeSeq<DDimsA...>;
546 using TagSeqB =
TypeSeq<DDim1>;
547 using TagSeqC =
TypeSeq<DDim2>;
549 using type_seq_r =
ddc::type_seq_replace_t<TagSeqA, TagSeqB, TagSeqC>;
550 return ddc::detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(
551 detail::replace_dim_of_1d<
559template <
typename DDom, concepts::discrete_dimension DDim1, concepts::discrete_dimension DDim2>
560using replace_dim_of_t =
decltype(replace_dim_of<DDim1, DDim2>(
561 std::declval<DDom>(),
562 std::declval<detail::rebind_t<DDom,
TypeSeq<DDim2>>>()));
565template <
concepts::discrete_dimension... QueryDDims,
concepts::discrete_dimension... DDims>
572template <
concepts::discrete_dimension... QueryDDims,
concepts::discrete_dimension... DDims>
573KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
front(
576 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).front()...);
579template <
concepts::discrete_dimension... QueryDDims,
concepts::discrete_dimension... DDims>
580KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
back(
583 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).back()...);
586template <
concepts::discrete_dimension DDim>
590 DiscreteElement<DDim> m_value = DiscreteElement<DDim>();
593 using iterator_category = std::random_access_iterator_tag;
595 using value_type = DiscreteElement<DDim>;
597 using difference_type = std::ptrdiff_t;
606 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator*()
const noexcept
639 if (n >=
static_cast<difference_type>(0)) {
640 m_value +=
static_cast<DiscreteElementType>(n);
642 m_value -=
static_cast<DiscreteElementType>(-n);
649 if (n >=
static_cast<difference_type>(0)) {
650 m_value -=
static_cast<DiscreteElementType>(n);
652 m_value +=
static_cast<DiscreteElementType>(-n);
657 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator[](difference_type n)
const
662 friend KOKKOS_FUNCTION
constexpr bool operator==(
666 return xx.m_value == yy.m_value;
669#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
679 friend KOKKOS_FUNCTION
constexpr bool operator<(
683 return xx.m_value < yy.m_value;
686 friend KOKKOS_FUNCTION
constexpr bool operator>(
693 friend KOKKOS_FUNCTION
constexpr bool operator<=(
700 friend KOKKOS_FUNCTION
constexpr bool operator>=(
728 friend KOKKOS_FUNCTION
constexpr difference_type
operator-(
732 return (yy.m_value > xx.m_value) ? (-
static_cast<difference_type>(yy.m_value - xx.m_value))
733 : (xx.m_value - yy.m_value);
739void print_discrete_domain(
742 std::span<DiscreteElementType
const> front,
743 std::span<DiscreteElementType
const> back);
748
749
750
751
752
753template <concepts::discrete_dimension... DDims>
754std::ostream& operator<<(std::ostream& os,
DiscreteDomain<DDims...>
const& domain)
756 detail::print_discrete_domain(
759 detail::array(domain.front()),
760 detail::array(domain.back()));
KOKKOS_FUNCTION constexpr ChunkCommon(ElementType *ptr, SupportType const &domain)
Constructs a new ChunkCommon from scratch.
KOKKOS_FUNCTION constexpr bool is_strided() const noexcept
KOKKOS_DEFAULTED_FUNCTION ~ChunkCommon() noexcept=default
KOKKOS_FUNCTION constexpr ElementType * data_handle() const
Access to the underlying allocation pointer.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon()=default
Empty ChunkCommon.
allocation_mdspan_type m_allocation_mdspan
The raw view of the data.
KOKKOS_FUNCTION constexpr SupportType domain() const noexcept
Provide access to the domain on which this chunk is defined.
static KOKKOS_FUNCTION constexpr bool is_always_strided() noexcept
KOKKOS_FUNCTION constexpr allocation_mdspan_type allocation_mdspan() const
Provide a modifiable view of the data.
KOKKOS_FUNCTION constexpr ChunkCommon(allocation_mdspan_type allocation_mdspan, SupportType const &domain) noexcept
Constructs a new ChunkCommon from scratch.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon(ChunkCommon const &other)=default
Constructs a new ChunkCommon by copy, yields a new view to the same data.
static KOKKOS_FUNCTION constexpr bool is_always_unique() noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain< QueryDDims... > domain() const noexcept
Provide access to the domain on which this chunk is defined.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon & operator=(ChunkCommon const &other)=default
Copy-assigns a new value to this ChunkCommon, yields a new view to the same data.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon(ChunkCommon &&other) noexcept=default
Constructs a new ChunkCommon by move.
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkCommon & operator=(ChunkCommon &&other) noexcept=default
Move-assigns a new value to this ChunkCommon.
KOKKOS_FUNCTION constexpr size_type extent() const noexcept
KOKKOS_FUNCTION constexpr size_type stride() const
KOKKOS_FUNCTION constexpr bool is_exhaustive() const noexcept
KOKKOS_FUNCTION constexpr mapping_type mapping() const noexcept
static KOKKOS_FUNCTION constexpr int rank() noexcept
KOKKOS_FUNCTION constexpr bool is_unique() const noexcept
KOKKOS_FUNCTION constexpr accessor_type accessor() const
KOKKOS_FUNCTION constexpr SupportType::discrete_vector_type extents() const noexcept
KOKKOS_FUNCTION constexpr size_type size() const noexcept
SupportType m_domain
The mesh on which this chunk is defined.
static KOKKOS_FUNCTION constexpr int rank_dynamic() noexcept
static KOKKOS_FUNCTION constexpr size_type static_extent(std::size_t r) noexcept
static KOKKOS_FUNCTION constexpr bool is_always_exhaustive() noexcept
auto operator[](DiscreteElement< QueryDDims... > const &slice_spec) const
Slice out some dimensions.
auto operator[](DiscreteVector< QueryDDims... > const &slice_spec) const
Slice out some dimensions.
char const * label() const
Returns the label of the Chunk.
const_allocation_mdspan_type allocation_mdspan() const
Provide a mdspan on the memory allocation.
ElementType const * data_handle() const
Access to the underlying allocation pointer.
auto allocation_kokkos_view()
Provide an unmanaged Kokkos::View on the memory allocation.
auto operator[](DiscreteDomain< QueryDDims... > const &odomain)
Slice out some dimensions.
auto allocation_kokkos_view() const
Provide an unmanaged Kokkos::View on the memory allocation.
Chunk(SupportType const &domain, Allocator allocator=Allocator())
Construct a Chunk on a domain with uninitialized values.
Chunk & operator=(Chunk const &other)=delete
Deleted: use deepcopy instead.
allocation_mdspan_type allocation_mdspan()
Provide a mdspan on the memory allocation.
ElementType * data_handle()
Access to the underlying allocation pointer.
view_type span_cview() const
Chunk(Chunk const &other)=delete
Deleted: use deepcopy instead.
Chunk(std::string const &label, SupportType const &domain, Allocator allocator=Allocator())
Construct a labeled Chunk on a domain with uninitialized values.
element_type & operator()(DElems const &... delems) noexcept
Element access using a list of DiscreteElement.
Chunk()=default
Empty Chunk.
Chunk & operator=(Chunk &&other) noexcept
Move-assigns a new value to this field.
Chunk(Chunk &&other) noexcept
Constructs a new Chunk by move.
view_type span_view() const
auto operator[](DiscreteDomain< QueryDDims... > const &odomain) const
Slice out some dimensions.
element_type const & operator()(DElems const &... delems) const noexcept
Element access using a list of DiscreteElement.
auto operator[](DiscreteVector< QueryDDims... > const &slice_spec)
Slice out some dimensions.
auto operator[](DiscreteElement< QueryDDims... > const &slice_spec)
Slice out some dimensions.
static KOKKOS_FUNCTION constexpr discrete_vector_type extents() noexcept
KOKKOS_DEFAULTED_FUNCTION ~DiscreteDomain()=default
KOKKOS_FUNCTION constexpr DiscreteDomain(discrete_element_type const &element_begin, discrete_vector_type const &size)
Construct a DiscreteDomain starting from element_begin with size points.
KOKKOS_FUNCTION constexpr DiscreteDomain(DDoms const &...)
Construct a DiscreteDomain by copies and merge of domains.
KOKKOS_FUNCTION constexpr DiscreteDomain take_last(discrete_vector_type) const
KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomain const &) const
KOKKOS_FUNCTION constexpr DiscreteDomain remove(discrete_vector_type, discrete_vector_type) const
static KOKKOS_FUNCTION constexpr std::size_t rank()
KOKKOS_FUNCTION constexpr DiscreteDomain remove_last(discrete_vector_type) const
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain const &x)=default
static KOKKOS_FUNCTION bool contains() noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteDomain()=default
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr operator bool()
static KOKKOS_FUNCTION constexpr std::size_t size()
static KOKKOS_FUNCTION constexpr bool empty() noexcept
static KOKKOS_FUNCTION bool contains(DiscreteElement<>) noexcept
static KOKKOS_FUNCTION constexpr discrete_element_type back() noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain restrict_with(DiscreteDomain< ODDims... > const &) const
static KOKKOS_FUNCTION DiscreteVector distance_from_front(DiscreteElement<>) noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain remove_first(discrete_vector_type) const
static KOKKOS_FUNCTION constexpr discrete_element_type front() noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain const &x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain take_first(discrete_vector_type) const
KOKKOS_FUNCTION constexpr DiscreteElement operator()(DiscreteVector<> const &) const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain &&x)=default
static KOKKOS_FUNCTION DiscreteVector distance_from_front() noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain const &x)=default
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain remove_last(discrete_vector_type n) const
KOKKOS_FUNCTION bool contains(DElems const &... delems) const noexcept
KOKKOS_FUNCTION constexpr DiscreteDomain take_last(discrete_vector_type n) const
KOKKOS_FUNCTION constexpr DiscreteDomain(DDoms const &... domains)
Construct a DiscreteDomain by copies and merge of domains.
KOKKOS_FUNCTION constexpr decltype(auto) operator[](std::size_t n)
KOKKOS_FUNCTION constexpr DiscreteDomain remove(discrete_vector_type n1, discrete_vector_type n2) const
KOKKOS_FUNCTION constexpr decltype(auto) operator[](std::size_t n) const
KOKKOS_FUNCTION constexpr auto restrict_with(DiscreteDomain< ODDims... > const &odomain) const
static KOKKOS_FUNCTION constexpr std::size_t rank()
KOKKOS_FUNCTION constexpr bool empty() const noexcept
KOKKOS_FUNCTION constexpr std::size_t size() const
friend class DiscreteDomain
KOKKOS_FUNCTION constexpr discrete_vector_type extents() const noexcept
KOKKOS_FUNCTION constexpr DiscreteVector< QueryDDim > extent() const noexcept
KOKKOS_FUNCTION constexpr discrete_element_type front() const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain remove_first(discrete_vector_type n) const
KOKKOS_FUNCTION constexpr DiscreteDomain take_first(discrete_vector_type n) const
KOKKOS_DEFAULTED_FUNCTION ~DiscreteDomain()=default
KOKKOS_FUNCTION DiscreteVector< DDims... > distance_from_front(DElems const &... delems) const noexcept
KOKKOS_FUNCTION constexpr discrete_element_type back() const noexcept
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain const &x)=default
KOKKOS_FUNCTION constexpr DiscreteElement< DDims... > operator()(DiscreteVector< DDims... > const &dvect) const noexcept
KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomain< ODDims... > const &other) const
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain()=default
KOKKOS_FUNCTION constexpr operator bool()
KOKKOS_FUNCTION constexpr DiscreteDomain(discrete_element_type const &element_begin, discrete_vector_type const &size)
Construct a DiscreteDomain starting from element_begin with size points.
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteElement()=default
KOKKOS_FUNCTION constexpr bool operator!=(DiscreteVector< OTags... > const &rhs) const noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector()=default
#define DDC_BUILD_DEPRECATED_CODE
#define DDC_BUILD_DOUBLE_PRECISION
The top-level namespace of DDC.
constexpr bool is_borrowed_chunk_v
KOKKOS_FUNCTION auto get_domain(ChunkType const &chunk) noexcept
Access the domain (or subdomain) of a view.
constexpr bool enable_chunk< Chunk< ElementType, SupportType, Allocator > >
KOKKOS_FUNCTION constexpr DiscreteElement< QueryDDims... > back(DiscreteDomain< DDims... > const &domain) noexcept
constexpr bool enable_borrowed_chunk
constexpr bool enable_chunk
constexpr bool is_chunk_v
KOKKOS_FUNCTION constexpr auto remove_dims_of(DiscreteDomain< DDimsA... > const &DDom_a, DiscreteDomain< DDimsB... > const &) noexcept
KOKKOS_FUNCTION constexpr auto remove_dims_of(DiscreteDomain< DDimsA... > const &DDom_a) noexcept
Remove the dimensions DDimsB from DDom_a.
KOKKOS_FUNCTION constexpr DiscreteElement< QueryDDims... > front(DiscreteDomain< DDims... > const &domain) noexcept
constexpr bool is_writable_chunk_v
KOKKOS_FUNCTION constexpr DiscreteVector< QueryDDims... > extents(DiscreteDomain< DDims... > const &domain) noexcept
Chunk(SupportType const &, Allocator) -> Chunk< typename Allocator::value_type, SupportType, Allocator >
KOKKOS_FUNCTION constexpr auto replace_dim_of(DiscreteDomain< DDimsA... > const &DDom_a, DiscreteDomain< DDimsB... > const &DDom_b) noexcept
Chunk(std::string const &, SupportType const &, Allocator) -> Chunk< typename Allocator::value_type, SupportType, Allocator >
constexpr bool is_discrete_domain_v
KOKKOS_FUNCTION constexpr DiscreteDomain< QueryDDims... > select(DiscreteDomain< DDims... > const &domain)
A compile-time sequence of types.
KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator--(int)
friend KOKKOS_FUNCTION constexpr bool operator<=(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_FUNCTION constexpr DiscreteElement< DDim > operator*() const noexcept
friend KOKKOS_FUNCTION constexpr bool operator>=(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_DEFAULTED_FUNCTION DiscreteDomainIterator()=default
KOKKOS_FUNCTION constexpr DiscreteElement< DDim > operator[](difference_type n) const
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator--()
KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator++(int)
friend KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator-(DiscreteDomainIterator i, difference_type n)
friend KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator+(DiscreteDomainIterator i, difference_type n)
friend KOKKOS_FUNCTION constexpr bool operator>(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
friend KOKKOS_FUNCTION constexpr bool operator!=(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
friend KOKKOS_FUNCTION constexpr bool operator<(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator+=(difference_type n)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator++()
friend KOKKOS_FUNCTION constexpr DiscreteDomainIterator operator+(difference_type n, DiscreteDomainIterator i)
friend KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator(DiscreteElement< DDim > value)
KOKKOS_FUNCTION constexpr DiscreteDomainIterator & operator-=(difference_type n)
friend KOKKOS_FUNCTION constexpr difference_type operator-(DiscreteDomainIterator const &xx, DiscreteDomainIterator const &yy)