pystencils.flow.flowgraph.EquationsBlock#
- class pystencils.flow.flowgraph.EquationsBlock(assignments, predecessors, name=None)#
A block of symbol assignments in static single-assignment form.
- Parameters:
assignments (Sequence[FlowgraphAssignment])
predecessors (Iterable[FlowgraphNode])
name (str | None)
- property free_symbols: frozenset[Symbol]#
Free symbols of this node.
A symbol is free if it is used in this node’s equations but not defined in this node. Free symbols must be imported from predecessors.
- subs(substitutions, **kwargs)#
Apply substitutions to equations in this block. :rtype:
EquationsBlockNote
Substitutions of expressions for symbols (
symbol -> expr) are only applied ifsymbolis a free symbol of this block.- Parameters:
- Return type:
- replace_predecessors(predecessors)#
Return a copy of this node with a new list of predecessors
- Return type:
- Parameters:
predecessors (Iterable[FlowgraphNode])