Changeset 15824 for trunk/psLib/src/math/psMatrix.c
- Timestamp:
- Dec 13, 2007, 4:49:44 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.c
r15823 r15824 22 22 * @author Andy Becker, University of Washington (SVD). 23 23 * 24 * @version $Revision: 1.5 4$ $Name: not supported by cvs2svn $25 * @date $Date: 2007-12-14 02:4 6:45$24 * @version $Revision: 1.55 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2007-12-14 02:49:44 $ 26 26 * 27 27 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 363 363 return false; 364 364 } 365 b = psMatrixLUSolve(b, lu, b, perm);365 psVector *ans = psMatrixLUSolve(NULL, lu, b, perm); // Answer 366 366 psFree(lu); 367 367 psFree(perm); 368 if (! b) {368 if (!ans) { 369 369 psError(PS_ERR_UNKNOWN, false, "Unable to solve matrix equation."); 370 370 return false; 371 371 } 372 373 memcpy(b->data.U8, ans->data.U8, b->n * PSELEMTYPE_SIZEOF(ans->type.type)); 374 psFree(ans); 372 375 373 376 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
