Let $Z$ be a square matrix; denote by $\text{diag}_k(Z)$ the matrix containing the center $2k+1$ diagonals of $Z$; i.e., if $T=\text{diag}_k(Z)$, then $$T_{ij}=Z_{ij}, \;\mathrm{if}\; |i-j|\leq k, \mathrm{and }\ T_{ij}=0 \; \mathrm{otherwise}.$$

Let $G_1$ be a nonnegative Hermitian matrix, and construct $X_1=(G_1+\lambda I)^{-1}$ for some given positive $\lambda$. Let $G_2$ be a Hermitian matrix that satisfies $G_2=\text{diag}_k(G_2)$ for some $k$, and let $X_2=(G_2+I)^{-1}$ be such that $$\text{diag}_k(X_1)=\text{diag}_k(X_2).$$

Two questions:

Is there any closed form for $G_2$ for an arbitrary $k$?

For an arbitrary $k$, when is the solution $G_2$ a non-negative matrix?

Thanks