Changeset 2267
- Timestamp:
- Nov 2, 2004, 9:08:33 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
dataManip/psMinimize.c (modified) (5 diffs)
-
math/psMinimize.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMinimize.c
r2265 r2267 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11-02 03:57:21$11 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-02 19:08:33 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1467 1467 XXX: The SDR is silent about data types. F32 is implemented here. 1468 1468 1469 XXX: Define constants for default dummy number of iterations and tolerance.1470 1471 1469 XXX: Check for F32 types? 1472 1470 *****************************************************************************/ … … 1521 1519 1522 1520 // 1: Set v[i] to be the unit vectors for each dimension in params 1523 1524 1521 psArray *v = psArrayAlloc(numDims); 1525 1522 for (i=0;i<numDims;i++) { … … 1536 1533 // 2: Set Q to be the initial params (P in the ADD) 1537 1534 for (i=0;i<numDims;i++) { 1538 if (myParamMask->data.U8[i] == 0) { 1539 Q->data.F32[i] = params->data.F32[i]; 1540 } 1535 Q->data.F32[i] = params->data.F32[i]; 1541 1536 } 1542 1537 … … 1560 1555 dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS; 1561 1556 dummyMin.tol = PS_MINIMIZE_POWELL_LINEMIN_ERROR_TOLERANCE; 1562 mul = p_psLineMin(&dummyMin, Q, ((psVector *) v->data[i]), myParamMask, coords, func); 1557 mul = p_psLineMin(&dummyMin, 1558 Q, 1559 ((psVector *) v->data[i]), 1560 myParamMask, 1561 coords, 1562 func); 1563 1563 if (isnan(mul)) { 1564 1564 psError(__func__, "Could not perform line minimization (1).\n"); -
trunk/psLib/src/math/psMinimize.c
r2265 r2267 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11-02 03:57:21$11 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-02 19:08:33 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1467 1467 XXX: The SDR is silent about data types. F32 is implemented here. 1468 1468 1469 XXX: Define constants for default dummy number of iterations and tolerance.1470 1471 1469 XXX: Check for F32 types? 1472 1470 *****************************************************************************/ … … 1521 1519 1522 1520 // 1: Set v[i] to be the unit vectors for each dimension in params 1523 1524 1521 psArray *v = psArrayAlloc(numDims); 1525 1522 for (i=0;i<numDims;i++) { … … 1536 1533 // 2: Set Q to be the initial params (P in the ADD) 1537 1534 for (i=0;i<numDims;i++) { 1538 if (myParamMask->data.U8[i] == 0) { 1539 Q->data.F32[i] = params->data.F32[i]; 1540 } 1535 Q->data.F32[i] = params->data.F32[i]; 1541 1536 } 1542 1537 … … 1560 1555 dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS; 1561 1556 dummyMin.tol = PS_MINIMIZE_POWELL_LINEMIN_ERROR_TOLERANCE; 1562 mul = p_psLineMin(&dummyMin, Q, ((psVector *) v->data[i]), myParamMask, coords, func); 1557 mul = p_psLineMin(&dummyMin, 1558 Q, 1559 ((psVector *) v->data[i]), 1560 myParamMask, 1561 coords, 1562 func); 1563 1563 if (isnan(mul)) { 1564 1564 psError(__func__, "Could not perform line minimization (1).\n");
Note:
See TracChangeset
for help on using the changeset viewer.
