Numpy numpy.matrix.any () method, we can compare each element of one matrix to another, or we can provide the axis on which we want to apply the comparison if any element matches this it returns true
Return: Return true if any match found else false
Example # 1:
In this example, we see that using the
matrix.any () method we can compare any two matrices that have different sizes, and if
matrix.any () any match, return true.
Pr Number 2: