title: Bitwise AND between hexadecimal arrays Numpy
body: <p>I would like to perform a Bitwise AND operation between two hexadecimal numpy arrays. However, NumPy does not seem to allow this operation between these arrays.</p>
  <pre class="lang-py prettyprint-override"><code>a = np.array(['0x2a75210031157', '0x2a75210031157', '0x2a75210031157',
  '0x100a588288688', '0x2a75210031157', '0x480066940820',
  '0x2a75210031157', '0x100a588288688', '0x2a75210031157',
  '0x100a588288688', '0x100a588288688', '0x480066940820',
  '0x2a75210031157', '0x800006000', '0x800006000'])
  
  b = np.array(['0x2a75210031157', '0x2a75210031157', '0x480066940820',
  '0x100a588288688', '0x480066940820', '0x100a588288688', 
  '0x400000', '0x480066940820', '0x100001000000', 
  '0x480066940820', '0x480066940820', '0x100a588288688', 
  '0x2a75210031157', '0x480066940820', '0x480066940820'])
  
  results = a &amp; b
  results2 = np.bitwise_and(a,b) 
  </code></pre>
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; a &amp; b
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
  
  &gt;&gt;&gt; np.bitwise_and(a,b)
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
  </code></pre>
  <p>Do you have any suggestions for doing this efficiently?</p>