pystencils.AssignmentCollection.dependent_symbols

pystencils.AssignmentCollection.dependent_symbols#

AssignmentCollection.dependent_symbols(symbols)#

Returns all symbols that depend on one of the passed symbols.

A symbol ‘a’ depends on a symbol ‘b’, if there is an assignment ‘a <- some_expression(b)’ i.e. when ‘b’ is required to compute ‘a’.

Return type:

Set[Symbol]

Parameters:

symbols (Iterable[Symbol])