Template Function parrot::array(const std::vector<T>&)#

Function Documentation#

template<typename T>
auto parrot::array(const std::vector<T> &host_vec)#

Create a fusion_array from a std::vector.

Template Parameters:

T – The element type of the vector

Parameters:

host_vec – The host vector to copy data from

Returns:

A fusion_array containing the vector’s data on the device