(x, y)
| 69 | |
| 70 | |
| 71 | def 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 | |
| 79 | def top_k_idxs(elements, k, smaller_better=True, axis=-1): |
nothing calls this directly
no outgoing calls
no test coverage detected