Changeset 1992
- Timestamp:
- Oct 6, 2004, 1:38:49 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 5 edited
-
src/dataManip/psMinimize.c (modified) (4 diffs)
-
src/dataManip/psMinimize.h (modified) (2 diffs)
-
src/math/psMinimize.c (modified) (4 diffs)
-
src/math/psMinimize.h (modified) (2 diffs)
-
test/dataManip/tst_psMinimize06.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMinimize.c
r1991 r1992 9 9 * @author GLF, MHPCC 10 10 * 11 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-06 23: 29:16$11 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-06 23:38:49 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 * XXX: Section 4.5.1.1 (predefined functions for Gauss minimization via 19 19 * LMM) is not addressed here. We are waiting for subsequent SDRs 20 * which will red feine the LMM functions.20 * which will redefine the LMM functions. 21 21 * 22 22 */ … … 424 424 psMinimizeLMChi2Func func) 425 425 { 426 PS_CHECK_NULL_PTR_RETURN_NULL(min); 427 PS_CHECK_NULL_VECTOR_RETURN_NULL(params); 428 PS_CHECK_EMPTY_VECTOR_RETURN_NULL(params); 429 PS_CHECK_NULL_PTR_RETURN_NULL(coords); 430 PS_CHECK_NULL_VECTOR_RETURN_NULL(value); 431 PS_CHECK_EMPTY_VECTOR_RETURN_NULL(value); 432 if (paramMask != NULL) { 433 PS_CHECK_VECTOR_SIZE_EQUAL_RETURN_NULL(params, paramMask); 434 } 426 435 psTrace(".psLib.dataManip.psMinimizeLMChi2", 4, 427 436 "---- psMinimizeLMChi2() begin ----\n"); … … 1299 1308 1300 1309 XXX: Must define behavior on various NULL inputs. 1310 1311 XXX: Check for F32 types? 1301 1312 *****************************************************************************/ 1302 1313 bool psMinimizePowell(psMinimization *min, -
trunk/psLib/src/dataManip/psMinimize.h
r1982 r1992 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-10-06 2 1:30:53$10 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-06 23:38:49 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 83 83 ); 84 84 85 86 // XXX: What if any of these arguments are NULL? 85 87 typedef 86 88 float (*psMinimizeLMChi2Func)(psVector *deriv, -
trunk/psLib/src/math/psMinimize.c
r1991 r1992 9 9 * @author GLF, MHPCC 10 10 * 11 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-06 23: 29:16$11 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-06 23:38:49 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 * XXX: Section 4.5.1.1 (predefined functions for Gauss minimization via 19 19 * LMM) is not addressed here. We are waiting for subsequent SDRs 20 * which will red feine the LMM functions.20 * which will redefine the LMM functions. 21 21 * 22 22 */ … … 424 424 psMinimizeLMChi2Func func) 425 425 { 426 PS_CHECK_NULL_PTR_RETURN_NULL(min); 427 PS_CHECK_NULL_VECTOR_RETURN_NULL(params); 428 PS_CHECK_EMPTY_VECTOR_RETURN_NULL(params); 429 PS_CHECK_NULL_PTR_RETURN_NULL(coords); 430 PS_CHECK_NULL_VECTOR_RETURN_NULL(value); 431 PS_CHECK_EMPTY_VECTOR_RETURN_NULL(value); 432 if (paramMask != NULL) { 433 PS_CHECK_VECTOR_SIZE_EQUAL_RETURN_NULL(params, paramMask); 434 } 426 435 psTrace(".psLib.dataManip.psMinimizeLMChi2", 4, 427 436 "---- psMinimizeLMChi2() begin ----\n"); … … 1299 1308 1300 1309 XXX: Must define behavior on various NULL inputs. 1310 1311 XXX: Check for F32 types? 1301 1312 *****************************************************************************/ 1302 1313 bool psMinimizePowell(psMinimization *min, -
trunk/psLib/src/math/psMinimize.h
r1982 r1992 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-10-06 2 1:30:53$10 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-06 23:38:49 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 83 83 ); 84 84 85 86 // XXX: What if any of these arguments are NULL? 85 87 typedef 86 88 float (*psMinimizeLMChi2Func)(psVector *deriv, -
trunk/psLib/test/dataManip/tst_psMinimize06.c
r1830 r1992 22 22 This procedure ignores the coordinates, other than to ensure that they were 23 23 passed correctly from psMinimizePowell(). 24 24 25 *****************************************************************************/ 25 26 float myFunc(psVector *myDeriv, … … 34 35 if (myDeriv == NULL) { 35 36 myDeriv = psVectorAlloc(myParams->n, PS_TYPE_F32); 37 psError(__func__, "myDeriv is NULL.\n"); 36 38 } 37 39 … … 129 131 psFree(myParamMask); 130 132 psFree(min); 133 psFree(x); 134 psFree(y); 135 psFree(myCovar); 131 136 132 137 psMemCheckCorruption(1);
Note:
See TracChangeset
for help on using the changeset viewer.
