voticity,
The documentation of TNT and JAMA are fine. It's your knowledge that is substandard. I'm not saying that to be mean, but to point out that you seriously lack C++ knowledge if you can't get anywhere with this package. Perhaps I was wrong to recommend it. But in general you seem to be trying to bite off more than you can chew. If you can't figure this stuff out, how can you guarantee that your results are correct? All your research will be tainted if you program by "magic" (a term referring to somebody who programs by tinkering with a program until it seems to work).
In any case, I just downloaded both to my hard drive, wrote a program and compiled it in Visual Studio .NET in about 5 minutes. Here's the process.
1) download both tnt and JAMA. I put them both in c:\tnt.
2) create a project in c:\tnt. (not a good idea, you should keep your code separate from TNT, but I'm trying to keep things simple). I made it a console application since there is no need for windows for this.
3) put the following code in the the main function:
Code:
#include "stdafx.h"
#include "tnt.h"
#include "jama_eig.h"
int _tmain(int argc, _TCHAR* argv[])
{
TNT::Array2D<double> Data;
TNT::Array1D<double> Result;
//assign values to Data here ... (not shown)
// create an Eigenvalue object
JAMA::Eigenvalue<double> E (Data);
// compute the Eigenvalues
E.getRealEigenvalues (Result);
return 0;
}
If you don't get how this follows from the documentation, you need to learn C++. You're basically asking us to teach you C++ via a bulletin board. Not gonna happen. Not because I'm being willful, the code above shows I'm trying to help, but because there is just so much for you to learn. Look at it this way - imagine trying to do your research by posting to a bulletin board "I don't know what an Eigenvalue is, or a matrix, but I've gotta compute some to solve my problem. Can someone tell me how." The question, while it may sound straightforward, indicates that the person does not have the math skills to solve the problem. A definition of what a matrix and eigenvalue is really isn't going to be much help. They need to take a course in linear algerbra. Your C/C++ questions are along the same lines.