MCPcopy Create free account
hub / github.com/activeloopai/deeplake / get

Method get

cpp/nd/impl/stacked_array.hpp:227–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 }
226
227 array get(int64_t index) const
228 {
229 auto it = std::ranges::upper_bound(offsets_, index) - 1;
230 ASSERT(it != offsets_.end());
231 const auto b = *it;
232 const auto c = std::distance(offsets_.begin(), it);
233 return a_[c][index - b];
234 }
235
236protected:
237 friend class iterator;

Callers

nothing calls this directly

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected