#include "matrixUtils.h" #include "errorMsg.h" #include #include #include #include #include Vdouble getDiagonalFromMatrix(VVdouble &mat){ Vdouble diagonal; for (int i=0; itempMax){ // TEST DEBUG!!! if '>' is used, the first Max is chosen, if '>' the last max tempMax=vec[i]; tempArgMax=i; } } maxValue=tempMax; argmax=tempArgMax; } void findMinInVector(const Vdouble &vec, MDOUBLE &minValue, int &argmin) { Vdouble minusCopy(vec.size()); for (int i=0; i big) big=temp; if (big == 0.0) errorMsg::reportError("Singular matrix in routine ludcmp"); vv[i]=1.0/big; } for (j=0;j= big) { big=dum; imax=i; } } if (j != imax) { for (k=0;k=0;i--) { sum=b[i]; for (j=i+1;j