Hallo!
I am programming using fortran 90 (gfortran as a compiler).
I have to sum a lot of functions like this:
do ix=1,100
do iy =1,100
do n=1,10000
do k=1,10000
d(ix,iy) = d(ix,iy) + coeff(n,k) * f(n,ix) *g(k,iy)
enddo
enddo
enddo
enddo
I was trying to render this procedure more efficient from the
time point of view.
I was thinkning to build a new kind of array like:
fg(n,k,ix,iy) = f(n,ix) *g(k,iy)
so to avoid the loops on the ix and iy coordinates, however
the "fg" array would become too big (and I am not even sure this
would speed up the calculation).
Do you have any suggestions?
thank you a lot,
cheers
Paolo
I am programming using fortran 90 (gfortran as a compiler).
I have to sum a lot of functions like this:
do ix=1,100
do iy =1,100
do n=1,10000
do k=1,10000
d(ix,iy) = d(ix,iy) + coeff(n,k) * f(n,ix) *g(k,iy)
enddo
enddo
enddo
enddo
I was trying to render this procedure more efficient from the
time point of view.
I was thinkning to build a new kind of array like:
fg(n,k,ix,iy) = f(n,ix) *g(k,iy)
so to avoid the loops on the ix and iy coordinates, however
the "fg" array would become too big (and I am not even sure this
would speed up the calculation).
Do you have any suggestions?
thank you a lot,
cheers
Paolo