Use fabs instead of fabsf in LinEqSolve
This commit is contained in:
parent
c64a8a6daf
commit
13b49f8a54
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user