{# USES_VARIABLES { N } #}
import numpy as _numpy

# scalar code
_vectorisation_idx = 1
{{scalar_code|autoindent}}

# vector code
_idx = _numpy.arange(N)
_vectorisation_idx = N

{{vector_code|autoindent}}

if _cond is True:
    _cond = slice(None)
if _cond is False:
    _cond = []

# _indices is set in the abstract code, see IndexWrapper.__getitem__
_return_values = _idx[_cond]
