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

Method get_vector

tests/core/interface/index_interface_test.cc:2124–2126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2122 TestVectorSource(const float *base, uint32_t dim) : base_(base), dim_(dim) {}
2123
2124 const void *get_vector(uint32_t node_id) const override {
2125 return base_ + static_cast<size_t>(node_id) * dim_;
2126 }
2127
2128 private:
2129 const float *base_;

Callers 7

TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected