Updated comments [skip ci]

This commit is contained in:
Andrew Kane
2023-08-21 22:51:24 -07:00
parent a8fac26f30
commit 1811f32712
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -75,7 +75,10 @@
#define HnswIsElementTuple(tup) ((tup)->type == HNSW_ELEMENT_TUPLE_TYPE)
#define HnswIsNeighborTuple(tup) ((tup)->type == HNSW_NEIGHBOR_TUPLE_TYPE)
/* 2 * M connections for ground layer */
#define HnswGetLayerM(m, layer) (layer == 0 ? m * 2 : m)
/* Optimal ML from paper */
#define HnswGetMl(m) (1 / log(m))
/* Ensure fits in uint8 */
+1 -1
View File
@@ -7,7 +7,7 @@
#include "vector.h"
/*
* Get the number of connection in the index
* Get the max number of connections in an upper layer for each element in the index
*/
int
HnswGetM(Relation index)