#include #include "nr.h" using namespace std; void NR::sor(Mat_I_DP &a, Mat_I_DP &b, Mat_I_DP &c, Mat_I_DP &d, Mat_I_DP &e, Mat_I_DP &f, Mat_IO_DP &u, const DP rjac) { const int MAXITS=1000; const DP EPS=1.0e-13; int j,l,n,ipass,jsw,lsw; DP anorm,anormf=0.0,omega=1.0,resid; int jmax=a.nrows(); for (j=1;j