I’ve inherited a codebase using multi-dimensional arrays (of sizes in the thousands) in a performance-critical path. In particular, the code wants to read off columns from the array and also perform element-wise addition by columns. I don’t really want to re-write a lot of logic to switch rows and columns just so I can use […]