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

Method append

src/ailego/container/vector_array.h:73–79  ·  view source on GitHub ↗

Append a vector

Source from the content-addressed store, hash-verified

71
72 //! Append a vector
73 void append(const ValueType *vec, size_t dim) {
74 if (ailego_unlikely(dim != dimension_)) {
75 throw std::length_error("Unmatched dimension");
76 }
77 buffer_.append(reinterpret_cast<const char *>(vec),
78 dim * sizeof(ValueType));
79 }
80
81 //! Append vectors
82 void append(const ValueType *vec, size_t dim, size_t cnt) {

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
dataMethod · 0.45
dimensionMethod · 0.45

Tested by

no test coverage detected