Why is iterating 2D array row major faster than column major?

前端 未结 3 1004
别跟我提以往
别跟我提以往 2020-12-01 15:02

Here is simple C++ code that compare iterating 2D array row major with column major.

#include 
#include 

using namespace std;

c         


        
3条回答
提交回复
热议问题