MCPcopy Create free account
hub / github.com/dmlc/xgboost / Copy

Method Copy

src/common/host_device_vector.cc:129–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128template <typename T>
129void 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
134template <typename T>
135void HostDeviceVector<T>::Copy(const std::vector<T>& other) {

Callers 2

CopyCatContainerFunction · 0.45
InitMethod · 0.45

Calls 5

SizeFunction · 0.85
SizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected