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.