complement matrice, function comparaison