Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread David Cournapeau
Joris De Ridder wrote: > > Thanks. I've a few questions concerning the objections against ctypes. > It's part of the Python standard library, brand new from v2.5, and it > allows creating extensions. Disregarding it, requires therefore good > arguments, I think. I trust you that there are, bu

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Jon Wright
Christopher Barker wrote: > By the way, I know Greg Ewing was asked about better support for numpy > arrays in Pyrex, and he said "I'm *definitely* not going to > re-implement C++ templates!" -- is there talk of creating a way to write > extensions that could operate on numpy arrays of arbitrary

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread william ratcliff
Will Cython be compatible with OpenMP? I tried with weave some time back and failed miserably. Has anyone tried with ctypes? Cheers, William On Fri, Mar 7, 2008 at 12:50 PM, Christopher Barker <[EMAIL PROTECTED]> wrote: > Joris De Ridder wrote: > > Thanks. I've a few questions concerning the o

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Christopher Barker
Joris De Ridder wrote: > Thanks. I've a few questions concerning the objections against ctypes. It's not so much an abjection (I think), but the fact that pyrex/Cython really are different beasts, with different goals. > For ctypes your extensions needs to be > compiled as a shared library,

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Pierre GM
On Friday 07 March 2008 12:25:13 Giorgio F. Gilestro wrote: > Ok, I see, thank you Pierre. > I thought scipy.stats would have been a widely used extension so I > didn't really consider the trivial possibility that simply wasn't > compatible with ma yet. Partly my fault here, as I should have porte

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Travis E. Oliphant
Giorgio F. Gilestro wrote: > Hi Everybody, > I have some arrays that sometimes need to have some of their values > masked away or, simply said, not considered during manipulation. > I tried to fulfill my purposes using both NaNs and MaskedArray but > neither of them really helped completely. > >

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Giorgio F. Gilestro
Ok, I see, thank you Pierre. I thought scipy.stats would have been a widely used extension so I didn't really consider the trivial possibility that simply wasn't compatible with ma yet. I had a quick look at the code and it really seems that ma handling can be achieved by replacing np.asarray wi

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Robin
On Fri, Mar 7, 2008 at 9:06 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Hi Robin, > > As Ondrej pointed out, the expectation is a full-time commitment to > the project. Other than that it sounds like you might be able to > participate, and it's worth noting that this being open source, if y

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Joris De Ridder
On 07 Mar 2008, at 10:02, Fernando Perez wrote: > Chris B gave what I think is a good reply to this, but feel free to > ask if you have further questions. I think it's important that we > reach some consensus on why this a good idea on technical grounds > without anyone feeling like the decision

Re: [Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Pierre GM
On Friday 07 March 2008 09:56:59 Giorgio F. Gilestro wrote: > Hi Everybody, > My understanding is that only a few functions will be able to properly > use MA during execution. Is this correct or am I missing something here? Giogio, You're right: there's no full support of masked arrays in Scipy y

[Numpy-discussion] behavior of masked arrays

2008-03-07 Thread Giorgio F. Gilestro
Hi Everybody, I have some arrays that sometimes need to have some of their values masked away or, simply said, not considered during manipulation. I tried to fulfill my purposes using both NaNs and MaskedArray but neither of them really helped completely. Let's give an example: from numpy impor

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Fernando Perez
On Fri, Mar 7, 2008 at 1:17 AM, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > On 07.03.2008, at 09:59, Fernando Perez wrote: > > > I doubt it's much better, and that's part of the point of the project: > > to identify the problems and fix them once and for all. Getting > > anything fixed in pyrex

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Konrad Hinsen
On 07.03.2008, at 09:59, Fernando Perez wrote: > I doubt it's much better, and that's part of the point of the project: > to identify the problems and fix them once and for all. Getting > anything fixed in pyrex was hard due to a very opaque development > process, but Cython is part of the Sage u

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Fernando Perez
Hi Robin, On Thu, Mar 6, 2008 at 12:48 PM, Robin <[EMAIL PROTECTED]> wrote: > On Thu, Mar 6, 2008 at 6:15 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > > Any student interested in this should quickly respond on the list; > > such a project would likely be co-mentored by people on the Numpy

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Fernando Perez
On Thu, Mar 6, 2008 at 3:13 PM, Joris De Ridder <[EMAIL PROTECTED]> wrote: > > On 06 Mar 2008, at 19:15, Fernando Perez wrote: > > > http://www.cython.org/ > > is an evolved version of Pyrex (which is used by numpy and scipy) with > > lots of improvements. We'd like to position Cython as the p

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-07 Thread Fernando Perez
Hi Pierre, On Thu, Mar 6, 2008 at 10:29 AM, Pierre GM <[EMAIL PROTECTED]> wrote: > On Thursday 06 March 2008 13:15:27 Fernando Perez wrote: > > - Rewriting the existing ndarray subclasses that ship with numpy, such > > as record arrays, in cython. In doing this, benchmarks of the > > relat