by LoganDark · 6mo ago · 0 comments
I wonder what makes it so fast? Is it similar to how GHC can fuse/inline ops and such?
It can also avoid creating intermediate results for quite a few operations, because for example reverse, transpose, etc only change how the arrays are traversed (order in which elements are accessed). You can reuse the original data and change the indexing information. That’s known as beating and dragging.