[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-24 Thread Dr. David Kirkby
Joaquim Puig wrote: > Thanks to all the comments. I will try to put them together and publish > a workhseet with the comparisons. > > Best wishes, > > Joaquim Puig I created this ticket some time back for Mathematica http://sagetrac.org/sage_trac/ticket/6808 "Implement a benchmark based on Ka

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-23 Thread Joaquim Puig
Thanks to all the comments. I will try to put them together and publish a workhseet with the comparisons. Best wishes, Joaquim Puig En/na Tim Lahey ha escrit: > > On Oct 22, 2009, at 2:15 PM, Nasser Abbasi wrote: > >> >> Hi, >> >> how do you run matlab command from sage like this above? I have

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Tim Lahey
On Oct 22, 2009, at 2:15 PM, Nasser Abbasi wrote: Hi, how do you run matlab command from sage like this above? I have sage 4.1.2 and matlab 2008b installed on my windows XP PC, but when I run the above, it tells me it can't start matlab: a = random_matrix(RDF,2000) timeit('a*a') 5 loops, bes

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Nasser Abbasi
On Oct 22, 11:59 am, William Stein wrote: > > Here's a benchmark (the first thing I tried): > > sage: a = random_matrix(RDF,2000) > sage: timeit('a*a') > 5 loops, best of 3: 1.8 s per loop > sage: b = matlab('rand(2000)') > sage: timeit('b*b') > 5 loops, best of 3: 3.4 s per loop > > Sage is t

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Harald Schilly
On Oct 22, 6:59 pm, William Stein wrote: > Here's a benchmark (the first thing I tried): nice+thx for this idea, i did the same on my machine using matlab 2009a (most recent i guess?) sage: a = random_matrix(RDF,2000) sage: timeit('a*a') 5 loops, best of 3: 3.28 s per loop sage: b = matlab('r

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 9:41 AM, Marshall Hampton wrote: > > You might find this helpful: > > http://www.scipy.org/PerformancePython > > Generally I think numpy's numerical linear algebra is comparable to > matlab's. > > -Marshall Here's a benchmark (the first thing I tried): sage: a = random_m

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Marshall Hampton
You might find this helpful: http://www.scipy.org/PerformancePython Generally I think numpy's numerical linear algebra is comparable to matlab's. -Marshall On Oct 22, 8:15 am, Harald Schilly wrote: > not really, at least not that i'm aware of. you should ask this at > numpy/scipy since they a

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Harald Schilly
not really, at least not that i'm aware of. you should ask this at numpy/scipy since they are much more similar to matlab ... (these libraries are part of sage) basically, python is slower in some respect, e.g. loops, since they involve much more complex objects (i.e. python objects!). on the othe

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Simon King
Hi Joaquim! On 22 Okt., 14:22, Joaquim Puig wrote: > ... Is there any set of > benchmarks of SAGE vs Matlab? I don't know about Matlab. But there is http://www.sagemath.org/tour-benchmarks.html which is Sage vs. Magma. So, if nothing else is available, it might be better than nothing. Cheers,