I have a NxN symmetric matrix C which has all positive eigenvalues.
When I take the log of C, I get negative eigenvalues in the result. If I do log(C+1) I still get negative eigenvalues...
I am looking for an operation similar to a log, that will keep the matrix with all positive eigenvalues.
If matrix $A = (a_{ij})$ is positive definite, so does every matrix of the form $(p(a_{ij}))^{\color{blue}{[1]}}$ where $p(x)$ is any non-constant polynomial with non-negative coefficients.
When $p(x)$ is a power of $x$, i.e. $p(x) = x^k$ for some $k > 0$, this is a corollary of Schur product theorem. Since positive definite matrices are closed under positive linear combinations, the matrix $(p(a_{ij}))$ will be positive definite when $p(x)$ is a positive linear combination of powers of $x$. i.e. when $p(x)$ has the form $\sum_{k=1}^m b_k x^k$ where $b_k \ge 0$ for all $k$ and $\ne 0$ for some $k$. Notice the matrix whose entries are all one are positive semi-definite and the sum of a positive semi-definite matrix and a positive definite matrix is positive definite. The matrix $(p(a_{ij}))$ is also positive definite when $p(x)$ is a non-constant polynomial with non-negative coefficients.
It is easy to generalize this result to power series.
For example, for any positive definite matrix $A = (a_{ij})$,
Notes