MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: compile speed

  • To: mathgroup at
  • Subject: [mg74460] Re: compile speed
  • From: "Szabolcs" <szhorvat at>
  • Date: Thu, 22 Mar 2007 01:10:30 -0500 (EST)
  • References: <etqnm3$nf$>

On Mar 21, 8:42 am, "Boson"  wrote:
> since i need high values of nx,ny (~5000) and the loop scales as
> nx*ny^2,

But if you really want to run this for 5000x5000 matrices, I suggest
you write the program in some performance oriented compiled language
like C/C++ or Fortran. I doubt that you can get acceptable performance
with Mathematica for this specific problem.

If you really want to use Mathematica, you can try improving the
Fold[ ] part in testnocomp3 by working backwards in the list and
calling Random[] only as many times as necessary.

  • Prev by Date: Re: Membrane
  • Next by Date: Re: solving second order pde
  • Previous by thread: compile speed
  • Next by thread: Re: compile speed