Hi,
I'm struggling to find an appropriate approach for obtaining the inverse square root of my covariance matrices in order to weight the residuals. For some covariance matrices, it seems my matrices are close to not being
symmetric definite positive and thus my approach using LLT decomposition gives NaN. I also found that Eigen has a operatorInverseSqrt but it seems to give a different result. It is not the same upper triangular matrix from LLT, but a symmetric one
with similar values to that obtained by LLT. I'm unsure if this resulting matrix is an appropriate replacement (since it appears to handle numerically difficult matrices better, i.e. does not give me NaN) as-is or if I should maybe grab the upper triangle of this matrix.
Best,
Matias