Registered Member
|
If I had a symmetric dense matrix in which I store only the upper triangular part, Could I call the inverse method taking in account of its symmetry ?
example:
thanks |
Registered Member
|
I edited a wrong old question
Could someone help me? |
Moderator
|
It's usually not recommended to explicitly compute the inverse. If what you want is solving for Ax=b, or more generally doing A^-1 * B, you can do:
A.selfadjointView<Eigen::Upper>().llt().solve(B) Set B to the identity to get the explicit inverse. |
Moderator
|
Note that for such a small matrix, this might not be faster than the general 3x3 inverse code which has a specialization for the 3x3 case.
|
Registered Member
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]