M
MBALOVER
Hi all,
I am writing a function. I need to pass to this function about 10 2-D
arrays (double) each of which has a size of 1000x1000.
I am wondering if passing these big arrays as parameters for the
function will make any problem for my program?
Does it make my program run slowly?
I guess when I pass these arrays to the function, in fact only the
addresses of their first elements are actually passed to the
function. Since there is no copy from the original arrays to the
parameters, it won't make my program run slowly.
But I am not sure.
Please help.
Thanks,
I am writing a function. I need to pass to this function about 10 2-D
arrays (double) each of which has a size of 1000x1000.
I am wondering if passing these big arrays as parameters for the
function will make any problem for my program?
Does it make my program run slowly?
I guess when I pass these arrays to the function, in fact only the
addresses of their first elements are actually passed to the
function. Since there is no copy from the original arrays to the
parameters, it won't make my program run slowly.
But I am not sure.
Please help.
Thanks,