Lines Matching refs:j
52 int max, i, j, k; /* *must* be signed, when looping like: j>=0 ! */ in eliminate() local
59 for(j=i+1; j<rows; ++j) in eliminate()
60 if( fabs(matrix[ j*cols + i ]) > fabs(matrix[ max*cols + i ]) ) in eliminate()
61 max = j; in eliminate()
76 for(j=i+1; j<rows; ++j) in eliminate()
78 matrix[ j*cols + k ] -= matrix[ i*cols + k ] * in eliminate()
79 matrix[ j*cols + i ] / matrix[ i*cols + i ]; in eliminate()
114 int j,k; /* *must* be signed, when looping like: j>=0 ! */ in substitute() local
117 for(j=rows-1; j>=0; --j) in substitute()
120 for(k=j+1; k<cols-1; ++k) in substitute()
121 temp += matrix[ j*cols + k ] * result[k]; in substitute()
123 if( matrix[ j*cols + j ] == 0.0 ) in substitute()
126 result[j] = (matrix[ j*cols + cols-1 ] - temp) / matrix[ j*cols + j ]; in substitute()