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

Method findRange

src/util/shared_array_inl.h:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168template <typename V>
169SizeR SArray<V>::findRange (const Range<V>& bound) const {
170 if (empty()) return SizeR(0,0);
171 CHECK(bound.valid());
172 auto lb = std::lower_bound(begin(), end(), bound.begin());
173 auto ub = std::lower_bound(begin(), end(), bound.end());
174 return SizeR(lb - begin(), ub - begin());
175}
176
177template <typename V>
178bool SArray<V>::readFromFile(SizeR range, const string& file_name) {

Callers 6

TESTFunction · 0.80
setValueMethod · 0.80
findMethod · 0.80
setValueMethod · 0.80
findMethod · 0.80
parallelOrderedMatchFunction · 0.80

Calls 3

validMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64