IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2267


Ignore:
Timestamp:
Nov 2, 2004, 9:08:33 AM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r2265 r2267  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.82 $ $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 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    14671467XXX: The SDR is silent about data types.  F32 is implemented here.
    14681468 
    1469 XXX: Define constants for default dummy number of iterations and tolerance.
    1470  
    14711469XXX: Check for F32 types?
    14721470 *****************************************************************************/
     
    15211519
    15221520    // 1: Set v[i] to be the unit vectors for each dimension in params
    1523 
    15241521    psArray *v = psArrayAlloc(numDims);
    15251522    for (i=0;i<numDims;i++) {
     
    15361533    // 2: Set Q to be the initial params (P in the ADD)
    15371534    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];
    15411536    }
    15421537
     
    15601555                dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS;
    15611556                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);
    15631563                if (isnan(mul)) {
    15641564                    psError(__func__, "Could not perform line minimization (1).\n");
  • trunk/psLib/src/math/psMinimize.c

    r2265 r2267  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.82 $ $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 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    14671467XXX: The SDR is silent about data types.  F32 is implemented here.
    14681468 
    1469 XXX: Define constants for default dummy number of iterations and tolerance.
    1470  
    14711469XXX: Check for F32 types?
    14721470 *****************************************************************************/
     
    15211519
    15221520    // 1: Set v[i] to be the unit vectors for each dimension in params
    1523 
    15241521    psArray *v = psArrayAlloc(numDims);
    15251522    for (i=0;i<numDims;i++) {
     
    15361533    // 2: Set Q to be the initial params (P in the ADD)
    15371534    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];
    15411536    }
    15421537
     
    15601555                dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS;
    15611556                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);
    15631563                if (isnan(mul)) {
    15641564                    psError(__func__, "Could not perform line minimization (1).\n");
Note: See TracChangeset for help on using the changeset viewer.