Function parrot::range#

Function Documentation#

inline auto parrot::range(int end) -> fusion_array<thrust::counting_iterator<int>>#

Create a 1-indexed range array from 1 to n.

Parameters:

end – The upper bound of the range (inclusive)

Throws:

std::invalid_argument – if end <= 0

Returns:

A fusion_array containing integers from 1 to end