1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
{# USES_VARIABLES { _queue } #}
{% extends 'common_group.pyx' %}
{% block maincode %}
cdef _numpy.ndarray[int32_t, ndim=1, mode='c'] _spiking_synapses = _queue.peek()
# scalar code
_vectorisation_idx = 1
{{ scalar_code | autoindent }}
cdef size_t _spiking_synapse_idx
for _spiking_synapse_idx in range(len(_spiking_synapses)):
# vector code
_idx = _spiking_synapses[_spiking_synapse_idx]
_vectorisation_idx = _idx
{{ vector_code | autoindent }}
# Advance the spike queue
_queue.advance()
{% endblock %}
|