MCPcopy Create free account
hub / github.com/dmlc/parameter_server / segment

Method segment

src/util/shared_array_inl.h:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132template <typename V>
133SArray<V> SArray<V>::segment(const Range<size_t>& range) const {
134 CHECK(range.valid());
135 CHECK_LE(range.end(), size());
136 SArray<V> result = *this;
137 result.data_ += range.begin();
138 result.size_ = range.size();
139 result.capacity_ = range.size();
140 return result;
141}
142
143template <typename V>
144void SArray<V>::copyFrom(const V* src, size_t size) {

Callers 11

TEST_FFunction · 0.80
TESTFunction · 0.80
pullAndUpdateDualMethod · 0.80
setValueMethod · 0.80
setValueMethod · 0.80
sliceKeyOrderedMsgFunction · 0.80
rowBlockMethod · 0.80
colBlockMethod · 0.80
colBlockMethod · 0.80
rowBlockMethod · 0.80

Calls 4

validMethod · 0.80
endMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TESTFunction · 0.64