Remove duplicate "const" qualifier for *matrix.