MCPcopy Create free account
hub / github.com/Singular/Singular / canonical

Method canonical

Singular/dyn_modules/python/util.py:37–40  ·  view source on GitHub ↗
(self,var)

Source from the content-addressed store, hash-verified

35 def __init__(self):
36 self.mydict={}
37 def canonical(self,var):
38 while var in self.mydict:
39 var=self.mydict[var]
40 return var
41 def isCanonical(self,var):
42 if self.canonical(var)==var:
43 return True

Callers 4

isCanonicalMethod · 0.95
rewriteMethod · 0.95
__getitem__Method · 0.95
symm.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected