MCPcopy Create free account
hub / github.com/alibaba/zvec / get_vector

Method get_vector

tests/core/interface/index_interface_test.cc:4558–4560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4556 TestVectorSource(const float *base, uint32_t dim) : base_(base), dim_(dim) {}
4557
4558 const void *get_vector(uint32_t node_id) const override {
4559 return base_ + static_cast<size_t>(node_id) * dim_;
4560 }
4561
4562 private:
4563 const float *base_;

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected