Medial Code Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions
xgboost::HostDeviceVector< T > Class Template Reference

Public Types

using value_type = T
 

Public Member Functions

 HostDeviceVector (size_t size=0, T v=T(), int device=-1)
 
 HostDeviceVector (std::initializer_list< T > init, int device=-1)
 
 HostDeviceVector (const std::vector< T > &init, int device=-1)
 
 HostDeviceVector (const HostDeviceVector< T > &)=delete
 
 HostDeviceVector (HostDeviceVector< T > &&)
 
HostDeviceVector< T > & operator= (const HostDeviceVector< T > &)=delete
 
HostDeviceVector< T > & operator= (HostDeviceVector< T > &&)
 
bool Empty () const
 
size_t Size () const
 
int DeviceIdx () const
 
common::Span< T > DeviceSpan ()
 
common::Span< const T > ConstDeviceSpan () const
 
common::Span< const T > DeviceSpan () const
 
T * DevicePointer ()
 
const T * ConstDevicePointer () const
 
const T * DevicePointer () const
 
T * HostPointer ()
 
common::Span< T > HostSpan ()
 
common::Span< T const > HostSpan () const
 
common::Span< T const > ConstHostSpan () const
 
const T * ConstHostPointer () const
 
const T * HostPointer () const
 
void Fill (T v)
 
void Copy (const HostDeviceVector< T > &other)
 
void Copy (const std::vector< T > &other)
 
void Copy (std::initializer_list< T > other)
 
void Extend (const HostDeviceVector< T > &other)
 
std::vector< T > & HostVector ()
 
const std::vector< T > & ConstHostVector () const
 
const std::vector< T > & HostVector () const
 
bool HostCanRead () const
 
bool HostCanWrite () const
 
bool DeviceCanRead () const
 
bool DeviceCanWrite () const
 
GPUAccess DeviceAccess () const
 
void SetDevice (int device) const
 
void SetDevice (DeviceOrd device) const
 
void Resize (size_t new_size, T v=T())
 

The documentation for this class was generated from the following files: