Registered Member
|
Being L and elem to matrices of the same sizes and being elem a triangular matrix I am trying to multiply elem to an scalar but taking advantage of elem's triangularity like this:
But I am getting the next error:
Does anyone know a way of doing that operation?. I don't if it is possible, I've been googling for while and I haven't found any answer. |
Moderator
|
not supported yet, simply nest the product inside the view:
L.template triangularView<Lower>() += (elem*N(i,0)).template triangularView<Lower>(); |
Registered Member
|
Thanks for the answer. No way I would have found out that by myself. Unfortunately it seems that the operator += is not supported somehow using your line of code.
Right now this is what I am doing:
|
Moderator
|
L.template triangularView<Lower>() += elem*N(i,0);
look at this section: http://eigen.tuxfamily.org/dox-devel/Qu ... iagTriSymm |
Registered Member
|
Dear ggael, Are you planning to support this feature? (scalar multiplication with a triangularView)? And how about the following work-around:
Could that be preferred over your suggested workaround of nesting the product inside the view? best, Niek |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell