Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: compile speed

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

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