#include #include "nr.h" using namespace std; void NR::tred2(Mat_IO_DP &a, Vec_O_DP &d, Vec_O_DP &e) { int l,k,j,i; DP scale,hh,h,g,f; int n=d.size(); for (i=n-1;i>0;i--) { l=i-1; h=scale=0.0; if (l > 0) { for (k=0;k= 0.0 ? -sqrt(h) : sqrt(h)); e[i]=scale*g; h -= f*g; a[i][l]=f-g; f=0.0; for (j=0;j