| xgboost | 
#include <host_device_vector.h>

| 公共类型 | |
| 使用 | value_type = T | 
| 公共成员函数 | |
| HostDeviceVector (size_t size=0, T v=T(), DeviceOrd device=DeviceOrd::CPU()) | |
| HostDeviceVector (std::initializer_list< T > init, DeviceOrd device=DeviceOrd::CPU()) | |
| HostDeviceVector (const std::vector< T > &init, DeviceOrd device=DeviceOrd::CPU()) | |
| ~HostDeviceVector () | |
| HostDeviceVector (const HostDeviceVector< T > &)=delete | |
| HostDeviceVector (HostDeviceVector< T > &&) | |
| HostDeviceVector< T > & | operator= (const HostDeviceVector< T > &)=delete | 
| HostDeviceVector< T > & | operator= (HostDeviceVector< T > &&) | 
| bool | Empty () const | 
| std::size_t | Size () const | 
| std::size_t | SizeBytes () const | 
| DeviceOrd | Device () 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 (DeviceOrd device) const | 
| void | Resize (std::size_t new_size) | 
| void | Resize (std::size_t new_size, T v) | 
| 如果新大小大于旧大小,则调整大小并初始化数据。更多... | |
| 使用 xgboost::HostDeviceVector< T >::value_type = T | 
| 
 | explicit | 
| xgboost::HostDeviceVector< T >::HostDeviceVector | ( | std::initializer_list< T > | init, | 
| DeviceOrd | device = DeviceOrd::CPU() | ||
| ) | 
| 
 | explicit | 
| xgboost::HostDeviceVector< T >::~HostDeviceVector | ( | ) | 
| 
 | 删除 | 
| xgboost::HostDeviceVector< T >::HostDeviceVector | ( | HostDeviceVector< T > && | ) | 
| const T* xgboost::HostDeviceVector< T >::ConstDevicePointer | ( | ) | const | 
| common::Span<const T> xgboost::HostDeviceVector< T >::ConstDeviceSpan | ( | ) | const | 
| 
 | inline | 
| 
 | inline | 
| const std::vector<T>& xgboost::HostDeviceVector< T >::ConstHostVector | ( | ) | const | 
| void xgboost::HostDeviceVector< T >::Copy | ( | const HostDeviceVector< T > & | 其他 | ) | 
| void xgboost::HostDeviceVector< T >::Copy | ( | const std::vector< T > & | 其他 | ) | 
| void xgboost::HostDeviceVector< T >::Copy | ( | std::initializer_list< T > | 其他 | ) | 
| DeviceOrd xgboost::HostDeviceVector< T >::Device | ( | ) | const | 
| GPUAccess xgboost::HostDeviceVector< T >::DeviceAccess | ( | ) | const | 
| bool xgboost::HostDeviceVector< T >::DeviceCanRead | ( | ) | const | 
| bool xgboost::HostDeviceVector< T >::DeviceCanWrite | ( | ) | const | 
| T* xgboost::HostDeviceVector< T >::DevicePointer | ( | ) | 
| 
 | inline | 
| common::Span<T> xgboost::HostDeviceVector< T >::DeviceSpan | ( | ) | 
| 
 | inline | 
| 
 | inline | 
| void xgboost::HostDeviceVector< T >::Extend | ( | const HostDeviceVector< T > & | 其他 | ) | 
| void xgboost::HostDeviceVector< T >::Fill | ( | T | v | ) | 
| bool xgboost::HostDeviceVector< T >::HostCanRead | ( | ) | const | 
| bool xgboost::HostDeviceVector< T >::HostCanWrite | ( | ) | const | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| std::vector<T>& xgboost::HostDeviceVector< T >::HostVector | ( | ) | 
| 
 | inline | 
| 
 | 删除 | 
| HostDeviceVector<T>& xgboost::HostDeviceVector< T >::operator= | ( | HostDeviceVector< T > && | ) | 
| void xgboost::HostDeviceVector< T >::Resize | ( | std::size_t | new_size | ) | 
| void xgboost::HostDeviceVector< T >::Resize | ( | std::size_t | new_size, | 
| T | v | ||
| ) | 
如果新大小大于旧大小,则调整大小并初始化数据。
| void xgboost::HostDeviceVector< T >::SetDevice | ( | DeviceOrd | device | ) | const | 
| std::size_t xgboost::HostDeviceVector< T >::Size | ( | ) | const | 
| 
 | inline |