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

Function apply_derivations

dd.py:1148–1156  ·  view source on GitHub ↗
(
    g: gh.Graph, derives: dict[str, list[tuple[gm.Point, ...]]]
)

Source from the content-addressed store, hash-verified

1146
1147
1148def apply_derivations(
1149 g: gh.Graph, derives: dict[str, list[tuple[gm.Point, ...]]]
1150) -> list[pr.Dependency]:
1151 applied = []
1152 all_derives = list(derives.items())
1153 for name, args in all_derives:
1154 for arg in args:
1155 applied += g.do_algebra(name, arg)
1156 return applied

Callers 1

do_algebraFunction · 0.85

Calls 1

do_algebraMethod · 0.80

Tested by

no test coverage detected