Re: [Numpy-discussion] Simple shared arrays

2010-12-30 Thread Paul Ivanov
Erik Rigtorp, on 2010-12-30 21:30, wrote: > Hi, > > I was trying to parallelize some algorithms and needed a writable > array shared between processes. It turned out to be quite simple and > gave a nice speed up almost linear in number of cores. Of course you > need to know what you are doing to

[Numpy-discussion] Simple shared arrays

2010-12-30 Thread Erik Rigtorp
Hi, I was trying to parallelize some algorithms and needed a writable array shared between processes. It turned out to be quite simple and gave a nice speed up almost linear in number of cores. Of course you need to know what you are doing to avoid segfaults and such. But I still think something l

[Numpy-discussion] How to efficiently multiply 2**10 x 2**10 hermitian matrices

2010-12-30 Thread qubax
I'll have to work with large hermitian matrices and calculate traces, eigenvalues and perform several matric products. In order to speed those up, i noticed that blas includes a function called 'zhemm' for efficient matrix products with at least one hermitian matrix. is there a way to call that on

Re: [Numpy-discussion] Why arange has no stop-point opt-in?

2010-12-30 Thread Matthieu Brucher
2010/12/30 K.-Michael Aye : > On 2010-12-30 16:43:12 +0200, josef.p...@gmail.com said: > >> >> Since linspace exists, I don't see much point in adding the stop point >> in arange. I use arange mainly for integers as numpy equivalent of >> python's range. And I often need arange(n+1) which is less w

Re: [Numpy-discussion] Why arange has no stop-point opt-in?

2010-12-30 Thread K . -Michael Aye
On 2010-12-30 16:43:12 +0200, josef.p...@gmail.com said: > > Since linspace exists, I don't see much point in adding the stop point > in arange. I use arange mainly for integers as numpy equivalent of > python's range. And I often need arange(n+1) which is less writing > than arange(n, include_en

Re: [Numpy-discussion] Why arange has no stop-point opt-in?

2010-12-30 Thread josef . pktd
On Thu, Dec 30, 2010 at 9:08 AM, Friedrich Romstedt wrote: > 2010/12/30 Friedrich Romstedt : >> 2010/12/30 K.-Michael Aye : >>> I'm a bit puzzled that there seems just no way to cleanly code an >>> interval with evenly spaced numbers that includes the stop point given? >>> linspace offers to inclu

Re: [Numpy-discussion] Why arange has no stop-point opt-in?

2010-12-30 Thread Friedrich Romstedt
2010/12/30 Friedrich Romstedt : > 2010/12/30 K.-Michael Aye : >> I'm a bit puzzled that there seems just no way to cleanly code an >> interval with evenly spaced numbers that includes the stop point given? >> linspace offers to include the stop point, but arange does not? >> Am I missing something?

Re: [Numpy-discussion] Why arange has no stop-point opt-in?

2010-12-30 Thread Friedrich Romstedt
2010/12/30 K.-Michael Aye : > I'm a bit puzzled that there seems just no way to cleanly code an > interval with evenly spaced numbers that includes the stop point given? > linspace offers to include the stop point, but arange does not? > Am I missing something? (I am aware, that I could do > arange

[Numpy-discussion] Why arange has no stop-point opt-in?

2010-12-30 Thread K . -Michael Aye
Dear all, I'm a bit puzzled that there seems just no way to cleanly code an interval with evenly spaced numbers that includes the stop point given? linspace offers to include the stop point, but arange does not? Am I missing something? (I am aware, that I could do arange(9,15.0001,0.1) but that'