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

Method modulo

ar.py:599–605  ·  view source on GitHub ↗
(self, e: dict[str, float])

Source from the content-addressed store, hash-verified

597 self.pi = self.const
598
599 def modulo(self, e: dict[str, float]) -> dict[str, float]:
600 e = strip(e)
601 if self.pi not in e:
602 return super().modulo(e)
603
604 e[self.pi] = e[self.pi] % 1
605 return strip(e)
606
607 def add_para(
608 self, d1: gm.Direction, d2: gm.Direction, dep: pr.Dependency

Callers

nothing calls this directly

Calls 2

stripFunction · 0.85
moduloMethod · 0.45

Tested by

no test coverage detected