File: group_variable_set.py_

package info (click to toggle)
brian 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,872 kB
  • sloc: python: 51,820; cpp: 2,033; makefile: 108; sh: 72
file content (15 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{# USES_VARIABLES { _group_idx, N } #}
{# ITERATE_ALL { _target_idx } #}
{% extends 'common_group.py_' %}

{% block maincode %}
# scalar code
_vectorisation_idx = 1
{{scalar_code|autoindent}}

# vector code
_idx = {{_group_idx}}
_target_idx = slice(None)
_vectorisation_idx = _idx
{{vector_code|autoindent}}
{% endblock %}