pystencils.flow.flowgraph.Flowgraph#
- class pystencils.flow.flowgraph.Flowgraph(bottom, *, name=None)#
A closed flowgraph in canonical form.
Upon creation, flowgraphs will be canonicalized and checked for consistency.
- subs(substitutions, **kwargs)#
Create a new flowgraph from this one by performing the given substitutions.
This method acts as the SymPy
subsmethod, with the difference that symbol substitutions of the kindsymbol -> exprare only applied ifsymbolis a free symbol of the flowgraph.See the
subsmethod ofsp.Basicfor details.