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

Method symbols

numpy/f2py/symbolic.py:732–743  ·  view source on GitHub ↗

Return a set of symbols contained in self.

(self)

Source from the content-addressed store, hash-verified

730 return len(found) != 0
731
732 def symbols(self):
733 """Return a set of symbols contained in self.
734 """
735 found = set()
736
737 def visit(expr, found=found):
738 if expr.op is Op.SYMBOL:
739 found.add(expr)
740
741 self.traverse(visit)
742
743 return found
744
745 def polynomial_atoms(self):
746 """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