|
From: Alfred P. R. <al...@ya...> - 2006-02-01 23:31:49
|
BTW, this will be a big array, 10^6 addresses, x 8 bytes in Per's example. It will get ridiculous quickly. If n is the size of the dimension in the array, and there are d is the number of dimensions S = (n^d)*8, so by size, n, of 20, for 6 dimensions you'll be at 512MB and right around 2GB by size 25. Expect slow execution times at best. Per Westermark <pw...@ia...> wrote: Start by informing us if all dimensions are of fixed size, or if they should have dynamic size. For fixed size, this is enough: int my_array[10][10][10][10][10][10]; For dynamic size, a lot of extra code is needed, to allocate vector arrays of vector arrays of vector arrays of ... /Per W On Wed, 1 Feb 2006, sigit himawan wrote: > Hallo to all of you, > > Honestly, I am a newbie for programming. But now I have to make 6-dimensional array in my project. I am very confuse to implement this. > Could any of you help me how to make 6-D array? I haven't seen any examples of how to do this. > thank you in advance. > > Himawan <snip> Alfred P. Reaud |