DOC: Update documentation for 3.4.x

(cherry picked from commit b0eded878d)
This commit is contained in:
Rohit Goswami
2023-04-06 19:20:41 +00:00
committed by Antonio Sanchez
parent d4c24eca96
commit 6f9bffe8dd
4 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,8 @@ cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl;
VectorXd diag(5);
VectorXd subdiag(4);
VectorXd hcoeffs(4); // Scratch space for householder reflector.
internal::tridiagonalization_inplace(A, diag, subdiag, hcoeffs, true);
VectorXd workspace(5);
internal::tridiagonalization_inplace(A, diag, subdiag, hcoeffs, workspace, true);
cout << "The orthogonal matrix Q is:" << endl << A << endl;
cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl;
cout << "The subdiagonal of the tridiagonal matrix T is:" << endl << subdiag << endl;