• + 1 comment

    Sorry, but in this line

    aK[m] == a0[(m+N-(K%N))%N].

    you %N again after +N for what purpose? If i think correctly, it's for rotate again the m index?