MCPcopy Create free account
hub / github.com/cosdata/cosdata / len

Method len

src/models/atomic_array.rs:57–64  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 pub fn len(&self) -> usize {
58 for i in 0..N {
59 if self.items[i].load(Ordering::SeqCst).is_null() {
60 return i;
61 }
62 }
63 N
64 }
65
66 pub fn last(&self) -> Option<*mut T> {
67 for i in (0..N).rev() {

Callers 15

cosine_similarity_newFunction · 0.45
quantize_to_u32_bitsFunction · 0.45
project_vector_to_xFunction · 0.45
make_indexFunction · 0.45
update_centroidMethod · 0.45
sum_all_centroidsMethod · 0.45
insert_vectorMethod · 0.45
update_resultsFunction · 0.45
exhaustive_searchFunction · 0.45
kmeans_scalarFunction · 0.45

Calls 1

loadMethod · 0.80

Tested by 1

assert_eqMethod · 0.36