Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Olivier Grisel
2009/8/6 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 pu

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 aroun

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

[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 to

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 i

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 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 small mod that

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

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 16:02, Sturla Molden 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 shoul

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

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 Kern wrote: > On Wed, Aug 5, 2009 at 15:01, Dr. Phillip M. > Feldman 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 b

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 wrote: > From: Robert Kern > Subject: Re: [Numpy-discussion] maximum value and corresponding in

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. Feldman 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 Python code > to get

[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 much

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. Feldman 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 have come to bel

[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: http://www.nabble.com/maximum-valu

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Ian Mallett
On Wed, Aug 5, 2009 at 11:34 AM, Charles R Harris 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 were that CUDA was only avai

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 wrote: > From: Charles R Harris > Subject: [Numpy-discussion] BOF c coders. > To: "numpy-discussion" > Date

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Keith Goodman
On Wed, Aug 5, 2009 at 12:14 PM, Robert Kern wrote: > On Wed, Aug 5, 2009 at 14:11, Pierre GM wrote: >> >> And, er... masked arrays anyone ? > > 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

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 GM wrote: >> >> And, er... masked arrays anyone ? > > That was what I suggested. The very first response, even. I know, Robert, and I thank you for that. My comment was intended to the later posters... ___

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Robert Kern
On Wed, Aug 5, 2009 at 14:11, Pierre GM wrote: > > And, er... masked arrays anyone ? 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 own mad attempt to interpret

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Pierre GM
And, er... masked arrays anyone ? 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 Southey >> wrote: >> >>> On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodman >>> wrote: >>> On Tue, Aug 4, 2009 at 1

[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 BO

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 wrote: > From: Chris Kees > Subject: Re: [Numpy-discussion] PDE BoF at SciPy2009 > To: "Discussion of Numerical Python" > Date: Wednesday, August 5, 2009, 11:23 AM > OK.  I contacted several > attendees who are not

Re: [Numpy-discussion] GPU Numpy

2009-08-05 Thread Charles R Harris
On Wed, Aug 5, 2009 at 4:45 AM, Romain Brette 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 dtype (gpufloat)

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 o

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

[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 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 wrote: > From: Daniel Wheeler > Subject: Re: [Numpy-discussion] PDE BoF at SciPy2009 > To: "Discussion of N

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

2009-08-05 Thread Scott Sinclair
> 2009/8/5 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

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 Southey wrote: On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodman wrote: On Tue, Aug 4, 2009 at 1:53 PM, Bruce Southey wrote: On Tue, Aug 4, 2009 at 1:40 PM, Gökhan Sever wrote: This

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 A

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 comple

Re: [Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread josef . pktd
On Wed, Aug 5, 2009 at 10:30 AM, wrote: > On Wed, Aug 5, 2009 at 9:44 AM, John Hunter 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 a

Re: [Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread Ralf Gommers
On Wed, Aug 5, 2009 at 9:44 AM, John Hunter 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 value to be

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Hans Meine
On Tuesday 04 August 2009 22:06:38 Keith Goodman wrote: > On Tue, Aug 4, 2009 at 12:59 PM, Gael > > Varoquaux wrote: > > On Tue, Aug 04, 2009 at 01:54:49PM -0500, Gökhan Sever wrote: > >>I see that you should have a browser embedding plugin for Ipyhon > >> which you don't want to share with us

Re: [Numpy-discussion] yubnub and numpy examples

2009-08-05 Thread josef . pktd
On Wed, Aug 5, 2009 at 9:44 AM, John Hunter 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 value to be >

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Keith Goodman
On Wed, Aug 5, 2009 at 1:40 AM, Bruce Southey wrote: > On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodman wrote: >> On Tue, Aug 4, 2009 at 1:53 PM, Bruce Southey wrote: >>> On Tue, Aug 4, 2009 at 1:40 PM, Gökhan Sever wrote: This is the loveliest of all solutions: c[isfinite(c)].mean() >>

Re: [Numpy-discussion] PDE BoF at SciPy2009

2009-08-05 Thread Daniel Wheeler
On Mon, Aug 3, 2009 at 3:57 PM, Chris Kees wrote: > Is there any interest in a BoF session on implementing numerical > methods for partial differential equations using modules like numpy, > cython, mpi4py, etc.? Yes! My colleague, Jon Guyer, will be attending the meeting and speaking on this subje

[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=g2&command= Then

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 ou

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

2009-08-05 Thread Bruce Southey
On Tue, Aug 4, 2009 at 9:42 PM, Charles R Harris wrote: > > > On Tue, Aug 4, 2009 at 7:18 PM, Jochen 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 with high values: >> >> In [47]:

Re: [Numpy-discussion] Why NaN?

2009-08-05 Thread Bruce Southey
On Tue, Aug 4, 2009 at 4:05 PM, Keith Goodman wrote: > On Tue, Aug 4, 2009 at 1:53 PM, Bruce Southey wrote: >> On Tue, Aug 4, 2009 at 1:40 PM, Gökhan Sever wrote: >>> This is the loveliest of all solutions: >>> >>> c[isfinite(c)].mean() >> >> This handling of nonfinite elements has come up before.

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

2009-08-05 Thread Dave
Charles R Harris 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]: a=np.random.rand(1