[Numpy-discussion] numpy installation problem

2006-08-18 Thread Joris De Ridder
Hi, In the README.txt of the numpy installation it says that one could use a site.cfg file to specify non-standard locations of ATLAS en LAPACK libraries, but it doesn't explain how. I have a directory software/atlas3.6.0/lib/Linux_PPROSSE2/ which contains libcombinedlapack.a libatlas.a

Re: [Numpy-discussion] bug with numpy.linalg.eig for complex output

2006-08-18 Thread Nils Wagner
Bill Baxter wrote: > If you do this: > >>> numpy.linalg.eig(numpy.random.rand(3,3)) > > You'll (almost always) get a wrong answer back from numpy. Something > like: > > (array([ 1.72167898, -0.07251007, -0.07251007]), > array([[ 0.47908847, 0.72095163, 0.72095163], >[ 0.56659142, -0.46

Re: [Numpy-discussion] bug with numpy.linalg.eig for complex output

2006-08-18 Thread Bill Baxter
Thanks for the info Nils.  Sounds like it was fixed post-1.0b1.  Good news.And Trac seems to be letting me in again.  Not sure what was wrong there.--bbOn 8/18/06, Nils Wagner <[EMAIL PROTECTED]> wrote: Bill Baxter wrote:> If you do this:> >>>  numpy.linalg.eig(numpy.random.rand(3,3))>> You'll (al

Re: [Numpy-discussion] ctypes: how does load_library work ?

2006-08-18 Thread Stefan van der Walt
On Fri, Aug 18, 2006 at 01:54:44PM +0900, David Cournapeau wrote: > import numpy as N > from ctypes import cdll, POINTER, c_int, c_uint > > _hello = cdll.LoadLibrary('libhello.so') > > _hello.sum.restype= c_int > _hello.sum.artype = [POINTER(c_int), c_uint] > > def sum(data): > retur

Re: [Numpy-discussion] Interesting memory leak

2006-08-18 Thread Albert Strasheim
Hello all > > I decided to upgrade to 1.0b2 just to see what I get and now I get 7kB of > "possibly lost" memory, coming from PyObject_Malloc (in > /usr/lib/libpython2.4.so.1.0). This is a constant 7kB, however, and it > isn't getting any larger if I increase the loop iterations. Looks good > the

Re: [Numpy-discussion] ctypes: how does load_library work ?

2006-08-18 Thread Albert Strasheim
Hello all > -Original Message- > From: [EMAIL PROTECTED] [mailto:numpy- > [EMAIL PROTECTED] On Behalf Of David Cournapeau > Sent: 18 August 2006 06:55 > To: Discussion of Numerical Python > Subject: [Numpy-discussion] ctypes: how does load_library work ? > > > That works OK, but to avoid

Re: [Numpy-discussion] ctypes: how does load_library work ?

2006-08-18 Thread David Cournapeau
Stefan van der Walt wrote: > On Fri, Aug 18, 2006 at 01:54:44PM +0900, David Cournapeau wrote: > >> import numpy as N >> from ctypes import cdll, POINTER, c_int, c_uint >> >> _hello = cdll.LoadLibrary('libhello.so') >> >> _hello.sum.restype= c_int >> _hello.sum.artype = [POINTER(c_int),

[Numpy-discussion] First impressions on migrating to NumPy

2006-08-18 Thread Francesc Altet
Hi, I'm starting to (slowly) replace numarray by NumPy at the core of PyTables, specially at those places where the speed of NumPy is *much* better, that is, in the creation of arrays (there are places in PyTables where this is critical, most specially in indexation) and in copying arrays. In b

Re: [Numpy-discussion] ctypes: how does load_library work ?

2006-08-18 Thread David Cournapeau
Albert Strasheim wrote: > Hello all > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:numpy- >> [EMAIL PROTECTED] On Behalf Of David Cournapeau >> Sent: 18 August 2006 06:55 >> To: Discussion of Numerical Python >> Subject: [Numpy-discussion] ctypes: how does load_library work

[Numpy-discussion] bugfix-patch for numpy-1.0b2 setup

2006-08-18 Thread Norbert Nemec
Hi there, in numpy-1.0b2 the logic in setup.py is slightly off. The attached patch fixes the issue. Greetings, Norbert PS: I would have preferred to submit this patch via the sourceforge bug-tracker, but that seems rather confusing: there are tabs "Numarray Patches" and "Numarray Bugs" but no "N

Re: [Numpy-discussion] bugfix-patch for numpy-1.0b2 setup

2006-08-18 Thread Francesc Altet
A Divendres 18 Agost 2006 15:36, Norbert Nemec va escriure: > PS: I would have preferred to submit this patch via the sourceforge > bug-tracker, but that seems rather confusing: there are tabs "Numarray > Patches" and "Numarray Bugs" but no "NumPy bugs" and the tab "Patches" > seems to be used for

Re: [Numpy-discussion] First impressions on migrating to NumPy

2006-08-18 Thread Chris Kees
Can you provide some details about your approach to migrating to NumPy? Are you following some documentation on migration or do you have your own plan of attack? Chris On Aug 18, 2006, at 6:59 AM, Francesc Altet wrote: > Hi, > > I'm starting to (slowly) replace numarray by NumPy at the

Re: [Numpy-discussion] bugfix-patch for numpy-1.0b2 setup

2006-08-18 Thread Stefan van der Walt
Hi Norbert On Fri, Aug 18, 2006 at 03:36:47PM +0200, Norbert Nemec wrote: > in numpy-1.0b2 the logic in setup.py is slightly off. The attached patch > fixes the issue. Please file a ticket so that we don't lose track of this. Stéfan --

Re: [Numpy-discussion] First impressions on migrating to NumPy

2006-08-18 Thread Francesc Altet
A Divendres 18 Agost 2006 16:44, Chris Kees va escriure: > Can you provide some details about your approach to migrating to > NumPy? Are you following some documentation on migration or do you > have your own plan of attack? Well, to say the truth none of both ;-). The truth is that I was tr

Re: [Numpy-discussion] te test

2006-08-18 Thread Jaka Kornreich
Hi,   It is so common to have problems with erecxxtion, Try VIrAGRA and forget about it http://www.vabaominheran.com   which in turn . . . Charges up your batteries. We know a thing or two as well, Hingst, greeter of strangers to Paradise, and we are not your usual goaty

Re: [Numpy-discussion] numpy.bool8

2006-08-18 Thread Travis Oliphant
Christopher Hanley wrote: > What happened to numpy.bool8? I realize that bool_ is just as good. I > was just wondering what motivated the change? > > I think it was accidental... The numpy scalar tp_names were recently changed to be more consistent with Python and the bool8 construct proba

Re: [Numpy-discussion] convertcode.py

2006-08-18 Thread Travis Oliphant
Chris Kees wrote: > Hi, > > I just ran convertcode.py on my code (from the latest svn source > of numpy) and it looks like it just changed the import statements to > > import numpy.oldnumeric as Numeric > > So it doesn't look like it's really helping me move over to the > new usage.

Re: [Numpy-discussion] numpy 0.9.8->1.0b2

2006-08-18 Thread Travis Oliphant
David Grant wrote: > I'm contemplating upgrading to 1.0b2. The main reason is that I am > experiencing a major memory leak and before I report a bug I think the > developers would appeciate if I was using the most recent version. Am > I correct in that the only major change that might actually b

[Numpy-discussion] attributes of scalar types - e.g. numpy.int32.itemsize

2006-08-18 Thread Sebastian Haase
Hi, array dtype descriptors have an attribute itemsize that gives the total number of bytes required for an item of that dtype. Scalar types, like numy.int32, also have that attribute, but it returns "something else" - don't know what: >>> a.dtype.itemsize 4 >>> a.dtype.name 'float32' >>> N.int

Re: [Numpy-discussion] bugfix-patch for numpy-1.0b2 setup

2006-08-18 Thread Travis Oliphant
Norbert Nemec wrote: > Hi there, > > in numpy-1.0b2 the logic in setup.py is slightly off. The attached patch > fixes the issue. > > Greetings, > Norbert > > PS: I would have preferred to submit this patch via the sourceforge > bug-tracker, but that seems rather confusing: there are tabs "Numarray

Re: [Numpy-discussion] attributes of scalar types - e.g. numpy.int32.itemsize

2006-08-18 Thread Travis Oliphant
Sebastian Haase wrote: > Hi, > array dtype descriptors have an attribute itemsize that gives the total > number of bytes required for an item of that dtype. > > Scalar types, like numy.int32, also have that attribute, > but it returns "something else" - don't know what: > > > Furthermore ther

[Numpy-discussion] 1.02b

2006-08-18 Thread kortmann
I realize it was just released, but is there going to be a windows release for 1.02b? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make y

Re: [Numpy-discussion] attributes of scalar types - e .g. numpy.int32.itemsize

2006-08-18 Thread Sebastian Haase
On Friday 18 August 2006 11:38, Travis Oliphant wrote: > Sebastian Haase wrote: > > Hi, > > array dtype descriptors have an attribute itemsize that gives the total > > number of bytes required for an item of that dtype. > > > > Scalar types, like numy.int32, also have that attribute, > > but it r

Re: [Numpy-discussion] convertcode.py

2006-08-18 Thread Charles R Harris
Hi Travis,The description of what these codes do is in the latest version of the second chapter of my book (which is part of the preview chapters thatare available on the web).Speaking of which, is it possible for us early buyers to get updated copies?Chuck ---

Re: [Numpy-discussion] 1.02b

2006-08-18 Thread Travis Oliphant
[EMAIL PROTECTED] wrote: > I realize it was just released, but is there going to be a windows release > for 1.02b? > > There will be either be one of 1.0b3 or one of 1.0b2 released for windows by Monday. -Travis - Using

Re: [Numpy-discussion] numpy 0.9.8->1.0b2

2006-08-18 Thread David Grant
On 8/18/06, Travis Oliphant <[EMAIL PROTECTED]> wrote: > David Grant wrote: > > I'm contemplating upgrading to 1.0b2. The main reason is that I am > > experiencing a major memory leak and before I report a bug I think the > > developers would appeciate if I was using the most recent version. Am > >

[Numpy-discussion] [Fwd: Re: Signal handling]

2006-08-18 Thread Fernando Perez
Hi all, here is the SAGE signal handling code, graciously donated by William Stein. I'd suggest putting (with any modifications to adapt it to numpy conventions) this into the actual numpy headers, so that not only all of our auto-generation tools (f2py, weave) can use it, but so that it also

Re: [Numpy-discussion] [Fwd: Re: Signal handling]

2006-08-18 Thread Fernando Perez
On 8/18/06, Fernando Perez <[EMAIL PROTECTED]> wrote: > here is the SAGE signal handling code, graciously donated by William Stein. Hit send too soon... I forgot to thank William for this code :) hopefully one of many things we'll be sharing between numpy/scipy and SAGE. Cheers, f -

Re: [Numpy-discussion] attributes of scalar types - e.g. numpy.int32.itemsize

2006-08-18 Thread Travis Oliphant
Sebastian Haase wrote: > On Friday 18 August 2006 11:38, Travis Oliphant wrote: > >> Sebastian Haase wrote: >> >>> Hi, >>> array dtype descriptors have an attribute itemsize that gives the total >>> number of bytes required for an item of that dtype. >>> >>> Scalar types, like numy.int32,

Re: [Numpy-discussion] attributes of scalar types - e.g. numpy.int32.itemsize

2006-08-18 Thread Sebastian Haase
On Friday 18 August 2006 15:25, Travis Oliphant wrote: > Sebastian Haase wrote: > > On Friday 18 August 2006 11:38, Travis Oliphant wrote: > >> Sebastian Haase wrote: > >>> Hi, > >>> array dtype descriptors have an attribute itemsize that gives the > >>> total number of bytes required for an item

[Numpy-discussion] numpy installation

2006-08-18 Thread joris
Hi, I am correctly assuming that numpy needs the full lapack distribution, and not just the few lapack routines given by atlas? After installing numpy I still get the warning ImportError: /software/python-2.4.1/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: undefined symbol: s_wsfe w

Re: [Numpy-discussion] numpy installation

2006-08-18 Thread Piotr Luszczek
s_wsfe is not LAPACK's routine it's a routine from the g2c library. You have to link it in in addition to lapack_lite. Piotr On Friday 18 August 2006 18:07, [EMAIL PROTECTED] wrote: > Hi, > > I am correctly assuming that numpy needs the full lapack > distribution, and not just the few lapack rout

Re: [Numpy-discussion] attributes of scalar types - e.g. numpy.int32.itemsize

2006-08-18 Thread Travis Oliphant
Sebastian Haase wrote: > On Friday 18 August 2006 15:25, Travis Oliphant wrote: > >> Sebastian Haase wrote: >> >>> On Friday 18 August 2006 11:38, Travis Oliphant wrote: >>> Sebastian Haase wrote: > Hi, > array dtype descriptors have an attribute itemsize

Re: [Numpy-discussion] Interesting memory leak

2006-08-18 Thread Fernando Perez
> This leak is caused by add_docstring, but it's supposed to leak. I wonder if > there's a way to register some kind of on-exit handler in Python so that > this can also be cleaned up? import atexit atexit.register(your_cleanup_function) whose api is no args on input: def your_cleanup_function()

Re: [Numpy-discussion] bugfix-patch for numpy-1.0b2 setup

2006-08-18 Thread Stefan van der Walt
On Fri, Aug 18, 2006 at 04:45:03PM +0200, Stefan van der Walt wrote: > Hi Norbert > > On Fri, Aug 18, 2006 at 03:36:47PM +0200, Norbert Nemec wrote: > > in numpy-1.0b2 the logic in setup.py is slightly off. The attached patch > > fixes the issue. > > Please file a ticket so that we don't lose tra

Re: [Numpy-discussion] attributes of scalar types - e .g. numpy.int32.itemsize

2006-08-18 Thread Sebastian Haase
On Friday 18 August 2006 16:51, Travis Oliphant wrote: > Sebastian Haase wrote: > > On Friday 18 August 2006 15:25, Travis Oliphant wrote: > >> Sebastian Haase wrote: > >>> On Friday 18 August 2006 11:38, Travis Oliphant wrote: > Sebastian Haase wrote: > > Hi, > > array dtype descripto

Re: [Numpy-discussion] numpy installation

2006-08-18 Thread Joris De Ridder
Hi, [PL]: s_wsfe is not LAPACK's routine it's a routine from the g2c library. [PL]: You have to link it in in addition to lapack_lite. Thanks for the pointer. Sorry about my ignorance about these things. But is lapack_lite linked to numpy even if you specify the full lapack library? Afte

[Numpy-discussion] Whitespace

2006-08-18 Thread Charles R Harris
Hi All, I've noticed a lot of trailing whitespace while browsing through the numpy subversion repository. So here is a perl script I pinched from the linux-kernel mailing list that does a good job of removing it. Chuck cleanfile Description: Binary data