Extension of partial diagonals of matrices I