Re: [Numpy-discussion] Logical Selector

2007-07-20 Thread Geoffrey Zhu
>Hi, >Well maybe it is a bug on my box (thunderbird) but the topic of the thread is "-lmkl_lapack64 on i368 ??". >Nothing to do with "Logical Selector" ;) Should I post another mail about this topic? >Xavier >ps : I'm just sorry for the noise if it is a bug on my side. >-- Hi Xavier, I di

Re: [Numpy-discussion] Logical Selector

2007-07-18 Thread Robert Kern
Xavier Gnata wrote: > Well maybe it is a bug on my box (thunderbird) but the topic of the > thread is "-lmkl_lapack64 on i368 ??". > Nothing to do with "Logical Selector" ;) > Should I post another mail about this topic? > > Xavier > ps : I'm just sorry for the noise if it is a bug on my side.

Re: [Numpy-discussion] Logical Selector

2007-07-18 Thread Xavier Gnata
Eric Firing wrote: > Robert Kern wrote: > >> Geoffrey Zhu wrote: >> >>> Hi Everyone, >>> >>> I am finding that numpy cannot operate on boolean arrays. For example, >>> the following does not work: >>> >>> x=3Darray([(1,2),(2,1),(3,1),(4,1)]) >>> >>> x[x[:,0]>x[:,1] and x[1:]>1,:] >>> >>> It

Re: [Numpy-discussion] Logical Selector

2007-07-18 Thread Eric Firing
Robert Kern wrote: > Geoffrey Zhu wrote: >> Hi Everyone, >> >> I am finding that numpy cannot operate on boolean arrays. For example, >> the following does not work: >> >> x=3Darray([(1,2),(2,1),(3,1),(4,1)]) >> >> x[x[:,0]>x[:,1] and x[1:]>1,:] >> >> It gives me an syntax error: >> >>

Re: [Numpy-discussion] Logical Selector

2007-07-18 Thread Robert Kern
Geoffrey Zhu wrote: > Hi Everyone, > > I am finding that numpy cannot operate on boolean arrays. For example, > the following does not work: > > x=3Darray([(1,2),(2,1),(3,1),(4,1)]) > > x[x[:,0]>x[:,1] and x[1:]>1,:] > > It gives me an syntax error: > > --- > Traceback (most re

[Numpy-discussion] Logical Selector

2007-07-18 Thread Geoffrey Zhu
Hi Everyone, I am finding that numpy cannot operate on boolean arrays. For example, the following does not work: x=3Darray([(1,2),(2,1),(3,1),(4,1)]) x[x[:,0]>x[:,1] and x[1:]>1,:] It gives me an syntax error: --- Traceback (most recent call last): File "", line 1, in x[