24#ifndef MORPHEUS_DENSEMATRIX_COPY_IMPL_HPP
25#define MORPHEUS_DENSEMATRIX_COPY_IMPL_HPP
27#include <Morpheus_FormatTags.hpp>
29#include <impl/Morpheus_Utils.hpp>
30#include <Kokkos_Core.hpp>
35template <
typename SourceType,
typename DestinationType>
36void copy(
const SourceType& src, DestinationType& dst,
37 typename std::enable_if_t<
38 Morpheus::is_dense_matrix_format_container_v<SourceType> &&
39 Morpheus::is_dense_matrix_format_container_v<DestinationType>>* =
42 (dst.nrows() == src.nrows()) && (dst.ncols() == src.ncols()),
43 "Destination matrix must have equal shape to the source matrix");
46 Kokkos::deep_copy(dst.view(), src.const_view());
Generic Morpheus interfaces.
Definition: dummy.cpp:24