Lines Matching refs:matrix
46 bool eliminate( Matrix& matrix, in eliminate() argument
60 if( fabs(matrix[ j*cols + i ]) > fabs(matrix[ max*cols + i ]) ) in eliminate()
64 if( fabs(matrix[ max*cols + i ]) < minPivot ) 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()
78 matrix[ j*cols + k ] -= matrix[ i*cols + k ] * in eliminate()
79 matrix[ j*cols + i ] / matrix[ i*cols + i ]; in eliminate()
108 bool substitute( const Matrix& matrix, in substitute() argument
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()
158 bool solve( Matrix& matrix, 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()