Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
snippets
Tridiagonalization_compute.cpp
Go to the documentation of this file.
1
Tridiagonalization<MatrixXf>
tri
;
2
MatrixXf
X
= MatrixXf::Random(4,4);
3
MatrixXf
A
=
X
+
X
.transpose();
4
tri
.compute(
A
);
5
cout <<
"The matrix T in the tridiagonal decomposition of A is: "
<< endl;
6
cout <<
tri
.matrixT() << endl;
7
tri
.compute(2*
A
);
// re-use tri to compute eigenvalues of 2A
8
cout <<
"The matrix T in the tridiagonal decomposition of 2A is: "
<< endl;
9
cout <<
tri
.matrixT() << endl;
X
MatrixXf X
Definition:
Tridiagonalization_compute.cpp:2
A
Definition:
test_numpy_dtypes.cpp:254
tri
Tridiagonalization< MatrixXf > tri
Definition:
Tridiagonalization_compute.cpp:1
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19