Changeset 15767
- Timestamp:
- Dec 7, 2007, 3:31:58 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.c
r12293 r15767 22 22 * @author Andy Becker, University of Washington (SVD). 23 23 * 24 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $25 * @date $Date: 2007- 03-07 21:12:13$24 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2007-12-08 01:31:58 $ 26 26 * 27 27 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 530 530 #define INVERT_CLEANUP { psFree(out); return NULL; } 531 531 // Error checks 532 PS_ASSERT_GENERAL_PTR_NON_NULL(determinant, INVERT_CLEANUP);533 532 PS_ASSERT_GENERAL_IMAGE_NON_NULL(in, INVERT_CLEANUP); 534 533 PS_CHECK_POINTERS(in, out, INVERT_CLEANUP); … … 554 553 gsl_linalg_LU_decomp(lu, perm, &signum); 555 554 gsl_linalg_LU_invert(lu, perm, inv); 556 *determinant = (float)gsl_linalg_LU_det(lu, signum); 555 if (determinant) { 556 *determinant = (float)gsl_linalg_LU_det(lu, signum); 557 } 557 558 558 559 // Copy GSL matrix data to psImage data … … 593 594 594 595 // Calculate determinant 595 // det = psAlloc(sizeof(psF32));596 596 gsl_linalg_LU_decomp(lu, perm, &signum); 597 597 det = (psF32)gsl_linalg_LU_det(lu, signum);
Note:
See TracChangeset
for help on using the changeset viewer.
