TriangularView<Derived, UnitLower>::coeff() does not return 1.0 for diagonal entries
Submitted by Jeff Trull
Assigned to Nobody
Link to original bugzilla bug (#1366)
Version: 3.3 (current stable)
Description
Created attachment 763
code demonstrating that coeff() is not affected by the mode
If you assign a TriangularView to a dense matrix, the diagonal entries are 1.0 as expected. However, if you use the coeff() method to access entries in the TriangularView, you get the underlying values, not the 0 (above the diagonal) or 1 (on the diagonal) values you would expect.
The same appears to be true for UnitUpper.
Attachment 763, "code demonstrating that coeff() is not affected by the mode":
test2.cpp