44#ifndef TPETRA_KOKKOS_REFACTOR_DETAILS_MULTI_VECTOR_LOCAL_DEEP_COPY_HPP
45#define TPETRA_KOKKOS_REFACTOR_DETAILS_MULTI_VECTOR_LOCAL_DEEP_COPY_HPP
47#include "Kokkos_Core.hpp"
55template<
class DstViewType,
class SrcViewType>
67 reinterpret_cast<ptrdiff_t> (dst.data () + dst.span ());
70 reinterpret_cast<ptrdiff_t> (src.data () + src.span ());
86 auto src_copy = Kokkos::create_mirror (Kokkos::HostSpace (), src);
142 using Kokkos::subview;
143 using size_type =
typename DstViewType::size_type;
152 for (size_type
j = 0;
j < numCols; ++
j) {
Declare and define Tpetra::Details::copyConvert, an implementation detail of Tpetra (in particular,...
Struct that holds views of the contents of a CrsMatrix.
Implementation details of Tpetra.
void localDeepCopyConstStride(const DstViewType &dst, const SrcViewType &src)
Implementation of Tpetra::MultiVector deep copy of local data, for when both the source and destinati...
void copyConvert(const OutputViewType &dst, const InputViewType &src)
Copy values from the 1-D Kokkos::View src, to the 1-D Kokkos::View dst, of the same length....
void localDeepCopy(const DstViewType &dst, const SrcViewType &src, const bool dstConstStride, const bool srcConstStride, const DstWhichVecsType &dstWhichVecs, const SrcWhichVecsType &srcWhichVecs)
Implementation of Tpetra::MultiVector deep copy of local data.
Namespace Tpetra contains the class and methods constituting the Tpetra library.