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

Method count

src/ailego/container/vector_array.h:180–183  ·  view source on GitHub ↗

Retrieve count of vectors

Source from the content-addressed store, hash-verified

178
179 //! Retrieve count of vectors
180 size_t count(void) const {
181 return (dimension_ > 0 ? buffer_.size() / (dimension_ * sizeof(ValueType))
182 : 0u);
183 }
184
185 //! Retrieve dimension of vector
186 size_t dimension(void) const {

Callers 1

atMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected