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

Method replace

src/ailego/container/vector_array.h:274–281  ·  view source on GitHub ↗

Replace a vector

Source from the content-addressed store, hash-verified

272
273 //! Replace a vector
274 void replace(size_t index, const StoreType *vec, size_t dim) {
275 if (ailego_unlikely(dim != dimension_)) {
276 throw std::length_error("Unmatched dimension");
277 }
278 size_t element_size = (dim >> 1);
279 buffer_.replace(index * element_size, element_size,
280 reinterpret_cast<const char *>(vec), element_size);
281 }
282
283 //! Replace a vector
284 void replace(size_t index, const StoreType *vec, size_t dim, size_t cnt) {

Callers 6

wrapperFunction · 0.45
get_vectorMethod · 0.45
replaceMethod · 0.45
replaceMethod · 0.45
string_replaceMethod · 0.45
TESTFunction · 0.45

Calls 2

dataMethod · 0.45
dimensionMethod · 0.45

Tested by 2

wrapperFunction · 0.36
TESTFunction · 0.36