MCPcopy Create free account
hub / github.com/numpy/numpy / symbols

Method symbols

numpy/f2py/symbolic.py:731–742  ·  view source on GitHub ↗

Return a set of symbols contained in self.

(self)

Source from the content-addressed store, hash-verified

729 return len(found) != 0
730
731 def symbols(self):
732 """Return a set of symbols contained in self.
733 """
734 found = set()
735
736 def visit(expr, found=found):
737 if expr.op is Op.SYMBOL:
738 found.add(expr)
739
740 self.traverse(visit)
741
742 return found
743
744 def polynomial_atoms(self):
745 """Return a set of expressions used as atoms in polynomial self.

Callers 1

analyzevarsFunction · 0.80

Calls 1

traverseMethod · 0.95

Tested by

no test coverage detected