Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -0,0 +1,23 @@
|
|||
#include <Eigen/Dense>
|
||||
#include <cstdlib>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
using namespace Eigen;
|
||||
int rows, columns;
|
||||
if (!(std::cin >> rows >> columns))
|
||||
return EXIT_FAILURE;
|
||||
MatrixXd matrix(rows, columns);
|
||||
for (int row = 0; row < rows; ++row) {
|
||||
for (int column = 0; column < columns; ++column) {
|
||||
if (!(std::cin >> matrix(row, column)))
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
auto svd = matrix.bdcSvd().compute(matrix, ComputeFullU | ComputeFullV);
|
||||
std::cout << std::setprecision(15) << std::fixed << svd.matrixU() << "\n\n"
|
||||
<< svd.singularValues() << "\n\n"
|
||||
<< svd.matrixV() << '\n';
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue