Bugzilla – Attachment 213 Details for
Bug 354
Eigenvalues are incorrectly calculated in some case
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
Small program to calculate the eigenvalues of the matrix
main.cpp (text/x-c++src), 683 bytes, created by
Philippe Widmer
on 2011-09-28 15:11:45 UTC
(
hide
)
Description:
Small program to calculate the eigenvalues of the matrix
Filename:
MIME Type:
Creator:
Philippe Widmer
Created:
2011-09-28 15:11:45 UTC
Size:
683 bytes
patch
obsolete
>#include <fstream> >#include <iostream> >#include <Eigen/Core> >#include <Eigen/Dense> >#include <Eigen/Eigenvalues> > >int main() >{ > Eigen::MatrixXd Mat = Eigen::MatrixXd::Zero( 2970, 2970 ); > > // read matrix > std::ifstream file( "Matrix.txt" ); > unsigned int i = 0; > while( !file.eof() ) > { > std::string line; > std::getline( file, line ); > > if( file.eof() ) > break; > > std::stringstream str(line); > unsigned int j = 0; > while( !str.eof() ) > { > double temp; > str >> temp; > Mat( i,j ) = temp; > ++j; > } > > ++i; > } > > Eigen::SelfAdjointEigenSolver<Eigen::MatrixXd> solve( Mat, Eigen::EigenvaluesOnly ); > std::cout << solve.eigenvalues() << 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 354
:
213
|
214