Commuting matrices

In linear algebra, two matrices and are said to commute if , or equivalently if their commutator is zero. Matrices that commute with matrix are called the commutant of matrix (and vice versa).

A set of matrices is said to commute if they commute pairwise, meaning that every pair of matrices in the set commutes.