Registered Member
|
I have the equation in the form aX=b. where 'a' and 'b' are 3X1 row matrices. I need to solve for X, which will be a 3X3 diagonal matrix.
Could someone please guide me as to how I can achieve this using the Eigen library? Thanks in advance |
Moderator
|
You're simply looking for a coefficient-wise division, e.g., you can obtain the diagonal vector as:
or:
Ad to see the above vector as a diagonal matrix:
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]