Updated comments [skip ci]

This commit is contained in:
Andrew Kane
2023-08-21 22:51:24 -07:00
parent 4600979504
commit bace0891bd
2 changed files with 4 additions and 1 deletions

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 */

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)