Debian Codegraph @

brian2/codegen/runtime/cython_rt/templates/reset.pyx

raw
1 {% extends 'common_group.pyx' %}
2
3 {% block maincode %}
4 # scalar code
5 _vectorisation_idx = 1
6 {{scalar_code|autoindent}}
7 {# Get the name of the array that stores these events (e.g. the spikespace array) #}
8 {% set _eventspace = get_array_name(eventspace_variable) %}
9
10 cdef size_t _num_events = {{_eventspace}}[_num{{_eventspace}}-1]
11 for _index_events in range(_num_events):
12 # vector code
13 _idx = {{_eventspace}}[_index_events]
14 _vectorisation_idx = _idx
15 {{ vector_code | autoindent }}
16 {% endblock %}