title: DeprecationWarning: elementwise comparison failed; this will raise an error in the future. While broadcasting large arrays
body: <p>I'm trying to compare each element of one array to each element in another one. The arrays are fairly large - </p>
  
  <pre class="lang-py prettyprint-override"><code>arr1.shape = (59913, )
  
  arr2.shape = (988114, )
  </code></pre>
  
  <p>To do this comparison, I use the following code:</p>
  
  <pre><code>A = np.array(arr1[:])[:, np.newaxis] == np.array(arr1[:])[np.newaxis, :]
  np.sum(A)
  </code></pre>
  
  <p>The strange thing is that when i limit the length of either of <code>arr1</code> or <code>arr2</code> - everything works as expected and i get a NxN boolean matrix as A, but when I try to run it for the full arrays - i get the following warning -</p>
  
  <blockquote>
    <p><strong>DeprecationWarning:</strong>  elementwise comparison failed; this will raise an error in the future.</p>
  </blockquote>
  
  <p>and a single output: <strong>False</strong></p>
  
  <p>Any help would be highly appreciated.</p>