Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
def
dists_l1(X, q):
48
diffs = np.abs(X - q)
49
return
np.sum(diffs, axis=-1)
50
51
52
def
sq_dists_to_vectors(X, queries, rowNorms=None, queryNorms=None):
Callers
nothing calls this directly
Calls
1
sum
Method · 0.45
Tested by
no test coverage detected