Skip to content

Commit

Permalink
nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumelo Lephadi committed Nov 2, 2018
1 parent 44606b0 commit 37a81e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pca.cpp
Expand Up @@ -144,10 +144,10 @@ void pca::set_eigen(){
this->covariance_matrix[1][0],
this->covariance_matrix[1][1];
std::cout << "Here is the matrix A:\n" << A << std::endl;
SelfAdjointEigenSolver<Matrix2f> eigensolver(A);
if (eigensolver.info() != Success) abort();
std::cout << "The eigenvalues of A are:\n" << eigensolver.eigenvalues() << std::endl;
std::cout << "Here's a matrix whose columns are eigenvectors of A \n"
<< "corresponding to these eigenvalues:\n"
<< eigensolver.eigenvectors() << std::endl;
SelfAdjointEigenSolver<Matrix2f> eigensolver(A);
if (eigensolver.info() != Success) abort();
std::cout << "The eigenvalues of A are:\n" << eigensolver.eigenvalues() << std::endl;
std::cout << "Here's a matrix whose columns are eigenvectors of A \n"
<< "corresponding to these eigenvalues:\n"
<< eigensolver.eigenvectors() << std::endl;
}

0 comments on commit 37a81e6

Please sign in to comment.