| 127 | |
| 128 | template <typename T> |
| 129 | void HostDeviceVector<T>::Copy(const HostDeviceVector<T>& other) { |
| 130 | CHECK_EQ(Size(), other.Size()); |
| 131 | std::copy(other.HostVector().begin(), other.HostVector().end(), HostVector().begin()); |
| 132 | } |
| 133 | |
| 134 | template <typename T> |
| 135 | void HostDeviceVector<T>::Copy(const std::vector<T>& other) { |