Why are loops not slow in Julia?

On the other hand

@tullio a[i] = b[i,j]*c[j]

is incredibly fast and easy to understand for one line of code :wink: (see the thread)

Mostly don’t write loops, let macros do that for you!

5 Likes