Template Function Pennylane::LightningKokkos::Util::vector2view¶
Defined in File UtilKokkos.hpp
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::vectorto a Kokkos view.- Template Parameters:
T – Vector data type.
- Parameters:
vec – Vector.
- Returns:
Kokkos view pointing to a copy of the vector.