Use fabs instead of fabsf in LinEqSolve

This commit is contained in:
heckflosse 2016-03-13 14:02:08 +01:00
parent c64a8a6daf
commit 13b49f8a54

View File

@ -51,11 +51,11 @@ bool LinEqSolve(int nDim, double* pfMatr, double* pfVect, double* pfSolution)
for(k = 0; k < (nDim - 1); k++) { // base row of matrix
// search of line with max element
fMaxElem = fabsf( pfMatr[k * nDim + k] );
fMaxElem = fabs( pfMatr[k * nDim + k] );
m = k;
for (i = k + 1; i < nDim; i++) {
if(fMaxElem < fabsf(pfMatr[i * nDim + k]) ) {
if(fMaxElem < fabs(pfMatr[i * nDim + k]) ) {
fMaxElem = pfMatr[i * nDim + k];
m = i;
}