J
jim.brown
Please refer me to the right place if this is the wrong place to post
this question.
I'm looking for an example of calling the Eigenvalue routines of JAMA
from a C++ program. The documentation says that the is the public method:
Eigenvalue (const TNT::Array2D< Real > &A)
I write this program
Array2D<double> A(3,3);
A[0][0] = 10.; A[0][1] = 0.; A[0][2] = 0.;
A[1][0] = 0.; A[1][1] = 20.; A[1][2] = 0.;
A[2][0] = 0.; A[2][1] = 0.; A[2][2] = 50.;
(which all works fine)
But then I can't figure out how to call the Eigenvalue routine.
I'm sure this is a C++ Template question not a JAMA or TNT
question. Here's what I tried:
Eigenvalue<&Array2D<double>A> EV;
and dozens of other lines.
I think I'm missing something fundamental.
Thanks
Jim
this question.
I'm looking for an example of calling the Eigenvalue routines of JAMA
from a C++ program. The documentation says that the is the public method:
Eigenvalue (const TNT::Array2D< Real > &A)
I write this program
Array2D<double> A(3,3);
A[0][0] = 10.; A[0][1] = 0.; A[0][2] = 0.;
A[1][0] = 0.; A[1][1] = 20.; A[1][2] = 0.;
A[2][0] = 0.; A[2][1] = 0.; A[2][2] = 50.;
(which all works fine)
But then I can't figure out how to call the Eigenvalue routine.
I'm sure this is a C++ Template question not a JAMA or TNT
question. Here's what I tried:
Eigenvalue<&Array2D<double>A> EV;
and dozens of other lines.
I think I'm missing something fundamental.
Thanks
Jim