Changeset 24090
- Timestamp:
- May 6, 2009, 2:21:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomialMD.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomialMD.c
r21183 r24090 304 304 polynomialMDFill(poly->fitMatrix); 305 305 306 poly->LU = psMatrixLUD (poly->LU, &poly->LUperm, poly->fitMatrix); // LU-decomposed matrix306 poly->LU = psMatrixLUDecomposition(poly->LU, &poly->LUperm, poly->fitMatrix); // LU-decomposed matrix 307 307 if (!poly->LU) { 308 308 psError(PS_ERR_UNKNOWN, false, "Unable to LU-Decompose least-squares matrix."); … … 310 310 } 311 311 312 poly->coeff = psMatrixLUSol ve(poly->coeff, poly->LU, poly->fitVector, poly->LUperm);312 poly->coeff = psMatrixLUSolution(poly->coeff, poly->LU, poly->fitVector, poly->LUperm); 313 313 if (!poly->coeff) { 314 314 psError(PS_ERR_UNKNOWN, false, "Unable to solve least-squares equation."); … … 447 447 448 448 // Solve least-squares equation 449 *lu = psMatrixLUD (*lu, perm, matrix);449 *lu = psMatrixLUDecomposition(*lu, perm, matrix); 450 450 if (!*lu) { 451 451 psError(PS_ERR_UNKNOWN, false, "Unable to LU-Decompose least-squares matrix."); 452 452 return false; 453 453 } 454 poly->coeff = psMatrixLUSol ve(poly->coeff, *lu, vector, *perm);454 poly->coeff = psMatrixLUSolution(poly->coeff, *lu, vector, *perm); 455 455 if (!poly->coeff) { 456 456 psError(PS_ERR_UNKNOWN, false, "Unable to solve least-squares equation.");
Note:
See TracChangeset
for help on using the changeset viewer.
