CythonCodeGenerator class

(Shortest import: from brian2 import CythonCodeGenerator)

class brian2.codegen.generators.cython_generator.CythonCodeGenerator(variables, variable_indices, owner, iterate_all, codeobj_class, name, template_name, override_conditional_write=None, allows_scalar_write=False)[source]

Bases: brian2.codegen.generators.base.CodeGenerator

Cython code generator

Methods

determine_keywords()
translate_expression(expr)
translate_one_statement_sequence(statements)
translate_statement(statement)

Details

determine_keywords()[source]
translate_expression(expr)[source]
translate_one_statement_sequence(statements, scalar=False)[source]
translate_statement(statement)[source]