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

Method append

src/ailego/container/vector_array.h:243–248  ·  view source on GitHub ↗

Append a vector

Source from the content-addressed store, hash-verified

241
242 //! Append a vector
243 void append(const StoreType *vec, size_t dim) {
244 if (ailego_unlikely(dim != dimension_)) {
245 throw std::length_error("Unmatched dimension");
246 }
247 buffer_.append(reinterpret_cast<const char *>(vec), dim >> 1);
248 }
249
250 //! Append vectors
251 void append(const StoreType *vec, size_t dim, size_t cnt) {

Callers 2

appendMethod · 0.45
appendMethod · 0.45

Calls 2

dataMethod · 0.45
dimensionMethod · 0.45

Tested by

no test coverage detected