what is the main difference between using regular array and multi_array?

What is the main difference for using the following two arrays?

double anArray[29][9][45][45][45]

multi_array anArray;


The size of the array is about 190MB, which greatly exceeds the default stack size of operational environment (10 MB). So it is not good to use the regular array here. And we must use the boost::multi_array which allocates the memory on the heap

No comments:

Post a Comment