how do I allocate a big array?


svalovic
08-22-2003, 05:30 AM
Do somebody know how to allocate an array of type double of size [10000][100][100][100] in the visual c++6?
I'm new in coding of big mathematical programms, I cannot find this information, but the programm I have made prints some errors....
Please help me!

barkerlee
12-19-2004, 11:42 PM
Numerical Recipes utility file 'nrutil.c' has functions 'vector', 'free_vector', 'matrix', 'free_matrix', etc, to dynamically allocate vectors and matrices, and tensors, and these can be modified or extended to create 4 dimensions memory allocations. Start by looking at these.