Mathematica 9 is now available
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: Eigenvalues in Mathematica 6.0.0 are SLOW

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75705] Re: [mg75648] Eigenvalues in Mathematica 6.0.0 are SLOW
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Wed, 9 May 2007 04:22:37 -0400 (EDT)
  • References: <19157736.1178621270530.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

At my WinXP machine, for the same code, version 6 is 19% FASTER than  =

version 5.2, not slower.

(Don't forget to use RandomReal in v6, Random in v5.)

Bobby

On Tue, 08 May 2007 04:41:32 -0500, Roman <rschmied at gmail.com> wrote:

> Hello all,
>
> I just installed Mathematica 6.0.0 on my old PowerBook to try it out,
> before upgrading my work horse machine. Doing a few benchmarks, I
> noticed that the Eigenvalues command has slowed down significantly,
> although the help on Eigenvalues says "Last modified in 5".
>
> In particular, compare this code for repeatedly computing the
> eigenvalues of a full 1000x1000 random symmetric matrix:
>
> A[n_] := (# + Transpose[#]) &[Table[Random[], {n}, {n}]]
> With[{n = 1000, p = 5},
>  Table[M = A[n]; Timing[Eigenvalues[M];][[1]], {p}]]
>
> Using $Version = "5.2 for Mac OS X (February 24, 2006)" I get
>
> {5.38169 Second, 5.38112 Second, 5.39718 Second, 5.38392 Second,
>    5.38465 Second}
>
> But using $Version = "6.0 for Mac OS X PowerPC (32-bit) (April 20,
> 2007)" I get
>
> {32.2618, 32.2137, 31.7375, 32.9869, 31.8762}
>
> which is about 6 times slower! (and has no units ;-)
>
> Fortunately, when you use sparse matrices and diagonalize with ARPACK
> (using "Method->Arnoldi"), there is no difference in evaluation time.
>
> Does anyone have an idea about what could have changed? Maybe some
> precision goal specifiers or so whose defaults have changed?
>
> Cheers!
> Roman.
>
>
>



-- =

DrMajorBob at bigfoot.com


  • Prev by Date: Aligning Graphics in V6
  • Next by Date: Re: Eigenvalues in Mathematica 6.0.0 are SLOW
  • Previous by thread: Re: Eigenvalues in Mathematica 6.0.0 are SLOW
  • Next by thread: Re: Re: Re: Re: