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

Method replace

src/ailego/container/vector_array.h:436–443  ·  view source on GitHub ↗

Replace a vector

Source from the content-addressed store, hash-verified

434
435 //! Replace a vector
436 void replace(size_t index, const ValueType *vec, size_t dim) {
437 if (ailego_unlikely(dim != dimension_)) {
438 throw std::length_error("Unmatched dimension");
439 }
440 size_t element_size = (dim >> 3);
441 buffer_.replace(index * element_size, element_size,
442 reinterpret_cast<const char *>(vec), element_size);
443 }
444
445 //! Replace a vector
446 void replace(size_t index, const ValueType *vec, size_t dim, size_t cnt) {

Callers

nothing calls this directly

Calls 3

replaceMethod · 0.45
dataMethod · 0.45
dimensionMethod · 0.45

Tested by

no test coverage detected