| 1 |
{# Note that we use this template only for subexpressions -- for normal arrays |
| 2 |
we do not generate any code but simply access the data in the underlying |
| 3 |
array directly. See RuntimeDevice.get_with_array #} |
| 4 |
{# USES_VARIABLES { _group_idx } #} |
| 5 |
{% extends 'common_group.py_' %} |
| 6 |
|
| 7 |
{% block maincode %} |
| 8 |
|
| 9 |
# scalar code |
| 10 |
_vectorisation_idx = 1 |
| 11 |
{{scalar_code|autoindent}} |
| 12 |
|
| 13 |
# vector code |
| 14 |
_idx = {{_group_idx}} |
| 15 |
_vectorisation_idx = _idx |
| 16 |
|
| 17 |
{{vector_code|autoindent}} |
| 18 |
|
| 19 |
# _variable is set in the abstract code, see Group._get_with_array |
| 20 |
_return_values = _variable |
| 21 |
{% endblock %} |