[Numpy-discussion] [ANN] IPython 0.10 is out.

2009-08-05 Thread Fernando Perez
Hi all, on behalf of the IPython development team, I'm happy to announce that we've just put out IPython 0.10 final. Many thanks to all those who contributed ideas, bug reports and code. You can download it from the usual location: - http://ipython.scipy.org/moin/Download: direct links to

Re: [Numpy-discussion] strange sin/cos performance

2009-08-05 Thread Dave
Charles R Harris charlesr.harris at gmail.com writes: Is anyone with this problem *not* running ubuntu?Chuck All I can say is that it (surprisingly?) doesn't appear to affect my windoze (XP) box. Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] In [2]:

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Bruce Southey
On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodmankwgood...@gmail.com wrote: On Tue, Aug 4, 2009 at 1:53 PM, Bruce Southeybsout...@gmail.com wrote: On Tue, Aug 4, 2009 at 1:40 PM, Gökhan Severgokhanse...@gmail.com wrote: This is the loveliest of all solutions: c[isfinite(c)].mean() This handling

Re: [Numpy-discussion] strange sin/cos performance

2009-08-05 Thread Bruce Southey
On Tue, Aug 4, 2009 at 9:42 PM, Charles R Harrischarlesr.har...@gmail.com wrote: On Tue, Aug 4, 2009 at 7:18 PM, Jochen cycoma...@gmail.com wrote: Hi all, I see something similar on my system. OK I've just done a test. System is Ubuntu 9.04 AMD64 there seems to be a regression for float32

Re: [Numpy-discussion] Funded work on Numpy: proposed improvements and request for feedback

2009-08-05 Thread David Cournapeau
Bruce Southey wrote: So if 'C99-like' is going to be the near term future, is there any point in supporting non-C99 environments with this work? There may be a misunderstanding: if the platform support C99 complex, then we will use it, and otherwise, we will do as today, that is define our

[Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread John Hunter
yubnub is pretty cool -- it's a command line interface for the web. You can enable it in firefox by typing about:config in the URL bar, scrolling down to keyword.URL, right click on the line and choose modify, and set the value to be http://www.yubnub.org/parser/parse?default=g2command= Then,

Re: [Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread josef . pktd
On Wed, Aug 5, 2009 at 9:44 AM, John Hunterjdh2...@gmail.com wrote: yubnub is pretty cool -- it's a command line interface for the web. You can enable it in firefox by typing about:config in the URL bar, scrolling down to keyword.URL, right click on the line and choose modify, and set the

Re: [Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread Ralf Gommers
On Wed, Aug 5, 2009 at 9:44 AM, John Hunter jdh2...@gmail.com wrote: yubnub is pretty cool -- it's a command line interface for the web. You can enable it in firefox by typing about:config in the URL bar, scrolling down to keyword.URL, right click on the line and choose modify, and set the

Re: [Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread josef . pktd
On Wed, Aug 5, 2009 at 10:30 AM, josef.p...@gmail.com wrote: On Wed, Aug 5, 2009 at 9:44 AM, John Hunterjdh2...@gmail.com wrote: yubnub is pretty cool -- it's a command line interface for the web. You can enable it in firefox by typing about:config in the URL bar, scrolling down to

Re: [Numpy-discussion] Funded work on Numpy: proposed improvements and request for feedback

2009-08-05 Thread Bruce Southey
On 08/05/2009 06:45 AM, David Cournapeau wrote: Bruce Southey wrote: So if 'C99-like' is going to be the near term future, is there any point in supporting non-C99 environments with this work? There may be a misunderstanding: Really ignorance :-) if the platform support C99

Re: [Numpy-discussion] strange sin/cos performance

2009-08-05 Thread Andrew Friedley
Is anyone with this problem *not* running ubuntu? Me - RHEL 5.2 opteron: Python 2.6.1 (r261:67515, Jan 5 2009, 10:19:01) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Fedora 9 PS3/PPC: Python 2.5.1 (r251:54863, Jul 17 2008, 13:25:23) [GCC 4.3.1 20080708 (Red Hat 4.3.1-4)] on linux2

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Bruce Southey
On 08/05/2009 09:18 AM, Keith Goodman wrote: On Wed, Aug 5, 2009 at 1:40 AM, Bruce Southeybsout...@gmail.com wrote: On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodmankwgood...@gmail.com wrote: On Tue, Aug 4, 2009 at 1:53 PM, Bruce Southeybsout...@gmail.com wrote: On Tue, Aug

Re: [Numpy-discussion] strange sin/cos performance

2009-08-05 Thread Scott Sinclair
2009/8/5 Andrew Friedley afrie...@indiana.edu: Is anyone with this problem *not* running ubuntu? Me - RHEL 5.2 opteron: Python 2.6.1 (r261:67515, Jan  5 2009, 10:19:01) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Fedora 9 PS3/PPC: Python 2.5.1 (r251:54863, Jul 17 2008, 13:25:23)

Re: [Numpy-discussion] PDE BoF at SciPy2009

2009-08-05 Thread David Goldsmith
I already replied to OP, but I'll say publically: +1, as long as it's not at the same time as the as-yet-potential BoF on the Future of SciPy. DG --- On Wed, 8/5/09, Daniel Wheeler daniel.wheel...@gmail.com wrote: From: Daniel Wheeler daniel.wheel...@gmail.com Subject: Re:

[Numpy-discussion] GPU Numpy

2009-08-05 Thread Romain Brette
Hi everyone, I was wondering if you had any plan to incorporate some GPU support to numpy, or perhaps as a separate module. What I have in mind is something that would mimick the syntax of numpy arrays, with a new dtype (gpufloat), like this: from gpunumpy import * x=zeros(100,dtype='gpufloat')

Re: [Numpy-discussion] PDE BoF at SciPy2009

2009-08-05 Thread Chris Kees
OK. I contacted several attendees who are not on the numpy list, and it looks like we've got six or seven people interested. I've never been to the conference or organized a session like this. Any guidance? Chris On Aug 5, 2009, at 12:12 PM, David Goldsmith wrote: I already replied to

Re: [Numpy-discussion] PDE BoF at SciPy2009

2009-08-05 Thread Gael Varoquaux
On Wed, Aug 05, 2009 at 01:23:40PM -0500, Chris Kees wrote: OK. I contacted several attendees who are not on the numpy list, and it looks like we've got six or seven people interested. I've never been to the conference or organized a session like this. Any guidance? Just contact one

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Charles R Harris
On Wed, Aug 5, 2009 at 4:45 AM, Romain Brette romain.bre...@ens.fr wrote: Hi everyone, I was wondering if you had any plan to incorporate some GPU support to numpy, or perhaps as a separate module. What I have in mind is something that would mimick the syntax of numpy arrays, with a new

Re: [Numpy-discussion] PDE BoF at SciPy2009

2009-08-05 Thread David Goldsmith
Lot's of food and alcohol! (Just kidding.) DG --- On Wed, 8/5/09, Chris Kees cek...@gmail.com wrote: From: Chris Kees cek...@gmail.com Subject: Re: [Numpy-discussion] PDE BoF at SciPy2009 To: Discussion of Numerical Python numpy-discussion@scipy.org Date: Wednesday, August 5, 2009, 11:23

[Numpy-discussion] BOF c coders.

2009-08-05 Thread Charles R Harris
Hi All, At the present time David C. and myself are doing most of the work in the numpy c code base. I am wondering if there are more people out there who might want to get involved in that end of things and if there are ways we can help them get started. If folks are interested we could have a

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Pierre GM
cough And, er... masked arrays anyone ? /cough On Aug 5, 2009, at 11:20 AM, Bruce Southey wrote: On 08/05/2009 09:18 AM, Keith Goodman wrote: On Wed, Aug 5, 2009 at 1:40 AM, Bruce Southeybsout...@gmail.com wrote: On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodmankwgood...@gmail.com wrote:

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 14:11, Pierre GMpgmdevl...@gmail.com wrote: cough And, er... masked arrays anyone ? /cough That was what I suggested. The very first response, even. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Pierre GM
On Aug 5, 2009, at 3:14 PM, Robert Kern wrote: On Wed, Aug 5, 2009 at 14:11, Pierre GMpgmdevl...@gmail.com wrote: cough And, er... masked arrays anyone ? /cough That was what I suggested. The very first response, even. I know, Robert, and I thank you for that. My comment was intended to

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Keith Goodman
On Wed, Aug 5, 2009 at 12:14 PM, Robert Kernrobert.k...@gmail.com wrote: On Wed, Aug 5, 2009 at 14:11, Pierre GMpgmdevl...@gmail.com wrote: cough And, er... masked arrays anyone ? /cough That was what I suggested. The very first response, even. -- Robert Kern I have come to believe that

Re: [Numpy-discussion] BOF c coders.

2009-08-05 Thread David Goldsmith
So far, no one's proposed a BoF I wouldn't be interested in attending. :-) (except for fact that at least some will have to overlap, yes? :-( ). DG --- On Wed, 8/5/09, Charles R Harris charlesr.har...@gmail.com wrote: From: Charles R Harris charlesr.har...@gmail.com Subject:

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Ian Mallett
On Wed, Aug 5, 2009 at 11:34 AM, Charles R Harris charlesr.har...@gmail.com wrote: It could be you could slip in a small mod that would do what you want. I'll help, if you want. I'm good with GPUs, and I'd appreciate the numerical power it would afford. The main problems with using GPUs

[Numpy-discussion] maximum value and corresponding index

2009-08-05 Thread Dr. Phillip M. Feldman
With Python/NumPy, is there a way to get the maximum element of an array and also the index of the element having that value, at a single shot? (One can do this in Matlab via a statement like the following: [x_max,ndx]= max(x) -- View this message in context:

Re: [Numpy-discussion] maximum value and corresponding index

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 14:57, Dr. Phillip M. Feldmanpfeld...@verizon.net wrote: With Python/NumPy, is there a way to get the maximum element of an array and also the index of the element having that value, at a single shot? Not in one shot. maxi = x.argmax() maxv = x[maxi] -- Robert Kern I

[Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Dr. Phillip M. Feldman
Although I've used Matlab for many years and am quite new to Python, I'm already convinced that the Python/NumPy combination is more powerful and flexible than the Matlab base, and that it generally takes less Python code to get the same job done. There is, however, at least one thing that is

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 15:01, Dr. Phillip M. Feldmanpfeld...@verizon.net wrote: Although I've used Matlab for many years and am quite new to Python, I'm already convinced that the Python/NumPy combination is more powerful and flexible than the Matlab base, and that it generally takes less

Re: [Numpy-discussion] maximum value and corresponding index

2009-08-05 Thread David Goldsmith
But you can cheat and put them on one line (if that's all you're after): x = np.array([1, 2, 3]) maxi = x.argmax(); maxv = x[maxi] maxi, maxv (2, 3) DG --- On Wed, 8/5/09, Robert Kern robert.k...@gmail.com wrote: From: Robert Kern robert.k...@gmail.com Subject: Re: [Numpy-discussion]

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread josef . pktd
On Wed, Aug 5, 2009 at 4:04 PM, Robert Kernrobert.k...@gmail.com wrote: On Wed, Aug 5, 2009 at 15:01, Dr. Phillip M. Feldmanpfeld...@verizon.net wrote: Although I've used Matlab for many years and am quite new to Python, I'm already convinced that the Python/NumPy combination is more powerful

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Sturla Molden
If x and y are numpy arrays of bools, I'd like to be able to create expressions like the following: not x (to invert each element of x) x and y x or y x xor y (not x) or y The usual array broadcasting rules should apply. Is there any chance of getting something like this into NumPy?

Re: [Numpy-discussion] improved NumPy support for boolean arrays?

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 16:02, Sturla Moldenstu...@molden.no wrote:  If x and y are numpy arrays of bools, I'd like to be able to create expressions like the following: not x (to invert each element of x) x and y x or y x xor y (not x) or y The usual array broadcasting rules should

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Trevor Clarke
With OpenCL implementations making their way into the wild, that's probably a better target than CUDA. On Wed, Aug 5, 2009 at 3:39 PM, Ian Mallett geometr...@gmail.com wrote: On Wed, Aug 5, 2009 at 11:34 AM, Charles R Harris charlesr.har...@gmail.com wrote: It could be you could slip in a

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread David Warde-Farley
A friend of mine wrote a simple wrapper around CUBLAS using ctypes that basically exposes a Python class that keeps a 2D array of single- precision floats on the GPU for you, and lets you I keep telling him to release it, but he thinks it's too hackish. It did inspire some of our colleagues

[Numpy-discussion] Wiki page: food options at the SciPy'09 conference

2009-08-05 Thread Fernando Perez
Hi all, this is a message mostly for those attending the conference who know Caltech and its surroundings well. We've created a page to list easy-to-access food options from the campus, but I don't really know what to put there. Anyone who has some knowledge of local options is welcome to add

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Olivier Grisel
OpenCL is definitely the way to go for a cross platform solution with both nvidia and AMD having released beta runtimes to their respective developer networks (free as in beer subscription required for the beta dowload pages). Final public releases to be expected around 2009 Q3. OpenCL is an open

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread David Cournapeau
Olivier Grisel wrote: OpenCL is definitely the way to go for a cross platform solution with both nvidia and AMD having released beta runtimes to their respective developer networks (free as in beer subscription required for the beta dowload pages). Final public releases to be expected around

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Olivier Grisel
2009/8/6 David Cournapeau da...@ar.media.kyoto-u.ac.jp: Olivier Grisel wrote: OpenCL is definitely the way to go for a cross platform solution with both nvidia and AMD having released beta runtimes to their respective developer networks (free as in beer subscription required for the beta