Template Function Pennylane::LightningKokkos::Util::view2vector¶
Defined in File UtilKokkos.hpp
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.
api/function_UtilKokkos_8hpp_1a4b9efa828b7287ccd0369b15c2bde4a1
Download Python script
Download Notebook
View on GitHub