On Fri, Dec 20, 2013 at 11:19:49AM +, Oscar Benjamin wrote:
> Date: Fri, 20 Dec 2013 11:19:49 +
> From: Oscar Benjamin
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion] Array search considering order
>
> On 19 December 2013 16:49, Andr
On 19 December 2013 16:49, Andrei Rozanski wrote:
>
> Sorry if I was not clear enough.
> The SO question is alike what I want. However, in my problem, Im not sure if
> there will be only one occurence.
> What I do expect is:
> Given one array (big one), to retrieve indexes for "query array" occur
On Thu, Dec 19, 2013 at 01:51:30PM +, Oscar Benjamin wrote:
> Date: Thu, 19 Dec 2013 13:51:30 +
> From: Oscar Benjamin
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion] Array search considering order
>
> On 19 December 2013 12:51, rootspin
On 19 December 2013 12:51, rootspin wrote:
> Hello,
>
> Need some help in searching arrays (Im new to numpy)
> Is it possible to search a array, using another array considering
> order/sequence?
>
> x = np.array([1,2,3,4,5,6], np.int32)
>
> y = np.array([1,4,3,2,6,5], np.int32)
>
> query= np.array
Hello,
Need some help in searching arrays (Im new to numpy)
Is it possible to search a array, using another array considering
order/sequence?
x = np.array([1,2,3,4,5,6], np.int32)
y = np.array([1,4,3,2,6,5], np.int32)
query= np.array([1,2,3],np.int32)
x versus query True
y versus query False