Debian Codegraph @

brian2/codegen/runtime/numpy_rt/templates/group_variable_set.py_

raw
1 {# USES_VARIABLES { _group_idx, N } #}
2 {# ITERATE_ALL { _target_idx } #}
3 {% extends 'common_group.py_' %}
4
5 {% block maincode %}
6 # scalar code
7 _vectorisation_idx = 1
8 {{scalar_code|autoindent}}
9
10 # vector code
11 _idx = {{_group_idx}}
12 _target_idx = slice(None)
13 _vectorisation_idx = _idx
14 {{vector_code|autoindent}}
15 {% endblock %}