CodeObjectTemplate class

(Shortest import: from brian2.codegen.templates import CodeObjectTemplate)

class brian2.codegen.templates.CodeObjectTemplate(template, template_source)[source]

Bases: object

Attributes

allows_scalar_write Does this template allow writing to scalar variables?
iterate_all The indices over which the template iterates completely
variables The set of variables in this template

Methods

__call__(scalar_code, vector_code, **kwds)

Details

allows_scalar_write

Does this template allow writing to scalar variables?

iterate_all

The indices over which the template iterates completely

variables

The set of variables in this template

__call__(scalar_code, vector_code, **kwds)[source]