Re: [Numpy-discussion] Comparison of arrays

2009-02-09 Thread Brent Pedersen
On Mon, Feb 9, 2009 at 6:02 AM, Neil wrote: > >> > I have two integer arrays of different shape, e.g. >> > >> > >>> a >> > >> > array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) >> > >> > >>> b >> > >> > array([ 3, 4, 5, 6, 7, 8, 9, 10]) >> > >> > How can I extract the values that belong to th

Re: [Numpy-discussion] Comparison of arrays

2009-02-09 Thread Francesc Alted
A Monday 09 February 2009, Neil escrigué: > > > I have two integer arrays of different shape, e.g. > > > > > > >>> a > > > > > > array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) > > > > > > >>> b > > > > > > array([ 3, 4, 5, 6, 7, 8, 9, 10]) > > > > > > How can I extract the values that belong

Re: [Numpy-discussion] Comparison of arrays

2009-02-09 Thread Neil
> > I have two integer arrays of different shape, e.g. > > > > >>> a > > > > array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) > > > > >>> b > > > > array([ 3, 4, 5, 6, 7, 8, 9, 10]) > > > > How can I extract the values that belong to the array a > > exclusively i.e. array([1,2]) ? > You cou

Re: [Numpy-discussion] Comparison of arrays

2009-02-09 Thread Nils Wagner
On Mon, 9 Feb 2009 09:45:02 +0100 Francesc Alted wrote: > A Monday 09 February 2009, Nils Wagner escrigué: >> Hi all, >> >> I have two integer arrays of different shape, e.g. >> >> >>> a >> >> array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) >> >> >>> b >> >> array([ 3, 4, 5, 6, 7, 8, 9, 10

Re: [Numpy-discussion] Comparison of arrays

2009-02-09 Thread Francesc Alted
A Monday 09 February 2009, Nils Wagner escrigué: > Hi all, > > I have two integer arrays of different shape, e.g. > > >>> a > > array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) > > >>> b > > array([ 3, 4, 5, 6, 7, 8, 9, 10]) > > How can I extract the values that belong to the array a > exclusi

[Numpy-discussion] Comparison of arrays

2009-02-09 Thread Nils Wagner
Hi all, I have two integer arrays of different shape, e.g. >>> a array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) >>> b array([ 3, 4, 5, 6, 7, 8, 9, 10]) How can I extract the values that belong to the array a exclusively i.e. array([1,2]) ? Nils __