template<typename ValueType>
class cusp::counting_array< ValueType >
Specialized array1d_view wrapping thrust::counting_iterator.
- Template Parameters
-
ValueType | counting array element type. |
- Overview
- The
counting_array
view is a simple wrapper around thrust::counting_iterator.
- See Also
- http://thrust.github.io/doc/classthrust_1_1counting__iterator.html
- Example
-
Definition at line 562 of file array1d.h.
#include <array1d.h>
template<typename ValueType>
This constructor creates a counting_array with a given size starting from a given initial value
- Parameters
-
size | The number of entries |
init | The initial starting index to start counting |
Definition at line 581 of file array1d.h.