Bugzilla – Attachment 419 Details for
Bug 736
LDLT isPositive incorrectly returns false for a positive semidefinite matrix
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
Test case for LDLT::isPositive
psd_bug.cpp (text/x-c++src), 599 bytes, created by
Charles Collicutt
on 2014-02-04 17:34:36 UTC
(
hide
)
Description:
Test case for LDLT::isPositive
Filename:
MIME Type:
Creator:
Charles Collicutt
Created:
2014-02-04 17:34:36 UTC
Size:
599 bytes
patch
obsolete
>#include <Eigen/Eigen> >#include <iostream> > >// Compiled with command: >// $ g++ -std=c++11 psd_bug.cpp >int main(int,char**) >{ > Eigen::Matrix3f m; > m << 1, 0, 0, > 0, 0, 0, > 0, 0, 1; > > const bool testIsPsd = m.ldlt().isPositive(); > const bool testIsNegative = m.ldlt().isNegative(); > const auto eigenvals = m.eigenvalues(); > > std::cout << "isPositive() = " << std::boolalpha << testIsPsd << std::endl;; > std::cout << "isNegative() = " << std::boolalpha << testIsNegative << std::endl;; > std::cout << "Eigenvalues =\n" << eigenvals << std::endl; > > return 0; >}
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 736
: 419