#include "nr.h" void NR::resid(Mat_O_DP &res, Mat_I_DP &u, Mat_I_DP &rhs) { int i,j; DP h,h2i; int n=u.nrows(); h=1.0/(n-1); h2i=1.0/(h*h); for (j=1;j