Lines Matching refs:cols
48 int cols, in eliminate() argument
55 for(i=0; i<cols-1; ++i) in eliminate()
60 if( fabs(matrix[ j*cols + i ]) > fabs(matrix[ max*cols + i ]) ) in eliminate()
64 if( fabs(matrix[ max*cols + i ]) < minPivot ) in eliminate()
68 for(k=0; k<cols; ++k) in eliminate()
70 temp = matrix[ i*cols + k ]; in eliminate()
71 matrix[ i*cols + k ] = matrix[ max*cols + k ]; in eliminate()
72 matrix[ max*cols + k ] = temp; in eliminate()
77 for(k=cols-1; k>=i; --k) in eliminate()
78 matrix[ j*cols + k ] -= matrix[ i*cols + k ] * in eliminate()
79 matrix[ j*cols + i ] / matrix[ i*cols + i ]; in eliminate()
110 int cols, in substitute() argument
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()
160 int cols, in solve() argument
164 if( eliminate<Matrix,BaseType>(matrix, rows, cols, minPivot) ) in solve()
165 return substitute<Matrix,Vector,BaseType>(matrix, rows, cols, result); in solve()