simple.h ... avoiding warnign on unitnitialized irow and icol

This commit is contained in:
Jiri Pittner 2021-11-22 17:00:04 +01:00
parent c4eca1b991
commit 78efe19873

View File

@ -41,7 +41,8 @@ template<typename T, int n, int m>
T simple_gaussj(T (&a)[n][n],T (&b)[m][n]) //returns determinant, m is number of rhs to solve, inverse in a, solution in b
{
int indxc[n],indxr[n],ipiv[n];
int i,icol,irow,j,k,l,ll;
int i,j,k,l,ll;
int irow=0,icol=0;
T det,big,dum,pivinv;
det=1;