Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ n_cells
Method
n_cells
nodedb-vector/src/ivf.rs:216–218 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
214
}
215
216
pub fn n_cells(&self) -> usize {
217
self.centroids.len()
218
}
219
}
220
221
fn kmeans_centroids(data: &[&[f32]], dim: usize, k: usize, max_iter: usize) -> Vec<Vec<f32>> {
Callers
1
ivf_insert
Method · 0.80
Calls
1
len
Method · 0.45
Tested by
no test coverage detected