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

Function match_fn

dd.py:816–822  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

814 cache = {}
815
816 def match_fn(name: str) -> list[tuple[gm.Point, ...]]:
817 if name in cache:
818 return cache[name]
819
820 result = list(match_all(name, graph))
821 cache[name] = result
822 return result
823
824 return match_fn
825

Callers

nothing calls this directly

Calls 1

match_allFunction · 0.85

Tested by

no test coverage detected