MCPcopy Create free account
hub / github.com/dblalock/bolt / dists_l1

Function dists_l1

experiments/python/utils.py:47–49  ·  view source on GitHub ↗
(X, q)

Source from the content-addressed store, hash-verified

45
46
47def dists_l1(X, q):
48 diffs = np.abs(X - q)
49 return np.sum(diffs, axis=-1)
50
51
52def sq_dists_to_vectors(X, queries, rowNorms=None, queryNorms=None):

Callers

nothing calls this directly

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected