Specialized array1d_view wrapping thrust::constant_iterator.
ValueType | constant array element type. |
constant_array
view is a simple wrapper around constant_iterator. #include <array1d.h>
Public Methods | |
constant_array (size_type size, ValueType value) | |
Public Methods inherited from cusp::array1d_view< thrust::constant_iterator< ValueType > > | |
array1d_view (void) | |
array1d_view (ArrayType &v) | |
array1d_view (InputIterator begin, InputIterator end) | |
array1d_view & | operator= (const array1d_view &v) |
reference | front (void) const |
reference | back (void) const |
reference | operator[] (size_type n) const |
Subscript access to the data contained in this array1d_view . More... | |
iterator | begin (void) const |
iterator | end (void) const |
size_type | size (void) const |
size_type | capacity (void) const |
void | resize (size_type new_size) |
Resizes this array1d_view to the specified number of elements. More... | |
view | subarray (size_type start_index, size_type num_entries) |
void | swap (array1d_view &v) |
Additional Inherited Members | |
Protected Members inherited from cusp::array1d_view< thrust::constant_iterator< ValueType > > | |
size_type | m_size |
size_type | m_capacity |
|
inline |
This constructor creates a constant_array with a given size starting and value
size | The number of entries. |
value | The constant value to repeat. |