Re: [Numpy-discussion] Ctypes required? Fails to build.

2008-07-04 Thread Robert Kern
On Fri, Jul 4, 2008 at 19:47, James Turner <[EMAIL PROTECTED]> wrote: > Thanks, Robert and Stefan for your helpful replies. It makes > a big difference to know which problem I need to solve and which > I don't :-). > > Unfortunately I'm still getting those undefined symbol errors > for certain math

Re: [Numpy-discussion] Ctypes required? Fails to build.

2008-07-04 Thread James Turner
Thanks, Robert and Stefan for your helpful replies. It makes a big difference to know which problem I need to solve and which I don't :-). Unfortunately I'm still getting those undefined symbol errors for certain maths functions. I tried "python setup.py build_ext -lm build" and don't have $LDFLAG

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Sebastian Haase
On Sat, Jul 5, 2008 at 12:05 AM, Michael Abbott <[EMAIL PROTECTED]> wrote: > On Fri, 4 Jul 2008, Pauli Virtanen wrote: >> Fri, 04 Jul 2008 20:06:52 +, Michael Abbott wrote: >> > "You only need to [register] once (i.e, SciPy and NumPy Developer >> >Pages use the same login/password

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Michael Abbott
On Fri, 4 Jul 2008, Pauli Virtanen wrote: > Fri, 04 Jul 2008 20:06:52 +, Michael Abbott wrote: > > "You only need to [register] once (i.e, SciPy and NumPy Developer > >Pages use the same login/password)." > Hmm, I'm not sure if I was correct in claiming that two registrations are

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Matthew Brett
Hi, > First the web sites. I can find three different websites that appear to > be relevant to NumPy. Let's take a look, shall we? > > 1. http://numpy.scipy.org > > This is the first link on Google and appears to be the proper home of > Numpy ... Thanks for this - no really - it's funny, and yo

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Pauli Virtanen
Fri, 04 Jul 2008 20:06:52 +, Michael Abbott wrote: > On Fri, 4 Jul 2008, Charles R Harris wrote: >> Curiously, you didn't find the root page: http://www.scipy.org/. At the >> top there are icons that link to all the things you were looking for. I >> blame Google ;) > > Ah, yes. That's where

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Michael Abbott
On Fri, 4 Jul 2008, Charles R Harris wrote: > Curiously, you didn't find the root page: http://www.scipy.org/. At the top > there are icons that link to all the things you were looking for. I blame > Google ;) Ah, yes. That's where the text I was looking for was: "You only need to [regis

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Charles R Harris
On Fri, Jul 4, 2008 at 1:37 PM, Michael Abbott <[EMAIL PROTECTED]> wrote: > On Fri, 4 Jul 2008, Pauli Virtanen wrote: > > Fri, 04 Jul 2008 11:51:19 +, Michael Abbott wrote: > > > I hope this is going to the right place. I've tried to submit a Trac > > > ticket at http://projects.scipy.org/sci

[Numpy-discussion] Should the numpy complex print the same way as python complex numbers?

2008-07-04 Thread Charles R Harris
Currently they print differently: In [6]: str(np.complex128(0)) Out[6]: '(0.0+0.0j)' In [7]: str(complex(0)) Out[7]: '0j' It looks pretty easy to make numpy complex print the same as python complex. Shall we make that change? Chuck ___ Numpy-discussio

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Michael Abbott
On Fri, 4 Jul 2008, Pauli Virtanen wrote: > Fri, 04 Jul 2008 11:51:19 +, Michael Abbott wrote: > > I hope this is going to the right place. I've tried to submit a Trac > > ticket at http://projects.scipy.org/scipy/numpy/ but unfortunately it > > won't let me log in, even though I've registered

Re: [Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Pauli Virtanen
Fri, 04 Jul 2008 11:51:19 +, Michael Abbott wrote: > I hope this is going to the right place. I've tried to submit a Trac > ticket at http://projects.scipy.org/scipy/numpy/ but unfortunately it > won't let me log in, even though I've registered and successfully logged > in as a SciPy user! G

Re: [Numpy-discussion] Combination of element-wise and matrix multiplication

2008-07-04 Thread Jonno
Awesome. I just added rollaxis(c,0,3) and was done. Cheers mate. On Fri, Jul 4, 2008 at 2:38 AM, lorenzo bolla <[EMAIL PROTECTED]> wrote: > If a and b are 2d arrays, you can use numpy.dot: > > In [36]: a > Out[36]: > array([[1, 2], >[3, 4]]) > In [37]: b > Out[37]: > array([[5, 6], >

Re: [Numpy-discussion] "import numpy" is slow

2008-07-04 Thread Andrew Dalke
On Jul 3, 2008, at 9:06 AM, Robert Kern wrote: > Can you try the SVN trunk? Sure. Though did you know it's not easy to find how to get numpy from SVN? I had to go to the second page of Google, which linked to someone's talk. I expected to find a link to it at http://numpy.scipy.org/ . Just

[Numpy-discussion] Python ref count leak in numpy

2008-07-04 Thread Michael Abbott
I hope this is going to the right place. I've tried to submit a Trac ticket at http://projects.scipy.org/scipy/numpy/ but unfortunately it won't let me log in, even though I've registered and successfully logged in as a SciPy user! Grr. The bug itself is very easy to see in Python debug mode:

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-04 Thread Francesc Alted
A Friday 04 July 2008, Francesc Alted escrigué: > A Thursday 03 July 2008, Charles R Harris escrigué: > > On Thu, Jul 3, 2008 at 1:30 PM, Charles R Harris > > <[EMAIL PROTECTED]> > > > > wrote: > > > Hmm, > > > > > > On Thu, Jul 3, 2008 at 11:44 AM, Francesc Alted > > > <[EMAIL PROTECTED]> wrote: >

Re: [Numpy-discussion] Running doctests on buildbots

2008-07-04 Thread Stéfan van der Walt
2008/7/3 Alan McIntyre <[EMAIL PROTECTED]>: >> The Buildbot configuration is kept on buildmaster.scipy.org, that >> won't help you. It sends a request to the client for (something >> similar to) "make build; make install; make test" to be run. The >> administrator of each slave has control over t

Re: [Numpy-discussion] Combination of element-wise and matrix multiplication

2008-07-04 Thread lorenzo bolla
If a and b are 2d arrays, you can use numpy.dot: In [36]: a Out[36]: array([[1, 2], [3, 4]]) In [37]: b Out[37]: array([[5, 6], [7, 8]]) In [38]: numpy.dot(a,b) Out[38]: array([[19, 22], [43, 50]]) If a and b are 3d arrays of shape 2x2xN, you can use something like that: In [

Re: [Numpy-discussion] Change in the representation of complex numbers in NumPy 1.1

2008-07-04 Thread Francesc Alted
A Thursday 03 July 2008, Charles R Harris escrigué: > On Thu, Jul 3, 2008 at 1:30 PM, Charles R Harris > <[EMAIL PROTECTED]> > > wrote: > > Hmm, > > > > On Thu, Jul 3, 2008 at 11:44 AM, Francesc Alted > > <[EMAIL PROTECTED]> wrote: > > > > > >> Ok. But str also represents differently the 0j: > >>