[eigen] Diagonal

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


So, I've retrieved the diagonal of a square nxn MatrixXd A with:

Diagonal diag = A.diagonal() ;


however oddly diag is a column vector and I cannot use it in
operations (like R = A - diag).

Can I use a diagonal matrix in regular MatrixXd operations?



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/