Public Member Functions | |
Data () | |
Data (size_t n) | |
~Data () | |
T * | data () |
const T * | data () const |
void | resize (size_t n) |
Private Member Functions | |
void | free_dev_ptr () |
void | alloc (size_t n) |
Private Attributes | |
T * | dev_ptr |
cublas::Data< T >::Data | ( | ) | [inline] |
cublas::Data< T >::Data | ( | size_t | n | ) | [inline] |
References cublas::Data< T >::alloc().
cublas::Data< T >::~Data | ( | ) | [inline] |
References cublas::Data< T >::free_dev_ptr().
T* cublas::Data< T >::data | ( | ) | [inline] |
References cublas::Data< T >::dev_ptr.
const T* cublas::Data< T >::data | ( | ) | const [inline] |
References cublas::Data< T >::dev_ptr.
void cublas::Data< T >::resize | ( | size_t | n | ) | [inline] |
References cublas::Data< T >::alloc(), and cublas::Data< T >::free_dev_ptr().
void cublas::Data< T >::free_dev_ptr | ( | ) | [inline, private] |
References cublas::check_status(), and cublas::Data< T >::dev_ptr.
Referenced by cublas::Data< T >::resize(), and cublas::Data< T >::~Data().
void cublas::Data< T >::alloc | ( | size_t | n | ) | [inline, private] |
References cublas::check_status(), and cublas::Data< T >::dev_ptr.
Referenced by cublas::Data< T >::Data(), and cublas::Data< T >::resize().
T* cublas::Data< T >::dev_ptr [private] |
Referenced by cublas::Data< T >::alloc(), cublas::Data< T >::data(), and cublas::Data< T >::free_dev_ptr().