Template Function Pennylane::LightningKokkos::Util::view2vector

Function Documentation

template<typename T>
inline auto Pennylane::LightningKokkos::Util::view2vector(const Kokkos::View<T*> view) -> std::vector<T>

Copy the content of a Kokkos view to an std::vector.

Template Parameters

T – View data type.

Parameters

view – Kokkos view.

Returns

std::vector<T> containing a copy of the view.