mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
DOC: Update documentation for 3.4.x
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
b0f877f8e0
commit
b0eded878d
@@ -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;
|
||||
|
||||
@@ -2,6 +2,7 @@ static bool eigen_did_assert = false;
|
||||
#define eigen_assert(X) if(!eigen_did_assert && !(X)){ std::cout << "### Assertion raised in " << __FILE__ << ":" << __LINE__ << ":\n" #X << "\n### The following would happen without assertions:\n"; eigen_did_assert = true;}
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
#include <Eigen/Eigen>
|
||||
|
||||
#ifndef M_PI
|
||||
|
||||
Reference in New Issue
Block a user