Bugzilla – Attachment 763 Details for
Bug 1366
TriangularView<Derived, UnitLower>::coeff() does not return 1.0 for diagonal entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
code demonstrating that coeff() is not affected by the mode
test2.cpp (text/x-c++src), 566 bytes, created by
Jeff Trull
on 2016-12-20 02:51:20 UTC
(
hide
)
Description:
code demonstrating that coeff() is not affected by the mode
Filename:
MIME Type:
Creator:
Jeff Trull
Created:
2016-12-20 02:51:20 UTC
Size:
566 bytes
patch
obsolete
>// testcase to demonstrate failure of UnitLower to deliver a unit diagonal > >#include <random> >#include <iostream> > >#include <Eigen/Dense> > >int main() { > using namespace Eigen; > Matrix<double, 3, 3> mat; > mat << 1, 2, 3, > 4, 0, 6, > 7, 8, 9 ; > std::cout << "mat=\n" << mat << "\n"; > > auto unitlower = mat.template triangularView<Lower>(); > for (int i = 0; i < mat.rows(); ++i) { > for (int j = 0; j < mat.cols(); ++j) { > std::cout << unitlower.coeff(i, j) << ", "; > } > std::cout << "\n"; > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1366
: 763