Basic 1D and 2D containers that wrap existing data or iterators. More...
Classes | |
| class | cusp::array1d_view< RandomAccessIterator > |
| The array1d_view class is a 1D vector container that wraps data from various iterators in a array1d datatype. More... | |
| class | cusp::counting_array< ValueType > |
| Specialized array1d_view wrapping thrust::counting_iterator. More... | |
| class | cusp::constant_array< ValueType > |
| Specialized array1d_view wrapping thrust::constant_iterator. More... | |
| class | cusp::random_array< ValueType > |
| Specialized array1d_view wrapping cusp::random_iterator. More... | |
| class | cusp::array2d_view< ArrayView, Orientation > |
| The array2d_view is a view of a array2d container. More... | |
Functions | |
| template<typename Iterator > | |
| array1d_view< Iterator > | cusp::make_array1d_view (Iterator first, Iterator last) |
| template<typename T , typename MemorySpace > | |
| array1d< T, MemorySpace >::view | cusp::make_array1d_view (array1d< T, MemorySpace > &v) |
| template<typename Iterator > | |
| array1d_view< Iterator >::view | cusp::make_array1d_view (array1d_view< Iterator > &v) |
| template<typename Iterator > | |
| array1d_view< Iterator >::view | cusp::make_array1d_view (const array1d_view< Iterator > &v) |
| template<typename T , typename MemorySpace > | |
| array1d< T, MemorySpace > ::const_view | cusp::make_array1d_view (const array1d< T, MemorySpace > &v) |
| template<typename Iterator , typename Orientation > | |
| array2d_view< typename cusp::array1d_view< Iterator > , Orientation > | cusp::make_array2d_view (size_t num_rows, size_t num_cols, size_t pitch, const cusp::array1d_view< Iterator > &values, Orientation) |
| template<typename Array , typename Orientation > | |
| array2d_view< Array, Orientation > | cusp::make_array2d_view (const array2d_view< Array, Orientation > &v) |
| template<typename T , class MemorySpace , class Orientation > | |
| array2d_view< typename cusp::array1d_view< typename cusp::array1d< T, MemorySpace > ::iterator >, Orientation > | cusp::make_array2d_view (cusp::array2d< T, MemorySpace, Orientation > &v) |
| template<typename T , class MemorySpace , class Orientation > | |
| array2d_view< typename cusp::array1d_view< typename cusp::array1d< T, MemorySpace > ::const_iterator > , Orientation > | cusp::make_array2d_view (const cusp::array2d< T, MemorySpace, Orientation > &v) |
| array1d_view<Iterator> cusp::make_array1d_view | ( | Iterator | first, |
| Iterator | last | ||
| ) |
This is a convenience function for generating an array1d_view using iterators
| Iterator | iterator type of copy elements |
| first | The beginning of the range. |
| last | The end of the range. |
array1d_view constructed using Iterator | array1d<T,MemorySpace>::view cusp::make_array1d_view | ( | array1d< T, MemorySpace > & | v | ) |
This is a convenience function for generating an array1d_view using an array1d
| T | value_type of the array |
| MemorySpace | memory space of the array (cusp::host_memory or cusp::device_memory) |
| v | The array1d used to construct array1d_view |
array1d_view constructed using input array1d | array1d_view<Iterator>::view cusp::make_array1d_view | ( | array1d_view< Iterator > & | v | ) |
This is a convenience function for generating an array1d_view using a array1d_view
| Iterator | iterator of the array1d_view |
| v | The array1d_view used to construct array1d_view |
| array1d_view<Iterator>::view cusp::make_array1d_view | ( | const array1d_view< Iterator > & | v | ) |
This is a convenience function for generating an array1d_view using a const array1d_view
| Iterator | iterator of the array1d_view |
| v | The array1d_view used to construct array1d_view |
| array1d<T,MemorySpace>::const_view cusp::make_array1d_view | ( | const array1d< T, MemorySpace > & | v | ) |
This is a convenience function for generating an array1d_view using an array1d
| T | value_type of the array |
| MemorySpace | memory space of the array (cusp::host_memory or cusp::device_memory) |
| v | The array1d used to construct array1d_view |
array1d_view constructed using input array1d | array2d_view<typename cusp::array1d_view<Iterator>,Orientation> cusp::make_array2d_view | ( | size_t | num_rows, |
| size_t | num_cols, | ||
| size_t | pitch, | ||
| const cusp::array1d_view< Iterator > & | values, | ||
| Orientation | |||
| ) |
This is a convenience function for generating an array2d_view using specified shape and values
| Iterator | array1d_view iterator used to construct array2d_view |
| Orientation | orientation of the array (cusp::row_major or cusp::column_major) |
| num_rows | The number of array2d_view rows. |
| num_cols | The number of array2d_view columns. |
| pitch | The stride between entries in the major dimension. |
| values | array1d_view containing this array2d_view's values. |
| array2d_view<Array,Orientation> cusp::make_array2d_view | ( | const array2d_view< Array, Orientation > & | v | ) |
This is a convenience function for generating an array2d_view using an array2d_view
| Array | Type of input array containing values |
| Orientation | orientation of the array (cusp::row_major or cusp::column_major) |
| v | The array2d_view used to construct array2d_view |
| array2d_view<typename cusp::array1d_view<typename cusp::array1d<T,MemorySpace>::iterator>, Orientation> cusp::make_array2d_view | ( | cusp::array2d< T, MemorySpace, Orientation > & | v | ) |
This is a convenience function for generating an array2d_view using an array2d_view
| T | value_type of the array |
| MemorySpace | memory space of the array (cusp::host_memory or cusp::device_memory) |
| Orientation | orientation of the array (cusp::row_major or cusp::column_major) |
| v | The array2d used to construct array2d_view |
| array2d_view<typename cusp::array1d_view<typename cusp::array1d<T,MemorySpace>::const_iterator>, Orientation> cusp::make_array2d_view | ( | const cusp::array2d< T, MemorySpace, Orientation > & | v | ) |
This is a convenience function for generating an array2d_view using an array2d
| T | value_type of the array |
| MemorySpace | memory space of the array (cusp::host_memory or cusp::device_memory) |
| Orientation | orientation of the array (cusp::row_major or cusp::column_major) |
| v | The const array2d used to construct array2d_view |
1.8.6