title: How to compare two arrays in python with 1s for hits and 0s for non-hits?
body: <p>I want to compare two numpy arrays with the same size together. I want the similar answer like Matlab:</p>
  
  <pre><code>  a = [ 1 2 3];
    b = [ 1 -2 3];
    c = a==b; % c = [1 0 1]
  </code></pre>
  
  <p>How can I do that in python? is there any function or I should do that with code?</p>
  
  <p>Thanks :)</p>