[Numpy-discussion] PLEASE help with mpi4py

2007-07-28 Thread Viktor Oudovenko
Dear Lisandro, I'd be very grateful is you could help us to understand why mpi4py does not work with MPI-1 . We've succeeded to build and run mpi4py with MPI-2 (mpd) only. We did not get thought for MPI-1 case and for MPI-2 (smpd). We are using SGE queuing system and for it we need weather MPI-1 o

[Numpy-discussion] How do I get numpy.distutils.core setup to properly handle an optimize=1 in setup.cfg when doing bdist_rpm?

2007-07-28 Thread Stanley A. Klein
I'm trying to do an rpm package of enthought kiva for a Fedora 5 system. Enthought kiva imports numpy.distutils.core setup, probably because it has a lot of mathematical functions to compile as part of the package. Doing bdist_rpm for Fedora requires using a setup.cfg that contains [install] opt

[Numpy-discussion] Memory leak for in-place Numeric+numpy addition

2007-07-28 Thread Thomas J. Duck
Hi, There seems to be a memory leak when arrays are added in-place for mixed Numeric/numpy applications. For example, memory usage quickly ramps up when the following program is executed: import Numeric,numpy x = Numeric.zeros((2000,2000),typecode=Numeric.Float64) for j in range(200):

[Numpy-discussion] Installing Numpy on Python 2.3 Windows

2007-07-28 Thread Amir Hirsch
Hi Everyone, I'm trying to install the Numpy package on Python 2.3 running under Windows. I downloaded numpy-1.0.3.win32-py2.3.exe and ran it, and it complains that "Python version 2.3 required, which was not found in the registry" The Python 2.3 installation I am using came with OpenOffice.org

[Numpy-discussion] numpy-1.0.3 compile-problems on WindowsXP/Visual Studio 2005

2007-07-28 Thread Csaba
Hi, did somebody suceeded to compile/install numpy-1.0.3 from the sources under WindowsXP with Visual Studio 2005? Shortly after issuing the > python setup.py build command, the build breaks with a strange error and even stranger recommendation: > .

[Numpy-discussion] Downsampling array, retaining min and max values in window

2007-07-28 Thread Ludwig M Brinckmann
Hi there, I have a large array, lets say 4 * 512, which I need to downsample by a factor of 4 in the y direction, by factor 3 in the x direction, so that my resulting arrays are 1 * 170 (or 171 this does not matter very much) - but of all the values I will need to retain in the downsample

[Numpy-discussion] f2py: returning strings?

2007-07-28 Thread Peter Williams
Hi, I have some fortran code that I'm trying to wrap with f2py. The f2py mailing list seems really dead, so I thought I'd try asking here. My problem is that I can't get a routine to return a string (using the f2py from numpy 1.0.3). The Fortran looks like this: subroutine uvDatGta(object

[Numpy-discussion] Build external C functions that take numpy arrays as parameters and return numpy arrays

2007-07-28 Thread computer_guy
Hi Everyone, I am going to write some external C functions that takes in numpy arrays as parameters and return numpy arrays. I have the following questions: 1. What should I do in my C code? 2. Can I use any C compiler to build my library that takes numpy arrays? I am using Windows XP and Visual

[Numpy-discussion] a.flat[3:7] is a copy?

2007-07-28 Thread Tom Goddard
Does taking a slice of a flatiter always make a copy? That appears to be the behaviour in numpy 1.0.3. For example a.flat[1:3][0] = 5 does not modify the original array a, even when a is contiguous. Is this a bug? >>> import numpy as n >>> n.version.version '1.0.3' >>> a = n.zeros((2,3), n.

Re: [Numpy-discussion] [AstroPy] Porting "IDL Astronomy User's Library" to numpy

2007-07-28 Thread W.T. Bridgman
Perry, I believe some of those documents are getting a bit dated. They still refer to only supporting numarray vs Numeric. Don't those need to be updated to specify numpy? Newcomers to the list might be confused if not familiar with the history, especially considering the numpy begat nume

Re: [Numpy-discussion] Intel MKL 9.1 on Windows (was: Re: VMWare Virtual Appliance...)

2007-07-28 Thread Albert Strasheim
Hello all Turns out there's a third option: [mkl] include_dirs = C:\Program Files\Intel\MKL\9.1\include library_dirs = C:\Program Files\Intel\MKL\9.1\ia32\lib mkl_libs = mkl_c_dll, libguide40 lapack_libs = mkl_lapack Note mkl_c_dll, not mkl_c. From what I understand from the MKL release notes a

Re: [Numpy-discussion] build on windows 64-bit platform

2007-07-28 Thread Pearu Peterson
Hi, I finally got numpy to build on Windows XP x86_64 MSVC. The code needed to get it work is within DISTUTILS_USE_SDK defines. However, the tests fail on importing numpy: the package is not found. Could someone with access to this machine take a look at the configuration of installing numpy? Re