[Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Åsmund Hjulstad
Hi all, Are there any success stories in building f2py extensions on AMD64 with latest versions? Building the same extension on 32 bit works like a charm. I am having trouble finding documentation or examples, is it supposed to be working? Compiling (with distutils) works like a charm, but that

Re: [Numpy-discussion] ANN: NumPy 1.5.0 beta 1

2010-08-16 Thread Sandro Tosi
Hi all, sorry for the delay On Sun, Aug 1, 2010 at 18:38, Ralf Gommers ralf.gomm...@googlemail.com wrote: I am pleased to announce the availability of the first beta of NumPy 1.5.0. This will be the first NumPy release to include support for Python 3, as well as for Python 2.7. Please try this

[Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Vasileios Gkinis
Hi all, This is a question on f2py. I am using a Crank Nicholson scheme to model a diffusion process and in the quest of some extra speed I started playing with f2py. However I do not seem to be able to get any significant boost in

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Sturla Molden
Two criticial import libraries for mingw-w64 are missing (libpython26.a and msvcr90.a). We cannot build C extensions for Python with mingw-w64. If you can build with disutils, your are not using mingw-w64 but another C compiler. There are rumors of incompatibility issues between libgfortran and

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Robin
On Mon, Aug 16, 2010 at 10:12 AM, Vasileios Gkinis v.gki...@nbi.ku.dkwrote: Hi all, This is a question on f2py. I am using a Crank Nicholson scheme to model a diffusion process and in the quest of some extra speed I started playing with f2py. However I do not seem to be able to get any

[Numpy-discussion] Building numpy on Mac OS X 10.6, i386 (no ppc) 32/64bit: Error in Fortran tests due to ppc64

2010-08-16 Thread Samuel John
Hello! At first, I'd like to say thanks to the numpy/scipy team and all contributors. Great software! On Snow Leopard, aka Mac OS X 10.6.4 (server) I managed to build numpy 2.0.0.dev8636 (and scipy 0.9.0.dev6646) for arch i386 in combined 32/64bit against MacPorts python27 (No ppc here!).

Re: [Numpy-discussion] Building numpy on Mac OS X 10.6, i386 (no ppc) 32/64bit: Error in Fortran tests due to ppc64

2010-08-16 Thread Samuel John
Perhaps related tickets, but no perfect match (as far as I can judge): - http://projects.scipy.org/numpy/ticket/1399 distutils fails to build ppc64 support on Mac OS X when requested This revision is older than the one I used, ergo should already be applied. -

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Åsmund Hjulstad
2010/8/16 Sturla Molden stu...@molden.no Two criticial import libraries for mingw-w64 are missing (libpython26.a and msvcr90.a). We cannot build C extensions for Python with mingw-w64. If you can build with disutils, your are not using mingw-w64 but another C compiler. You are correct. The

[Numpy-discussion] save data to csv with column names

2010-08-16 Thread Guillaume Chérel
Hello, I'd like to know if there is an easy way to save a list of 1D arrays to a csv file, with the first line of the file being the column names. I found the following, but I can't get to save the column names: data = rec.array([X1,X2,X3,X4], names=[n1,n2,n3,n4]) savetxt(filename, data,

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Sturla Molden
font face=Andale MonoIt looks like the gain in performance is rather low compared to tests i have seen elsewhere.br br Am I missing something here..?br br /fontCheers...Vasilisbr Turn HTML off please. Use time.clock(), not time.time(). Try some

Re: [Numpy-discussion] save data to csv with column names

2010-08-16 Thread John Hunter
2010/8/16 Guillaume Chérel guillaume.c.che...@gmail.com: Hello, I'd like to know if there is an easy way to save a list of 1D arrays to a csv file, with the first line of the file being the column names. I found the following, but I can't get to save the column names: data =

Re: [Numpy-discussion] save data to csv with column names

2010-08-16 Thread Skipper Seabold
2010/8/16 Guillaume Chérel guillaume.c.che...@gmail.com: Hello, I'd like to know if there is an easy way to save a list of 1D arrays to a csv file, with the first line of the file being the column names. I found the following, but I can't get to save the column names: data =

Re: [Numpy-discussion] ANN: NumPy 1.5.0 beta 1

2010-08-16 Thread Ralf Gommers
On Mon, Aug 16, 2010 at 4:50 PM, Sandro Tosi mo...@debian.org wrote: Hi all, sorry for the delay On Sun, Aug 1, 2010 at 18:38, Ralf Gommers ralf.gomm...@googlemail.com wrote: I am pleased to announce the availability of the first beta of NumPy 1.5.0. This will be the first NumPy release

Re: [Numpy-discussion] ANN: NumPy 1.5.0 beta 1

2010-08-16 Thread Skipper Seabold
On Mon, Aug 16, 2010 at 11:36 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Mon, Aug 16, 2010 at 4:50 PM, Sandro Tosi mo...@debian.org wrote: Hi all, sorry for the delay On Sun, Aug 1, 2010 at 18:38, Ralf Gommers ralf.gomm...@googlemail.com wrote: I am pleased to announce the

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Eric Firing
On 08/15/2010 11:14 PM, Sturla Molden wrote: Two criticial import libraries for mingw-w64 are missing (libpython26.a and msvcr90.a). We cannot build C extensions for Python with mingw-w64. If you can build with disutils, your are not using mingw-w64 but another C compiler. Sturla, Have you

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread David Cournapeau
On Tue, Aug 17, 2010 at 1:53 AM, Eric Firing efir...@hawaii.edu wrote: On 08/15/2010 11:14 PM, Sturla Molden wrote: Two criticial import libraries for mingw-w64 are missing (libpython26.a and msvcr90.a). We cannot build C extensions for Python with mingw-w64. If you can build with disutils,

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Sturla Molden
Sturla, Have you tried the Equation Solution versions of the gcc tools? http://www.equation.com/servlet/equation.cmd?fa=fortran Eric It does not matter which mingw-w64 build we use. The import libraries will still be missing, and the issies with libgfortran are still there. Also, AVG and

[Numpy-discussion] basic question about numpy arrays

2010-08-16 Thread gerardob
I have a numpy array A , such that when i print A it appears: [[ 10.] [ 20.]] I would like to have a one dimensional array B (obtained from A) such that B[0] = 10 and B[1]=20. It could be seen as the transpose of A. How can i obtain B = [10,20] from A? I tried transpose(1,0) but it doesn't

Re: [Numpy-discussion] basic question about numpy arrays

2010-08-16 Thread Skipper Seabold
On Mon, Aug 16, 2010 at 2:25 PM, gerardob gberbeg...@gmail.com wrote: I have a numpy array A , such that when i print A it appears: [[ 10.]  [ 20.]] I would like to have a one dimensional array B (obtained from A) such that B[0] = 10 and B[1]=20. It could be seen as the transpose of A.

Re: [Numpy-discussion] basic question about numpy arrays

2010-08-16 Thread John Salvatier
You can also do: y = x[:,0] On Mon, Aug 16, 2010 at 11:28 AM, Skipper Seabold jsseab...@gmail.comwrote: On Mon, Aug 16, 2010 at 2:25 PM, gerardob gberbeg...@gmail.com wrote: I have a numpy array A , such that when i print A it appears: [[ 10.] [ 20.]] I would like to have a one

Re: [Numpy-discussion] basic question about numpy arrays

2010-08-16 Thread Rob Speer
To explain: A has shape (2,1), meaning it's a 2-D array with 2 rows and 1 column. The transpose of A has shape (1,2): it's a 2-D array with 1 row and 2 columns. That's not the same as what you want, which is an array with shape (2,): a 1-D array with 2 entries. When you take A[:,0], you're

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Eric Firing
On 08/16/2010 07:36 AM, Sturla Molden wrote: Sturla, Have you tried the Equation Solution versions of the gcc tools? http://www.equation.com/servlet/equation.cmd?fa=fortran Eric It does not matter which mingw-w64 build we use. The import libraries will still be missing, and the issies

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Vasileios Gkinis
Sturla Molden sturla at molden.no writes: font face=Andale MonoIt looks like the gain in performance is rather low compared to tests i have seen elsewhere.br br Am I missing something here..?br br /fontCheers...Vasilisbr Turn HTML off

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Sturla Molden
After using time.clock, running f2py with the REPORT_ON_ARRAY_COPY enabled and passing arrays as np.asfortranarray(array) to the fortran routines I still get a slow performance on f2py. No copied arrays are reported. That is not any better as np.asfortranarray will make a copy instead. Pass

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread David Cournapeau
On Tue, Aug 17, 2010 at 2:24 AM, Sturla Molden stu...@molden.no wrote: Thank for the information, David. I think the right solution is to build our own libgfortran, but against the MSVC C runtime instead of the mingw runtime. THis is not as crazy as it sounds because scipy does not rely so

Re: [Numpy-discussion] Building f2py extensions on AMD64 with Python 2.7 Numpy 1.5, MSVC 2008 Pro and gfortran

2010-08-16 Thread Sturla Molden
I don't really see how to make that works (that is running gfortran code in a spawned process), but if you know how to, please go ahead. I didn't debug this code examples so there might be typos, but this is just to illustrate the general idea: Say we have a Fortran function with this

[Numpy-discussion] Seeking advice on crowded namespace.

2010-08-16 Thread Charles R Harris
Hi All, I just added support for Legendre polynomials to numpy and I think the numpy.polynomial name space is getting a bit crowded. Since most of the current functions in that namespace are just used to implement the Polynomial, Chebyshev, and Legendre classes I'm thinking of only importing

[Numpy-discussion] array manipulation

2010-08-16 Thread Alex Ter-Sarkissov
hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would expect, but rather [5,], which means that I can't,

Re: [Numpy-discussion] array manipulation

2010-08-16 Thread josef . pktd
On Tue, Aug 17, 2010 at 12:13 AM, Alex Ter-Sarkissov ater1...@gmail.com wrote: hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this

[Numpy-discussion] Problems building NumPy with GotoBLAS

2010-08-16 Thread ashford
I'm having problems getting the GotoBLAS library (Nehalem optimized BLAS - http://www.tacc.utexas.edu/tacc-projects/gotoblas2/;) working properly under the Python NumPy package (http://numpy.scipy.org/;) on a quad-core Nehalem under FC10. The command used to build the library is: make

Re: [Numpy-discussion] Problems building NumPy with GotoBLAS

2010-08-16 Thread David
On 08/17/2010 01:58 PM, ashf...@whisperpc.com wrote: I'm having problems getting the GotoBLAS library (Nehalem optimized BLAS - http://www.tacc.utexas.edu/tacc-projects/gotoblas2/;) working properly under the Python NumPy package (http://numpy.scipy.org/;) on a quad-core Nehalem under FC10.

Re: [Numpy-discussion] Problems building NumPy with GotoBLAS

2010-08-16 Thread ashford
David, You should instead specificaly link the GOTO library to numpy, by customizing the site.cfg, That was one of the many things I tried came to the list. Peter Ashford ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org