| 1 |
{# ITERATE_ALL { _idx } #} |
| 2 |
{# USES_VARIABLES { N } #} |
| 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 |
_vectorisation_idx = LazyArange({{constant_or_scalar('N', variables['N'])}}) |
| 12 |
{{vector_code|autoindent}} |
| 13 |
|
| 14 |
if _cond is True: |
| 15 |
_cond = slice(None) |
| 16 |
if _cond is False: |
| 17 |
_cond = [] |
| 18 |
|
| 19 |
# _variable is set in the abstract code, see Group._get_with_code |
| 20 |
_return_values = _variable[_cond] |
| 21 |
{% endblock %} |