結果 : check if matrices are equal python