MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / pairs

Method pairs

ar.py:458–462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

456 )
457
458 def pairs(self) -> Generator[list[tuple[str, str]], None, None]:
459 for v1, v2 in perm2(list(self.v2e.keys())): # pylint: disable=g-builtin-op
460 if v1 == self.const or v2 == self.const:
461 continue
462 yield v1, v2
463
464 def modulo(self, e: dict[str, float]) -> dict[str, float]:
465 return strip(e)

Callers 1

get_all_eqsMethod · 0.95

Calls 1

perm2Function · 0.70

Tested by

no test coverage detected