template<typename ValueType>
class cusp::constant_array< ValueType >
Specialized array1d_view wrapping thrust::constant_iterator.
- Template Parameters
-
ValueType | constant array element type. |
- Overview
- The
constant_array
view is a simple wrapper around constant_iterator.
- See Also
- http://thrust.github.io/doc/classthrust_1_1constant__iterator.html
- Example
-
Definition at line 612 of file array1d.h.
#include <array1d.h>
template<typename ValueType>
This constructor creates a constant_array with a given size starting and value
- Parameters
-
size | The number of entries. |
value | The constant value to repeat. |
Definition at line 631 of file array1d.h.