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.
api/function_UtilKokkos_8hpp_1aa2fe10ff0289dc2a719d8b619e121a12
Download Python script
Download Notebook
View on GitHub