[General boards] [Fall 2018 courses] [Summer 2018 courses] [Winter 2018 courses] [Older or newer terms]

Question about assignment 1, question 4


The question is asking us to simulate transferring data on an array sized n^2, with really large values of n.

I’m wondering are we supposed to initialize the array of n^2, or can we initialize a smaller array to “simulate” accessing its components?

Otherwise I believe I don’t think its possible to create arrays of say 16000^2?


I suggest you declare the array statically outside the main, e.g.
float a[mxdim*mxdim], v[mxdim];
int main(argc, argv)
int argc;
char **argv;

and initialize it inside the main.
Yes, it is possible to create arrays of 16000^2.