Template Function Pennylane::LightningKokkos::Util::pointer2view

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.