[Numpy-discussion] build problem on windows: python26.dll not found

2010-07-16 Thread Skipper Seabold
I am way out of my element trying to build numpy on Windows, but we are having a replicable (though somewhat inconsistently on some machines) problem using fmin_cg on Windows that I am trying to debug. I'm on Windows 7 64-bit with Python 2.6.4 First, I try to build numpy. It complains about havi

Re: [Numpy-discussion] Array concatenation performance

2010-07-16 Thread Christopher Barker
Sturla Molden wrote: > Christopher Barker skrev: >> However, Python lists hold python objects, so it's bit inefficient, at >> least in terms of memory use. >> > I guess that is mainly in terms of memory use, as the Python (scalar) > objects must be created for the call to append. np.array([]) can

Re: [Numpy-discussion] How to use decorator numpy.vectorize for methods in class

2010-07-16 Thread Robert Kern
On Fri, Jul 16, 2010 at 12:00, Shailendra wrote: > Hi All, > I tried to use the decorator @numpy.vectorize for the class method > without success. Can any one point me to the correct way of using it? > I am able to use the numpy.vectorize() sucessfully. > Below is the code with did not work > > ==

[Numpy-discussion] How to use decorator numpy.vectorize for methods in class

2010-07-16 Thread Shailendra
Hi All, I tried to use the decorator @numpy.vectorize for the class method without success. Can any one point me to the correct way of using it? I am able to use the numpy.vectorize() sucessfully. Below is the code with did not work import numpy class test:  

Re: [Numpy-discussion] isinf raises in inf

2010-07-16 Thread Charles R Harris
On Fri, Jul 16, 2010 at 2:27 AM, Pauli Virtanen wrote: > Thu, 15 Jul 2010 19:09:15 -0600, Charles R Harris wrote: > [clip] > > PS, of course we should fix the macro also. Since the bit values of +/- > > infinity are known we should be able to define them as constants using a > > couple of ifdefs

[Numpy-discussion] Question on Absoft 11 and f2py

2010-07-16 Thread Sturla Molden
Any good reason CompaqVisualFCompiler should raise an exception when I'm not using it? Using Enthought 6.2-2. Sturla D:\test>f2py -c --fcompiler=absoft --compiler=msvc -m hello hello.f90 Forcing DISTUTILS_USE_SDK=1 Unexpected ValueError in C:\Python26\lib\site-packages\numpy\distutils\fcompile

Re: [Numpy-discussion] Array concatenation performance

2010-07-16 Thread Sturla Molden
Christopher Barker skrev: > > However, Python lists hold python objects, so it's bit inefficient, at > least in terms of memory use. > I guess that is mainly in terms of memory use, as the Python (scalar) objects must be created for the call to append. np.array([]) can also be inefficient, as An

Re: [Numpy-discussion] [SciPy-User] Saving Complex Numbers

2010-07-16 Thread Pauli Virtanen
Thu, 15 Jul 2010 20:00:09 -0400, David Warde-Farley wrote: > (CCing NumPy-discussion where this really belongs) > > On 2010-07-08, at 1:34 PM, cfra...@uci.edu wrote: > >> Need Complex numbers in the saved file. > > Ack, this has come up several times according to list archives and no > one's be

Re: [Numpy-discussion] isinf raises in inf

2010-07-16 Thread Pauli Virtanen
Thu, 15 Jul 2010 19:09:15 -0600, Charles R Harris wrote: [clip] > PS, of course we should fix the macro also. Since the bit values of +/- > infinity are known we should be able to define them as constants using a > couple of ifdefs and unions. We already do that, NPY_INFINITY and -NPY_INFINITY. [

Re: [Numpy-discussion] isinf raises in inf

2010-07-16 Thread Pauli Virtanen
Testing with arithmetic can raise overflows and underflows. I think the correct isinf is to compare to NPY_INFINITY and -NPY_INFINITY. Patch is attached to #1500 - Alkuperäinen viesti - > On Thu, Jul 15, 2010 at 6:42 PM, John Hunter wrote: > > > On Thu, Jul 15, 2010 at 7:27 PM, Charles