diagonalises