Re: [Numpy-discussion] Array vectorization in numpy

2011-07-29 Thread Carlos Becker
20 min, is there any way to run the tests individually? Is there a specific mailing list for numexpr, so I can avoid 'spamming' numpy? Thanks! ---------- Carlos Becker On Wed, Jul 20, 2011 at 8:01 PM, Mark Wiebe wrote: > > On Wed, Jul 20, 2011 at 5:52 PM, srean wrot

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-20 Thread Carlos Becker
escribió: > Wed, 20 Jul 2011 08:49:21 +0200, Carlos Becker wrote: >> Those are very interesting examples. I think that pre-allocation is >> very >> important, and something similar happens in Matlab if no pre- >> allocation >> is done: it takes 3-4x longer t

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-20 Thread Carlos Becker
examples. If I find something new I will let you know, I would be glad to switch to numpy soon ;) Cheers, Carlos On Wed, Jul 20, 2011 at 9:21 AM, Benjamin Root wrote: > On Wednesday, July 20, 2011, Carlos Becker wrote: > > Those are very interesting examples. I think that pre-alloca

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-19 Thread Carlos Becker
me problem seems to be there. With this I am not saying that numpy is not worth it, just that for many applications (specially with huge matrices/arrays), pre-allocation does make a huge difference, especially if we want to attract more people to using numpy. ------ Carlos Becker On W

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-19 Thread Carlos Becker
be > done about this so that numpy can deal with expressions rather than single > operations chained by python itself? Maybe I am missing the point as well. > > -- > Carlos Becker > ___ > NumPy-Discussion

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-19 Thread Carlos Becker
. -- Carlos Becker On Tue, Jul 19, 2011 at 6:44 PM, Christopher Jordan-Squire wrote: > > > On Tue, Jul 19, 2011 at 11:19 AM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Tue, Jul 19, 2011 at 9:49 AM, Carlos Becker wrote: >>

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-19 Thread Carlos Becker
Carlos On Tue, Jul 19, 2011 at 1:40 PM, Carlos Becker wrote: > Hi Pauli, thanks for the quick answer. > Is there a way to check the optimization flags of numpy after installation? > > I am away of a matlab installation now, but I remember I saw a single > processor active with matl

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-19 Thread Carlos Becker
Virtanen escribió: > Tue, 19 Jul 2011 11:05:18 +0200, Carlos Becker wrote: >> Hi, I started with numpy a few days ago. I was timing some array >> operations and found that numpy takes 3 or 4 times longer than >> Matlab on >> a simple array-minus-scalar operation. >>

[Numpy-discussion] Array vectorization in numpy

2011-07-19 Thread Carlos Becker
Hi, I started with numpy a few days ago. I was timing some array operations and found that numpy takes 3 or 4 times longer than Matlab on a simple array-minus-scalar operation. This looks as if there is a lack of vectorization, even though this is just a guess. I hope this is not reposting. I tried