Template Function Pennylane::LightningKokkos::Util::vector2view
Function Documentation
-
template<typename T>
inline auto Pennylane::LightningKokkos::Util::vector2view(const std::vector<T> &vec) -> Kokkos::View<T*>
Copy the content of an std::vector
to a Kokkos view.
- Template Parameters
T – Vector data type.
- Parameters
vec – Vector.
- Returns
Kokkos view pointing to a copy of the vector.
api/function_UtilKokkos_8hpp_1aa2fe10ff0289dc2a719d8b619e121a12