|
KOKKOS_DEFAULTED_FUNCTION constexpr | ChunkSpan ()=default |
| Empty ChunkSpan.
|
|
KOKKOS_DEFAULTED_FUNCTION constexpr | ChunkSpan (ChunkSpan const &other)=default |
| Constructs a new ChunkSpan by copy, yields a new view to the same data.
|
|
KOKKOS_DEFAULTED_FUNCTION constexpr | ChunkSpan (ChunkSpan &&other)=default |
| Constructs a new ChunkSpan by move.
|
|
template<class OElementType , class Allocator , class = std::enable_if_t<std::is_same_v<typename Allocator::memory_space, MemorySpace>>> |
KOKKOS_FUNCTION constexpr | ChunkSpan (Chunk< OElementType, mdomain_type, Allocator > &other) noexcept |
| Constructs a new ChunkSpan from a Chunk, yields a new view to the same data.
|
|
template<class OElementType , class SFINAEElementType = ElementType, class = std::enable_if_t<std::is_const_v<SFINAEElementType>>, class Allocator , class = std::enable_if_t<std::is_same_v<typename Allocator::memory_space, MemorySpace>>> |
KOKKOS_FUNCTION constexpr | ChunkSpan (Chunk< OElementType, mdomain_type, Allocator > const &other) noexcept |
| Constructs a new ChunkSpan from a Chunk, yields a new view to the same data.
|
|
template<class OElementType > |
KOKKOS_FUNCTION constexpr | ChunkSpan (ChunkSpan< OElementType, mdomain_type, layout_type, MemorySpace > const &other) noexcept |
| Constructs a new ChunkSpan by copy of a chunk, yields a new view to the same data.
|
|
template<class Mapping = mapping_type, std::enable_if_t< std::is_constructible_v< Mapping, extents_type >, int > = 0> |
KOKKOS_FUNCTION constexpr | ChunkSpan (ElementType *const ptr, mdomain_type const &domain) |
| Constructs a new ChunkSpan from scratch.
|
|
KOKKOS_FUNCTION constexpr | ChunkSpan (allocation_mdspan_type allocation_mdspan, mdomain_type const &domain) |
| Constructs a new ChunkSpan from scratch.
|
|
template<class KokkosView , class = std::enable_if_t<Kokkos::is_view<KokkosView>::value>> |
KOKKOS_FUNCTION constexpr | ChunkSpan (KokkosView const &view, mdomain_type const &domain) noexcept |
| Constructs a new ChunkSpan from scratch.
|
|
KOKKOS_DEFAULTED_FUNCTION | ~ChunkSpan ()=default |
|
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkSpan & | operator= (ChunkSpan const &other)=default |
| Copy-assigns a new value to this ChunkSpan, yields a new view to the same data.
|
|
KOKKOS_DEFAULTED_FUNCTION constexpr ChunkSpan & | operator= (ChunkSpan &&other)=default |
| Move-assigns a new value to this ChunkSpan.
|
|
template<class... QueryDDims> |
KOKKOS_FUNCTION constexpr auto | operator[] (DiscreteElement< QueryDDims... > const &slice_spec) const |
| Slice out some dimensions.
|
|
template<class... QueryDDims> |
KOKKOS_FUNCTION constexpr auto | operator[] (DiscreteDomain< QueryDDims... > const &odomain) const |
| Restrict to a subdomain.
|
|
template<class... DElems> |
KOKKOS_FUNCTION constexpr reference | operator() (DElems const &... delems) const noexcept |
| Element access using a list of DiscreteElement.
|
|
KOKKOS_FUNCTION constexpr ElementType * | data_handle () const |
| Access to the underlying allocation pointer.
|
|
KOKKOS_FUNCTION constexpr allocation_mdspan_type | allocation_mdspan () const |
| Provide a mdspan on the memory allocation.
|
|
KOKKOS_FUNCTION constexpr auto | allocation_kokkos_view () const |
| Provide a mdspan on the memory allocation.
|
|
KOKKOS_FUNCTION constexpr view_type | span_cview () const |
|
KOKKOS_FUNCTION constexpr span_type | span_view () const |
|
Public Member Functions inherited from ddc::ChunkCommon< ElementType, DiscreteDomain< DDims... >, LayoutStridedPolicy > |
KOKKOS_FUNCTION constexpr accessor_type | accessor () const |
|
KOKKOS_FUNCTION constexpr DiscreteVector< DDims... > | extents () const noexcept |
|
template<class QueryDDim > |
KOKKOS_FUNCTION constexpr size_type | extent () const noexcept |
|
KOKKOS_FUNCTION constexpr size_type | size () const noexcept |
|
KOKKOS_FUNCTION constexpr mapping_type | mapping () const noexcept |
|
KOKKOS_FUNCTION constexpr bool | is_unique () const noexcept |
|
KOKKOS_FUNCTION constexpr bool | is_exhaustive () const noexcept |
|
KOKKOS_FUNCTION constexpr bool | is_strided () const noexcept |
|
template<class QueryDDim > |
KOKKOS_FUNCTION constexpr size_type | stride () const |
|
KOKKOS_FUNCTION constexpr mdomain_type | domain () const noexcept |
| Provide access to the domain on which this chunk is defined.
|
|
template<class... QueryDDims> |
KOKKOS_FUNCTION constexpr DiscreteDomain< QueryDDims... > | domain () const noexcept |
| Provide access to the domain on which this chunk is defined.
|
|
|
template<class QueryDDim , class... ODDims> |
KOKKOS_FUNCTION constexpr auto | get_slicer_for (DiscreteElement< ODDims... > const &c) const |
|
template<class QueryDDim , class... ODDims> |
KOKKOS_FUNCTION constexpr auto | get_slicer_for (DiscreteDomain< ODDims... > const &c) const |
|
Protected Member Functions inherited from ddc::ChunkCommon< ElementType, DiscreteDomain< DDims... >, LayoutStridedPolicy > |
KOKKOS_DEFAULTED_FUNCTION constexpr | ChunkCommon ()=default |
| Empty ChunkCommon.
|
|
KOKKOS_FUNCTION constexpr | ChunkCommon (internal_mdspan_type internal_mdspan, mdomain_type const &domain) noexcept |
| Constructs a new ChunkCommon from scratch.
|
|
template<class Mapping = mapping_type, std::enable_if_t< std::is_constructible_v< Mapping, extents_type >, int > = 0> |
KOKKOS_FUNCTION constexpr | ChunkCommon (ElementType *ptr, mdomain_type 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.
|
|
KOKKOS_DEFAULTED_FUNCTION constexpr | ChunkCommon (ChunkCommon &&other)=default |
| Constructs a new ChunkCommon by move.
|
|
KOKKOS_DEFAULTED_FUNCTION | ~ChunkCommon ()=default |
|
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 & | operator= (ChunkCommon &&other)=default |
| Move-assigns a new value to this ChunkCommon.
|
|
KOKKOS_FUNCTION constexpr ElementType * | data_handle () const |
| Access to the underlying allocation pointer.
|
|
KOKKOS_FUNCTION constexpr internal_mdspan_type | internal_mdspan () const |
| Provide a modifiable view of the data.
|
|
KOKKOS_FUNCTION constexpr allocation_mdspan_type | allocation_mdspan () const |
| Provide a modifiable view of the data.
|
|