Rev | Line | |
---|
[136] | 1 | #include <Eigen/Dense>
|
---|
| 2 | #include <iostream>
|
---|
| 3 |
|
---|
| 4 | using namespace Eigen;
|
---|
| 5 | using namespace std;
|
---|
| 6 |
|
---|
| 7 | int main(int, char**)
|
---|
| 8 | {
|
---|
| 9 | cout.precision(3);
|
---|
| 10 | MatrixXf A = MatrixXf::Random(4,4);
|
---|
| 11 | RealSchur<MatrixXf> schur(4);
|
---|
| 12 | schur.compute(A, /* computeU = */ false);
|
---|
| 13 | cout << "The matrix T in the decomposition of A is:" << endl << schur.matrixT() << endl;
|
---|
| 14 | schur.compute(A.inverse(), /* computeU = */ false);
|
---|
| 15 | cout << "The matrix T in the decomposition of A^(-1) is:" << endl << schur.matrixT() << endl;
|
---|
| 16 |
|
---|
| 17 | return 0;
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.