You can use the Any() or All() functions to summarize matrix comparison results. Any() returns a 1 if any element is nonzero. All() returns a 1 if all elements are nonzero.
Min() or Max() return the minimum or maximum element from the matrix or matrices given as arguments.
Min( A ); // returns 1
Max( A ); // returns 12
Min( A, B ); // returns 0