title: Matrix multiplication in numpy
body: <p>I have 2 boolean matrices in numpy and am using the .dot() function to multiply them and the results I get is a boolean matrix.</p>
  
  <p>Is there a way to the get the sum of the product of the respective elements during the multiplication that I would get if I was doing matrix multiplication and the elements were either 1 or 0?</p>
  
  <p>i.e. the elements in the resulting matrix should either be 0 or non-zero integers.</p>
  
  <p>Thanks in advance.</p>