Vectorized aindex