diff --git a/t.cc b/t.cc index 915a989..d47aef9 100644 --- a/t.cc +++ b/t.cc @@ -438,14 +438,15 @@ cout < > a; cin >>a; int n=a.nrows(); NRMat > u(n,n),v(n,n); NRVec >w(n); -gdiagonalize(a,w,&u,&v,0,n,0,1); +gdiagonalize(a,w,&u,&v); +//gdiagonalize(a,w,&u,&v,0,n,0,1); cout <> m; +f.close(); + +NRVec eivals(m.nrows()); +NRMat > m_aux = m; +NRMat > m_test = m; + +cout << "hermiticity error = " <<(m_aux.transpose(true) - m_aux).norm()< > eivalsc(eivals); + +NRMat > m4 = m.transpose(true); + +cout <<"unitarity error "<< (m4*m).norm(true)< > m5(m.nrows(),m.nrows()); +for(int i=0; i(m(j,i).real(), - m(j,i).imag()); + +cout << "conjugatetest "<<(m4-m5).norm()< > m1= m_aux * m; +NRMat > m1x = m; m1x.diagmultr(eivalsc); +cout << "test m1 m1x "<<(m1-m1x).norm()< > m2= m.transpose(true) * m1; +//NRMat > m2b= m * m_aux * m.transpose(true); +cout <<"check "< > m3= vl.transpose(true)* m_aux *vr; +cout <<"check2 "<