I am trying to calculate the inverse of a matrix in c++ using Eigen.
The inverse calculated is wrong, as I tried multiplying the original matrix with its inverse and I did not get the Identity matrix.
I also checked if the matrix is singular by calculating its determinant, but that was not 0.
The matrix is a dynamic-size matrix of doubles, which gets filled with values inside a function.
In the code it looks like this:
Eigen::MatrixXd inverse_ee = knotenadmittanzmatrix_ee.inverse();
I added pictures of the matrix "knotenadmittanzmatrix_ee" (Knotenadmittanz Extern-Extern), and the inverse I get (Knotenadmittanz Extern-Extern invertiert).
Can anyone help me with this problem?