[Numpy-discussion] Vista installer?

2007-05-24 Thread Ryan Krauss
I am trying to use Numpy/Scipy for a class I am teaching this summer. I have one student running Vista. Is there an installer that works for Vista? Running the exe file from webpage gives errors about not being able to create various folders and files. I think this is from Vista being very restr

Re: [Numpy-discussion] NumPy 1.0.3 for OS-X

2007-05-24 Thread David L Goldsmith
Hold on again, I think I did it: it works on my BSN Intel Mac and Chris is about to test it on his not-so-new PPC Mac. Assuming I built a viable product, how do I put it in the right place (i.e., @ http://pythonmac.org/packages/py25-fat/index.html)? Thanks! DG David L Goldsmith wrote: > OK,

Re: [Numpy-discussion] NumPy 1.0.3 for OS-X

2007-05-24 Thread David L Goldsmith
OK, I'm having difficulties, so if anyone can beat me to it, that'd be great. DG David L Goldsmith wrote: > Since I have to install a numpy on my new Mac, I'll try. Chris, you > have a pre-Intel Mac to try it out on, correct? Anyone: are there > issues I should be aware of besides building i

[Numpy-discussion] Aligning an array on Windows

2007-05-24 Thread Francesc Altet
Hi, Some time ago I made an improvement in speed on the numexpr version of PyTables so as to accelerate the operations with unaligned arrays (objects that can appear quite commonly when dealing with columns of recarrays, as PyTables does). This improvement has demostrated to work correctly and fl

Re: [Numpy-discussion] Single-Precision FFT

2007-05-24 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you both for your excellent suggestions. I'll re-read fftpack.c and try to puzzle out what to do next. Thanks, Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org i

Re: [Numpy-discussion] Single-Precision FFT

2007-05-24 Thread Anne Archibald
On 24/05/07, Benjamin M. Schwartz <[EMAIL PROTECTED]> wrote: > I know that FFTW can be compiled to run in single precision. What would it > take > to make NumPy use a single-precision FFT library? > > If absolutely necessary, it might be possible to ship a patched version of > NumPy, but any oth

Re: [Numpy-discussion] Single-Precision FFT

2007-05-24 Thread Robert Kern
Benjamin M. Schwartz wrote: > I am working on two programs using NumPy for the OLPC project. In both cases > the performance is limited by the FFT. The OLPC machine uses a AMD Geode CPU, > which is generally slow, but especially bad at double-precision floating > point. > It would be a major impr

[Numpy-discussion] Single-Precision FFT

2007-05-24 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am working on two programs using NumPy for the OLPC project. In both cases the performance is limited by the FFT. The OLPC machine uses a AMD Geode CPU, which is generally slow, but especially bad at double-precision floating point. It would be a ma

Re: [Numpy-discussion] NumPy 1.0.3 for OS-X

2007-05-24 Thread Christopher Barker
David L Goldsmith wrote: > Since I have to install a numpy on my new Mac, I'll try. Chris, you > have a pre-Intel Mac to try it out on, correct? Anyone: are there > issues I should be aware of besides building it Universal? ANSI v. > Unicode? Build against the Universal python 2.4 and 2.5 di

Re: [Numpy-discussion] Median / mean functionality confusing?

2007-05-24 Thread Christopher Barker
Sven Schreiber wrote: >> (Zar, Jerrold H. 1984. Biostatistical Analysis. Prentice Hall.) > > Is that the seminal work on the topic ;-) Of course not, just a reference I have handy -- though I suppose there are any number of them on the web too. >> Of course, the median of an odd number of integ

Re: [Numpy-discussion] NumPy 1.0.3 for OS-X

2007-05-24 Thread David L Goldsmith
Since I have to install a numpy on my new Mac, I'll try. Chris, you have a pre-Intel Mac to try it out on, correct? Anyone: are there issues I should be aware of besides building it Universal? ANSI v. Unicode? Should I build against older versions of Python? If so, how far back should I go

Re: [Numpy-discussion] Median / mean functionality confusing?

2007-05-24 Thread Sven Schreiber
Christopher Barker schrieb: > Matthew Brett wrote: >>> Regarding dtype, I disagree. Why do you want to force the result to be a >>> float? > > well, what's the median of (1, 2, 3, 4) ? > > I learned it is 2.5 > > (Zar, Jerrold H. 1984. Biostatistical Analysis. Prentice Hall.) Is that the semina

[Numpy-discussion] NumPy 1.0.3 for OS-X

2007-05-24 Thread Christopher Barker
Anyone have plans to build the latest release to put up on pythonmac? I could do it, but I'm busy, not the most qualified, and don't want to duplicate effort. If no one else is, though, I'll try to fit it in. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/

Re: [Numpy-discussion] Median / mean functionality confusing?

2007-05-24 Thread Christopher Barker
Matthew Brett wrote: >> Regarding dtype, I disagree. Why do you want to force the result to be a >> float? well, what's the median of (1, 2, 3, 4) ? I learned it is 2.5 (Zar, Jerrold H. 1984. Biostatistical Analysis. Prentice Hall.) Of course, the median of an odd number of integers would be an

Re: [Numpy-discussion] NumPy 1.0.3 released

2007-05-24 Thread Jarrod Millman
On 5/24/07, Michael Williams <[EMAIL PROTECTED]> wrote: > In [3]: import scipy > /Users/mike/Library/Python/2.5/site-packages/scipy/misc/__init__.py:25: > DeprecationWarning: ScipyTest is now called NumpyTest; please update your code > test = ScipyTest().test > > In [4]: scipy.__version__ > Out[

Re: [Numpy-discussion] Median / mean functionality confusing?

2007-05-24 Thread Matthew Brett
> Regarding dtype, I disagree. Why do you want to force the result to be a > float? Fair comment - I really meant the axis, and axis=None difference. Matthew ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/

Re: [Numpy-discussion] Median / mean functionality confusing?

2007-05-24 Thread Sven Schreiber
Matthew Brett schrieb: > Hi, > > Does anyone else find this unexpected? > > In [93]: import numpy as N > In [94]: a = N.arange(10).reshape(5,2) > In [95]: N.mean(a) > Out[95]: 4.5 > In [96]: N.median(a) > Out[96]: array([4, 5]) > > i.e. shouldn't median have the same axis, dtype, default axis=No

[Numpy-discussion] Median / mean functionality confusing?

2007-05-24 Thread Matthew Brett
Hi, Does anyone else find this unexpected? In [93]: import numpy as N In [94]: a = N.arange(10).reshape(5,2) In [95]: N.mean(a) Out[95]: 4.5 In [96]: N.median(a) Out[96]: array([4, 5]) i.e. shouldn't median have the same axis, dtype, default axis=None behavior as mean? Best, Matthew __

Re: [Numpy-discussion] f2py and C functions/subroutines/structs

2007-05-24 Thread lorenzo bolla
I tried to write my own prova2.pyf and this is it: !-*- f90 -*- ! Note: the context of this file is case sensitive. python module prova interface function incr(x) real, dimension(2), intent(c) :: incr real, dimensi

Re: [Numpy-discussion] f2py and C functions/subroutines/structs

2007-05-24 Thread Pierre GM
Lorenzo, you can indeed use f2py to write extensions around some C code: http://cens.ioc.ee/projects/f2py2e/usersguide/index.html http://www.scipy.org/Cookbook/f2py_and_NumPy I think you should also be able to find some actual examples in the scipy sources...

Re: [Numpy-discussion] f2py and C functions/subroutines/structs

2007-05-24 Thread Gael Varoquaux
On Thu, May 24, 2007 at 03:50:40PM +0200, Gael Varoquaux wrote: > On Thu, May 24, 2007 at 03:40:18PM +0200, lorenzo bolla wrote: > >I hope this is the right mailing list to post my question to. > >I'm trying to make some easy C code working with Python by using f2py. > I can't help too muc

Re: [Numpy-discussion] f2py and C functions/subroutines/structs

2007-05-24 Thread Gael Varoquaux
On Thu, May 24, 2007 at 03:40:18PM +0200, lorenzo bolla wrote: >I hope this is the right mailing list to post my question to. >I'm trying to make some easy C code working with Python by using f2py. I can't help too much on that as I gave up using f2Py to wrap C a while ago, but I think you

Re: [Numpy-discussion] NumPy 1.0.3 released

2007-05-24 Thread Michael Williams
On Wed, May 23, 2007 at 05:31:50PM -0600, Travis Oliphant wrote: > I'm pleased to announce the release of NumPy 1.0.3 numpy 1.0.3 is causing a warning on scipy 0.5.2: In [1]: import numpy In [2]: numpy.__version__ Out[2]: '1.0.3' In [3]: import scipy /Users/mike/Library/Python/2.5/site-packages

Re: [Numpy-discussion] Another flags question

2007-05-24 Thread Charles R Harris
On 5/24/07, Albert Strasheim <[EMAIL PROTECTED]> wrote: Hello all Me vs the flags again. I found another case where the flags aren't what I would expect: In [118]: x = N.array(N.arange(24.0).reshape(6,4), order='F') In [119]: x Out[119]: array([[ 0., 1., 2., 3.], [ 4., 5.,

[Numpy-discussion] f2py and C functions/subroutines/structs

2007-05-24 Thread lorenzo bolla
Hi all, I hope this is the right mailing list to post my question to. I'm trying to make some easy C code working with Python by using f2py. For example, take the test.c file: -- typedef struct data { int a; double b; } DATA; /*function with struct*/ DAT

Re: [Numpy-discussion] numpy testing

2007-05-24 Thread Brian Hawthorne
Ah, thanks for the tip. That did the trick. Cheers -Brian On 5/24/07, Pearu Peterson <[EMAIL PROTECTED]> wrote: Brian Hawthorne wrote: > Hello, > I'm having a bit of trouble with numpy testing not finding my tests. It > seems like a bug, but maybe it's a subtle feature. I constructed the

[Numpy-discussion] Another flags question

2007-05-24 Thread Albert Strasheim
Hello all Me vs the flags again. I found another case where the flags aren't what I would expect: In [118]: x = N.array(N.arange(24.0).reshape(6,4), order='F') In [119]: x Out[119]: array([[ 0., 1., 2., 3.], [ 4., 5., 6., 7.], [ 8., 9., 10., 11.], [ 12.,

Re: [Numpy-discussion] numpy testing

2007-05-24 Thread Pearu Peterson
Brian Hawthorne wrote: > Hello, > I'm having a bit of trouble with numpy testing not finding my tests. It > seems like a bug, but maybe it's a subtle feature. I constructed the > simplest possible straw man to illustrate my problem (attached as foo.tgz). > The directory structure looks like thi