#include #include "nr.h" using namespace std; void NR::zrhqr(Vec_I_DP &a, Vec_O_CPLX_DP &rt) { int j,k; complex x; int m=a.size()-1; Mat_DP hess(m,m); for (k=0;k=0;k--) { if (real(rt[k]) <= real(x)) break; rt[k+1]=rt[k]; } rt[k+1]=x; } }