Tag: memory
-
Row-Major vs Column-Major Memory Layouts
I’ve recently been doing a lot of coding in C++ & CUDA for my PhD project, and I’ve needed to dig in and understand memory layouts in a way I’ve not had to previously using Python. In this post, I’ll explain how I’ve learned to think about row-major and column-major memory ordering in C++, especially…