Will I ever get a good #numpy intuition?
I was making some clumsy left-right comparisons and swaps with grid.T[1:] vs. grid.T[:-1] and it worked. Now I tried grid vs. np.roll(grid, ...) and I'm struggling to make the masks for the swap work :(
O Mastodon é a melhor maneira de acompanhar o que está a acontecer.
Siga alguém no fediverso e veja tudo em ordem cronológica. Sem algoritmos, anúncios ou clickbait à vista.