Summary: | assigning products to traingularView does not warn for size mismatch | ||
---|---|---|---|
Product: | Eigen | Reporter: | Jitse Niesen <jitseniesen> |
Component: | Core - matrix products | Assignee: | Nobody <eigen.nobody> |
Status: | CONFIRMED --- | ||
Severity: | Unit Test Required | CC: | chtz |
Priority: | Low | ||
Version: | 3.2 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Jitse Niesen
2014-04-04 17:34:52 UTC
I added an assertion https://bitbucket.org/eigen/eigen/commits/4544bc9 That fixes the immediate problem, we should add a regression-test and transplant to 3.2 (therefore I leave this bug open for now) I'm actually not sure anymore, whether my patch might be too strict. E.g., shall the following work? MatrixXd m1(4,3), m2(3,3); m1.triangularView<Upper>() = m2*m2; There is always the workaround of inserting a .topRows(3) after m1. -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/784. |