check if matrix is equal numpy are code example Example: check if numpy arrays are equal (A==B).all()