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.
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?
i.e. the elements in the resulting matrix should either be 0 or non-zero integers.
Thanks in advance.