|
ViennaCL - The Vienna Computing Library
1.5.1
|
Helper class implementing an array on the host. Default case: No conversion necessary. More...
#include <util.hpp>
Public Member Functions | |
| typesafe_host_array () | |
| typesafe_host_array (mem_handle const &handle, vcl_size_t num=0) | |
| ~typesafe_host_array () | |
| void | raw_resize (mem_handle const &, vcl_size_t num) |
| Resize without initializing the new memory. | |
| void | resize (mem_handle const &handle, vcl_size_t num) |
| Resize including initialization of new memory (cf. std::vector<>) | |
| template<typename U > | |
| void | set (vcl_size_t index, U value) |
| void * | get () |
| cpu_type | operator[] (vcl_size_t index) const |
| vcl_size_t | raw_size () const |
| vcl_size_t | element_size () const |
| vcl_size_t | size () const |
Helper class implementing an array on the host. Default case: No conversion necessary.
| typesafe_host_array | ( | ) | [inline, explicit] |
| typesafe_host_array | ( | mem_handle const & | handle, |
| vcl_size_t | num = 0 |
||
| ) | [inline, explicit] |
| ~typesafe_host_array | ( | ) | [inline] |
| vcl_size_t element_size | ( | ) | const [inline] |
| void* get | ( | ) | [inline] |
| cpu_type operator[] | ( | vcl_size_t | index | ) | const [inline] |
| void raw_resize | ( | mem_handle const & | , |
| vcl_size_t | num | ||
| ) | [inline] |
Resize without initializing the new memory.
| vcl_size_t raw_size | ( | ) | const [inline] |
| void resize | ( | mem_handle const & | handle, |
| vcl_size_t | num | ||
| ) | [inline] |
Resize including initialization of new memory (cf. std::vector<>)
| void set | ( | vcl_size_t | index, |
| U | value | ||
| ) | [inline] |
| vcl_size_t size | ( | ) | const [inline] |
1.7.6.1