Template Function Pennylane::LightningKokkos::Util::pointer2view¶
Defined in File UtilKokkos.hpp
Function Documentation¶
-
template<typename T>
inline auto Pennylane::LightningKokkos::Util::pointer2view(const T *vec, const std::size_t num) -> Kokkos::View<T*>¶ Copy the content of a pointer to a Kokkos view.
- Template Parameters
T – Pointer data type.
- Parameters
vec – Pointer.
- Returns
Kokkos view pointing to a copy of the pointer.
api/function_UtilKokkos_8hpp_1a0e4a6d1d4763a0d39ae99fba3b5b37d0
Download Python script
Download Notebook
View on GitHub