Commit 07d7dfd
committed
docs(embedded): drop numpy version pin in init comment, document argpartition pivot
- src/lib.rs: the explanation of why the pymodule fn does not call a
NumPy initializer no longer mentions a specific numpy crate line.
The numpy crate has held the same lazy-import policy across 0.23
and 0.24, and that note was already stale when the crate dependency
moved to 0.24 in the previous round.
- tests/unit/test_hnsw.py: `_brute_force_topk` gains an inline note
documenting numpy's argpartition pivot semantics — the `k` argument
is a pivot index, not an off-by-one. Verified empirically against
np.argsort on random vectors. Heads off the recurring "should be
k-1" review suggestion.1 parent e0cc001 commit 07d7dfd
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
0 commit comments