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

Function all_eq

experiments/python/utils.py:71–76  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

69
70
71def all_eq(x, y):
72 if len(x) != len(y):
73 return False
74 if len(x) == 0:
75 return True
76 return np.max(np.abs(x - y)) < .001
77
78
79def top_k_idxs(elements, k, smaller_better=True, axis=-1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected