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

Method replace

src/ailego/container/vector_array.h:451–458  ·  view source on GitHub ↗

Replace a vector

Source from the content-addressed store, hash-verified

449
450 //! Replace a vector
451 void replace(size_t index, const ValueType *vec, size_t dim) {
452 if (ailego_unlikely(dim != dimension_)) {
453 throw std::length_error("Unmatched dimension");
454 }
455 size_t element_size = (dim >> 3);
456 buffer_.replace(index * element_size, element_size,
457 reinterpret_cast<const char *>(vec), element_size);
458 }
459
460 //! Replace a vector
461 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