13#include <Kokkos_Assert.hpp>
14#include <Kokkos_Macros.hpp>
16#include "detail/type_seq.hpp"
26template <
class... DDims>
34template <
class... Tags>
45template <
class... Tags>
48 using type = TypeSeq<Tags...>;
51template <
class T,
class U>
54template <
class... DDims,
class... ODDims>
55struct RebindDomain<
DiscreteDomain<DDims...>, detail::TypeSeq<ODDims...>>
62template <
class... DDims>
69 type_seq_is_unique_v<detail::TypeSeq<DDims...>>,
70 "The dimensions of a DiscreteDomain must be unique");
73 using discrete_element_type = DiscreteElement<DDims...>;
78 DiscreteElement<DDims...> m_element_begin;
80 DiscreteElement<DDims...> m_element_end;
83 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
85 return sizeof...(DDims);
91 template <
class... DDoms,
class = std::enable_if_t<(is_discrete_domain_v<DDoms> && ...)>>
92 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... domains)
93 : m_element_begin(domains.front()...)
94 , m_element_end((domains.front() + domains.extents())...)
99
100
101
103 discrete_element_type
const& element_begin,
104 discrete_vector_type
const& size)
105 : m_element_begin(element_begin)
106 , m_element_end(element_begin + size)
120 template <
class... ODims>
123 if (
empty() && other.empty()) {
126 return m_element_begin == other.m_element_begin && m_element_end == other.m_element_end;
129#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
131 template <
class...
ODims>
134 return !(*
this ==
other);
138 KOKKOS_FUNCTION
constexpr std::size_t
size()
const
140 return (1UL * ... * extent<DDims>().value());
143 KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
const noexcept
145 return m_element_end - m_element_begin;
148 template <
class QueryDDim>
151 return DiscreteElement<QueryDDim>(m_element_end)
152 - DiscreteElement<QueryDDim>(m_element_begin);
155 KOKKOS_FUNCTION
constexpr discrete_element_type
front()
const noexcept
157 return m_element_begin;
160 KOKKOS_FUNCTION
constexpr discrete_element_type
back()
const noexcept
162 return discrete_element_type((DiscreteElement<DDims>(m_element_end) - 1)...);
186 discrete_vector_type n1,
187 discrete_vector_type n2)
const
192 KOKKOS_FUNCTION
constexpr DiscreteElement<DDims...>
operator()(
195 return m_element_begin + dvect;
198 template <
class... ODDims>
202 ((DiscreteElement<ODDims>(m_element_begin)
203 <= DiscreteElement<ODDims>(odomain.m_element_begin))
206 ((DiscreteElement<ODDims>(m_element_end)
207 >= DiscreteElement<ODDims>(odomain.m_element_end))
212 DiscreteElement<DDims...>((select_or<DDims>(
213 odomain.m_element_begin,
214 DiscreteElement<DDims>(m_element_begin)))...),
216 (select_or<DDims>(oextents,
DiscreteVector<DDims>(myextents)))...));
219 template <
class... DElems>
220 KOKKOS_FUNCTION
bool contains(DElems
const&... delems)
const noexcept
223 sizeof...(DDims) == (0 + ... + DElems::size()),
224 "Invalid number of dimensions");
225 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
226 DiscreteElement<DDims...>
const delem(delems...);
227 for (std::size_t i = 0; i <
rank(); ++i) {
228 if ((detail::array(delem)[i] < detail::array(m_element_begin)[i])
229 || (detail::array(delem)[i] >= detail::array(m_element_end)[i])) {
236 template <
class... DElems>
238 DElems
const&... delems)
const noexcept
241 sizeof...(DDims) == (0 + ... + DElems::size()),
242 "Invalid number of dimensions");
243 static_assert((is_discrete_element_v<DElems> && ...),
"Expected DiscreteElements");
245 (DiscreteElement<DDims>(take<DDims>(delems...))
246 - DiscreteElement<DDims>(m_element_begin))...);
249 KOKKOS_FUNCTION
constexpr bool empty()
const noexcept
254 KOKKOS_FUNCTION
constexpr explicit operator bool()
260 std::size_t N =
sizeof...(DDims),
261 class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
262 KOKKOS_FUNCTION
auto begin()
const
268 std::size_t N =
sizeof...(DDims),
269 class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
270 KOKKOS_FUNCTION
auto end()
const
276 std::size_t N =
sizeof...(DDims),
277 class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
278 KOKKOS_FUNCTION
auto cbegin()
const
284 std::size_t N =
sizeof...(DDims),
285 class DDim0 = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
286 KOKKOS_FUNCTION
auto cend()
const
292 std::size_t N =
sizeof...(DDims),
293 class = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
294 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
300 std::size_t N =
sizeof...(DDims),
301 class = std::enable_if_t<N == 1, std::tuple_element_t<0, std::tuple<DDims...>>>>
302 KOKKOS_FUNCTION
constexpr decltype(
auto)
operator[](std::size_t n)
const
315 using discrete_element_type = DiscreteElement<>;
319 static KOKKOS_FUNCTION
constexpr std::size_t
rank()
327 template <
class... DDoms,
class = std::enable_if_t<(is_discrete_domain_v<DDoms> && ...)>>
328 KOKKOS_FUNCTION
constexpr explicit DiscreteDomain(DDoms
const&... )
333
334
335
337 [[
maybe_unused]] discrete_element_type
const& element_begin,
358#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
362 return !(*
this ==
other);
366 static KOKKOS_FUNCTION
constexpr std::size_t
size()
371 static KOKKOS_FUNCTION
constexpr discrete_vector_type
extents()
noexcept
376 static KOKKOS_FUNCTION
constexpr discrete_element_type
front()
noexcept
381 static KOKKOS_FUNCTION
constexpr discrete_element_type
back()
noexcept
407 discrete_vector_type ,
408 discrete_vector_type )
const
413 KOKKOS_FUNCTION
constexpr DiscreteElement<>
operator()(
419 template <
class... ODims>
426 static KOKKOS_FUNCTION
bool contains()
noexcept
431 static KOKKOS_FUNCTION
bool contains(DiscreteElement<>)
noexcept
446 static KOKKOS_FUNCTION
constexpr bool empty()
noexcept
451 KOKKOS_FUNCTION
constexpr explicit operator bool()
457template <
class... QueryDDims,
class... DDims>
467struct ConvertTypeSeqToDiscreteDomain;
469template <
class... DDims>
470struct ConvertTypeSeqToDiscreteDomain<detail::TypeSeq<DDims...>>
476using convert_type_seq_to_discrete_domain_t =
typename ConvertTypeSeqToDiscreteDomain<T>::type;
482template <
typename... DDoms>
483struct cartesian_prod;
485template <
typename... DDims1,
typename... DDims2,
typename... DDomsTail>
488 using type =
typename cartesian_prod<
DiscreteDomain<DDims1..., DDims2...>, DDomsTail...>::type;
491template <
typename... DDims>
498struct cartesian_prod<>
503template <
typename... DDoms>
504using cartesian_prod_t =
typename cartesian_prod<DDoms...>::type;
507template <
class... DDimsA,
class... DDimsB>
512 using TagSeqA = detail::TypeSeq<DDimsA...>;
513 using TagSeqB = detail::TypeSeq<DDimsB...>;
515 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
516 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
522template <
class... DDimsB,
class... DDimsA>
525 using TagSeqA = detail::TypeSeq<DDimsA...>;
526 using TagSeqB = detail::TypeSeq<DDimsB...>;
528 using type_seq_r = type_seq_remove_t<TagSeqA, TagSeqB>;
529 return detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(DDom_a);
533template <
typename DDom,
typename... DDims>
534using remove_dims_of_t =
decltype(remove_dims_of<DDims...>(std::declval<DDom>()));
539template <
typename DDim1,
typename DDim2,
typename DDimA,
typename... DDimsB>
540KOKKOS_FUNCTION
constexpr std::conditional_t<
541 std::is_same_v<DDimA, DDim1>,
546 [[maybe_unused]]
DiscreteDomain<DDimsB...>
const& DDom_b)
noexcept
548 if constexpr (std::is_same_v<DDimA, DDim1>) {
558template <
typename DDim1,
typename DDim2,
typename... DDimsA,
typename... DDimsB>
564 using TagSeqA = detail::TypeSeq<DDimsA...>;
565 using TagSeqB = detail::TypeSeq<DDim1>;
566 using TagSeqC = detail::TypeSeq<DDim2>;
568 using type_seq_r =
ddc::type_seq_replace_t<TagSeqA, TagSeqB, TagSeqC>;
569 return ddc::detail::convert_type_seq_to_discrete_domain_t<type_seq_r>(
570 detail::replace_dim_of_1d<
578template <
typename DDom,
typename DDim1,
typename DDim2>
579using replace_dim_of_t =
decltype(replace_dim_of<DDim1, DDim2>(
580 std::declval<DDom>(),
581 std::declval<
typename detail::RebindDomain<DDom, detail::TypeSeq<DDim2>>::type>()));
584template <
class... QueryDDims,
class... DDims>
591template <
class... QueryDDims,
class... DDims>
592KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
front(
595 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).front()...);
598template <
class... QueryDDims,
class... DDims>
599KOKKOS_FUNCTION
constexpr DiscreteElement<QueryDDims...>
back(
602 return DiscreteElement<QueryDDims...>(
DiscreteDomain<QueryDDims>(domain).back()...);
609 DiscreteElement<DDim> m_value = DiscreteElement<DDim>();
612 using iterator_category = std::random_access_iterator_tag;
614 using value_type = DiscreteElement<DDim>;
616 using difference_type = std::ptrdiff_t;
625 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator*()
const noexcept
658 if (n >=
static_cast<difference_type>(0)) {
659 m_value +=
static_cast<DiscreteElementType>(n);
661 m_value -=
static_cast<DiscreteElementType>(-n);
668 if (n >=
static_cast<difference_type>(0)) {
669 m_value -=
static_cast<DiscreteElementType>(n);
671 m_value +=
static_cast<DiscreteElementType>(-n);
676 KOKKOS_FUNCTION
constexpr DiscreteElement<DDim>
operator[](difference_type n)
const
681 friend KOKKOS_FUNCTION
constexpr bool operator==(
685 return xx.m_value == yy.m_value;
688#if !defined(__cpp_impl_three_way_comparison
) || __cpp_impl_three_way_comparison
< 201902L
698 friend KOKKOS_FUNCTION
constexpr bool operator<(
702 return xx.m_value < yy.m_value;
705 friend KOKKOS_FUNCTION
constexpr bool operator>(
712 friend KOKKOS_FUNCTION
constexpr bool operator<=(
719 friend KOKKOS_FUNCTION
constexpr bool operator>=(
747 friend KOKKOS_FUNCTION
constexpr difference_type
operator-(
751 return (yy.m_value > xx.m_value) ? (-
static_cast<difference_type>(yy.m_value - xx.m_value))
752 : (xx.m_value - yy.m_value);
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_FUNCTION constexpr ChunkCommon(ElementType *ptr, SupportType const &domain)
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.
char const * label() const
Returns the label of the Chunk.
auto operator[](DiscreteDomain< QueryDDims... > const &odomain)
Slice out some dimensions.
const_allocation_mdspan_type allocation_mdspan() const
Provide a mdspan on the memory allocation.
element_type & operator()(DVects const &... dvects) noexcept
Element access using a list of DiscreteVector.
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 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.
element_type const & operator()(DVects const &... dvects) const noexcept
Element access using a list of DiscreteVector.
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[](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 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
KOKKOS_FUNCTION constexpr DiscreteDomain(DDoms const &...)
Construct a DiscreteDomain by copies and merge of domains.
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
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 DiscreteDomain restrict_with(DiscreteDomain< ODims... > const &) 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 auto begin() const
KOKKOS_FUNCTION constexpr DiscreteDomain remove(discrete_vector_type n1, discrete_vector_type n2) 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_FUNCTION constexpr DiscreteDomain(DDoms const &... domains)
Construct a DiscreteDomain by copies and merge of domains.
KOKKOS_DEFAULTED_FUNCTION DiscreteDomain & operator=(DiscreteDomain &&x)=default
KOKKOS_FUNCTION constexpr DiscreteDomain remove_first(discrete_vector_type n) const
KOKKOS_FUNCTION constexpr bool operator==(DiscreteDomain< ODims... > const &other) const
KOKKOS_FUNCTION auto cbegin() const
KOKKOS_FUNCTION auto end() const
KOKKOS_FUNCTION constexpr DiscreteDomain take_first(discrete_vector_type n) const
KOKKOS_DEFAULTED_FUNCTION ~DiscreteDomain()=default
KOKKOS_FUNCTION auto cend() const
KOKKOS_FUNCTION constexpr decltype(auto) operator[](std::size_t n) const
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_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_FUNCTION constexpr decltype(auto) operator[](std::size_t n)
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteElement()=default
KOKKOS_FUNCTION constexpr bool operator!=(DiscreteVector< OTags... > const &rhs) const noexcept
KOKKOS_DEFAULTED_FUNCTION constexpr DiscreteVector()=default
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)
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)