結果 : check if two matrices are equal python