Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.086 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'python': 0.11; 'numpy': 0.16; 'unsigned': 0.16; 'index': 0.16; 'bit': 0.19; 'skip:1 30': 0.19; 'to:2**1': 0.27; 'to:no real name:2**1': 0.29; 'message- id:@mail.gmail.com': 0.30; 'problem': 0.35; 'received:google.com': 0.35; 'follows:': 0.38; 'to:addr:python-list': 0.38; 'heard': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'no.': 0.61; 'first': 0.61; 'dear': 0.65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=JahRIiQwWVgTdVnNs+tzPiQSISpSZJMM76ILn8q4V/c=; b=pckyljAx5TqMEAiPHKaVQ6lsN7+TBKEjvOmKIGdWQT+CA5Pdn7fkaJUwFatjFpJzzX SWe8rU0lpbjacamZBXsJGHtAZMPeFw5ba1MZvf/wFd3i4k+AE33drZFx4zv8CVuC28yj f+qee0B9WAsXX33JVh51gk1Rk6+C6eZrmiYuBGIgx0nRjwHglG92p4qIMIX18J2bEz38 z9sgXOdsC4bUIc4s6hVfpNsAX8T8FrxGD/ckEVDPtTzy/wdLZL8QszHooe7vStIFPeB6 MBSPsr/tjJFw7Ur9Ou4bzTCPmpmCe955yuDedSA9IvoFXR62PB+sFajZiB6swMujxUQF iOpQ== X-Received: by 10.60.173.3 with SMTP id bg3mr11168512oec.2.1413611902910; Fri, 17 Oct 2014 22:58:22 -0700 (PDT) MIME-Version: 1.0 From: Artur Bercik Date: Sat, 18 Oct 2014 14:58:02 +0900 Subject: Extract Indices of Numpy Array Based on Given Bit Information To: python-list@python.org, numpy-discussion@scipy.org Content-Type: multipart/alternative; boundary=047d7bd7620652c92e0505ac2b8f X-Mailman-Approved-At: Sat, 18 Oct 2014 08:11:07 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413612668 news.xs4all.nl 2858 [2001:888:2000:d::a6]:35041 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3913 X-Received-Body-CRC: 174715364 Xref: csiph.com comp.lang.python:79255 --047d7bd7620652c92e0505ac2b8f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear Python and Numpy Users: My data are in the form of '32-bit unsigned integer' as follows: myData =3D np.array([1073741824, 1073741877, 1073742657, 1073742709, 1073742723, 1073755137, 1073755189,1073755969],dtype=3Dnp.int32) I want to get the index of my data where the following occurs: Bit No. 0=E2=80=931 Bit Combination: 00 How can I do it? I heard this type of problem first time, please help me. Artur --047d7bd7620652c92e0505ac2b8f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Python and Numpy Users:

My d= ata are in the form of '32-bit unsigned integer' as follows:
myData =3D np.array([1073741824, 1073741877, 1073742657, 1073742709, 10737= 42723, 1073755137, 1073755189,1073755969],dtype=3Dnp.int32)

I want t= o get the index of my data where the following occurs:

Bit No. 0=E2= =80=931
Bit Combination: 00

How can I do it? I heard this type of= problem first time, please help me.

Artur
--047d7bd7620652c92e0505ac2b8f--