Simplifier class

(Shortest import: from brian2.codegen.optimisation import Simplifier)

class brian2.codegen.optimisation.Simplifier(variables, scalar_statements, extra_lio_prefix='')[source]

Bases: brian2.parsing.bast.BrianASTRenderer

Carry out arithmetic simplifications (see ArithmeticSimplifier) and loop invariants

Methods

render_expr(expr)
render_node(node) Assumes that the node has already been fully processed by BrianASTRenderer

Details

render_expr(expr)[source]
render_node(node)[source]

Assumes that the node has already been fully processed by BrianASTRenderer