I have a symmetric positive definite matrix $L\in\mathbb{R}^{n\times n}$ and its Cholesky factor $G\in\mathbb{R}^n$ such that $L=GG^T$. Called $\mathrm{vec}:\mathbb{R}^{n\times n}\to\mathbb{R}^{n^2}$ the vectorization operator, and $K_{n}\in\mathbb{R}^{n^2\times n^2}$ the commutation matrix, i.e. the permutation matrix realizing $\mathrm{vec}(M)=K\mathrm{vec}(M^T)$ for $M\in\mathbb{R}^{n\times n}$, I know I can get $$ \frac{\partial \mathrm{vec}(L)}{\partial \mathrm{vec}(G)} = (I_{n^2}+K)(G\otimes I_n), $$ where $I_k\in\mathbb{R}^{k\times k}$ stands for the identity matrix. My goal would be to compute the derivative of the vectorization of the Cholesky factor $G$ with respect to the original matrix $L$. However, the matrix $I_{n^2}+K$ is singular, since $K$ has $-1$ as an eigenvalue.
Is there a way to compute the derivative $$ \frac{\partial \mathrm{vec}(G)}{\partial\mathrm{vec}(L)}? $$