title: How to compare two matrices (numpy ndarrays) element by element and get the min-value of each comparison
body: <p>So i want to make a comparison between two matrices (size: 98000 x 64). The comparison should be done element by element and i want to the min value of each comparison stored in a third matrix with the same dimensions. I also want the comparison being done without the use of loops! </p>
  
  <p>Here's a small example:</p>
  
  <pre><code>a=np.array([1,2,3])
  b=np.array([4,1,2])
  </code></pre>
  
  <p>a function that compares the 1 and the 4, the 2 and the 1 and the 3 and the 2 and stores it in the vector c</p>
  
  <p>answer</p>
  
  <pre><code>c=[1,1,2]
  </code></pre>
  
  <p>is there an efficient way to do this?</p>