Changeset 17564 for trunk/psLib/src/math/psMatrix.c
- Timestamp:
- May 7, 2008, 1:10:46 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.c
r17447 r17564 22 22 * @author Andy Becker, University of Washington (SVD). 23 23 * 24 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $25 * @date $Date: 2008-0 4-17 23:43:02$24 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2008-05-07 23:10:46 $ 26 26 * 27 27 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 415 415 gsl_linalg_LU_invert(lu, perm, inv); 416 416 if (determinant) { 417 *determinant = (float)gsl_linalg_LU_lndet(lu); 417 // XXX this is getting the wrong value: is it the wrong calculation? 418 // it disagrees with the results of 419 // det = (psF32)gsl_linalg_LU_det(lu, signum); 420 // used in psMatrixDeterminatn 421 // *determinant = (float)gsl_linalg_LU_lndet(lu); 422 *determinant = (psF32)gsl_linalg_LU_det(lu, signum); 418 423 } 419 424 … … 526 531 { 527 532 // Error checks 528 #define TRANSPOSE_CLEANUP { return NULL; } 529 PS_ASSERT_GENERAL_IMAGE_NON_NULL(in, TRANSPOSE_CLEANUP); 530 PS_CHECK_DIMEN_AND_TYPE(in, PS_DIMEN_IMAGE, TRANSPOSE_CLEANUP); 531 PS_ASSERT_GENERAL_IMAGE_NON_EMPTY(in, TRANSPOSE_CLEANUP); 532 PS_CHECK_POINTERS(in, out, TRANSPOSE_CLEANUP); 533 PS_ASSERT_IMAGE_NON_NULL(in, NULL); 534 PS_ASSERT_IMAGE_NON_EMPTY(in, NULL); 535 PS_CHECK_DIMEN_AND_TYPE(in, PS_DIMEN_IMAGE, return NULL); 536 PS_ASSERT(in != out, NULL); 533 537 534 538 int numCols = in->numRows, numRows = in->numCols; // Size of transposed image
Note:
See TracChangeset
for help on using the changeset viewer.
