The macro
{
#include…
const int N = 3;
double e[N*N] = {
1, 4, 5,
4, 2, 6,
5, 6, 3
};
TMatrixDSym moo(N, e);
TMatrixDSymEigen me(moo);
TVectorD eigenval = me.GetEigenValues();
TMatrixD eigenvec = me.GetEigenVectors();
moo.Print();
eigenval.Print();
}
works fine. It produces moo which is a symmetric matrix from vector e. What changes should I be making if I already have a symmetric matrix Q, so that I can get eigenvalues of Q. thanks for your help.