[eigen] triangular * scalar product?

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

It looks like triangularView doesn't support multiplication by scalars (except in-place). Is this just an oversight, or is there some reason implementation would be difficult?

To be precise, the following does not compile:

#include <Eigen/Core>

int main() {
    Eigen::MatrixXd m1(5, 5);
    Eigen::MatrixXd m2(5, 5);
    m2 = m1.triangularView<Eigen::Upper>() * 3.0;


Jim Bosch

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