22 :
public Tensor<ElementType, DomainType, LayoutStridedPolicy, MemorySpace>
28 KOKKOS_FUNCTION
void rebind_to_owned_storage(DomainType
const& domain)
30 static_cast<Base&
>(*this)
31 =
Base(ddc::ChunkSpan<
35 MemorySpace>(m_storage.data(), domain));
43 , m_storage(std::move(storage))
45 rebind_to_owned_storage(tensor.domain());
49 :
Base(static_cast<
Base const&>(other))
50 , m_storage(other.m_storage)
52 rebind_to_owned_storage(other.domain());
57 , m_storage(std::move(other.m_storage))
59 rebind_to_owned_storage(other.domain());
64 m_storage = other.m_storage;
65 rebind_to_owned_storage(other.domain());
71 m_storage = std::move(other.m_storage);
72 rebind_to_owned_storage(other.domain());
76 KOKKOS_FUNCTION Storage&
storage() noexcept
81 KOKKOS_FUNCTION Storage
const&
storage() const noexcept
KOKKOS_FUNCTION OwningTensor & operator=(OwningTensor const &other)
KOKKOS_FUNCTION OwningTensor & operator=(OwningTensor &&other)
KOKKOS_FUNCTION OwningTensor(Base const &tensor, Storage &&storage)
KOKKOS_FUNCTION Storage const & storage() const noexcept
KOKKOS_FUNCTION OwningTensor(OwningTensor const &other)