Re: [Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Gael Varoquaux
On Tue, Jul 24, 2007 at 02:32:10PM -0500, Robert Kern wrote: > > I haven't looked at PyMultilter objects. I am just trying to build a > > 'vector version' of my C function so that it can do batch > > calculations. For example, for a vector X, I can do > > for x in X: y=my_func(x) > > Or I can do

Re: [Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Robert Kern
Geoffrey Zhu wrote: > Hi Robert, > > On 7/24/07, Robert Kern <[EMAIL PROTECTED]> wrote: >> Geoffrey Zhu wrote: >>> Thanks for your help. Do you know what exactly is the issue of having >>> to use VS2003 to build extensions? If the interactions are done at DLL >>> level, shouldn't call compilers th

Re: [Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Geoffrey Zhu
Hi Robert, On 7/24/07, Robert Kern <[EMAIL PROTECTED]> wrote: > Geoffrey Zhu wrote: > > Thanks for your help. Do you know what exactly is the issue of having > > to use VS2003 to build extensions? If the interactions are done at DLL > > level, shouldn't call compilers that can generate DLLs work?

Re: [Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Robert Kern
Geoffrey Zhu wrote: > Thanks for your help. Do you know what exactly is the issue of having > to use VS2003 to build extensions? If the interactions are done at DLL > level, shouldn't call compilers that can generate DLLs work? Mostly it's an issue of the C runtime that is used for either compiler

Re: [Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Geoffrey Zhu
Hi Robert, On 7/24/07, Robert Kern <[EMAIL PROTECTED]> wrote: > Geoffrey Zhu wrote: > > Hi, > > > > I am about to write a C extension module. C functions in the module will > > take and return numpy arrays. I found a tutorial online, but I am not > > sure about the following: > > > > 1. Can I com

Re: [Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Robert Kern
Geoffrey Zhu wrote: > Hi, > > I am about to write a C extension module. C functions in the module will > take and return numpy arrays. I found a tutorial online, but I am not > sure about the following: > > 1. Can I compile my extension with Visual Studio 2005? My impression is > that I will ha

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-24 Thread Robert Kern
Steven H. Rogers wrote: > Robert Kern wrote: >> Steven H. Rogers wrote: >> >>> I don't know of any simple build instructions for Windows, but if you're >>> patient, there will probably be updated packaged releases of SciPy + >>> NumPy that play well together "real soon now". >>> >> We'll ne

[Numpy-discussion] Compile extension modules with Visual Studio 2005

2007-07-24 Thread Geoffrey Zhu
Hi, I am about to write a C extension module. C functions in the module will take and return numpy arrays. I found a tutorial online, but I am not sure about the following: 1. Can I compile my extension with Visual Studio 2005? My impression is that I will have to link with numpy libraries, and,

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-24 Thread Steven H. Rogers
Robert Kern wrote: > Steven H. Rogers wrote: > > >> I don't know of any simple build instructions for Windows, but if you're >> patient, there will probably be updated packaged releases of SciPy + >> NumPy that play well together "real soon now". >> > > We'll need a volunteer release man

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-24 Thread Tim Mortimer
Thanks for the responses, http://code.enthought.com/enstaller/ I'll probably skip this. Although it looks like a useful tool, the computer / Python 2.5 installation i'm "managing" isn't on the internet, so any synchronisation or what not probably won't be possible there. ( i think that's what

Re: [Numpy-discussion] tofile speed

2007-07-24 Thread Sebastian Haase
Your are not generating text files - right? On 7/24/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > So you are saying that a given tofile() call returns only after 2 seconds !? > Can you measure the getData() call time (just comment the tofile out > for a while- I that doesn't use 100% CPU ..)

Re: [Numpy-discussion] tofile speed

2007-07-24 Thread Sebastian Haase
So you are saying that a given tofile() call returns only after 2 seconds !? Can you measure the getData() call time (just comment the tofile out for a while- I that doesn't use 100% CPU ..) ? (timeit module is needed - I think) Maybe multithreading might help - so that tofile() and GetData() can