IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 1, 2004, 8:55:38 AM (22 years ago)
Author:
gusciora
Message:

Working on bracket code.

File:
1 edited

Legend:

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

    r2239 r2246  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-29 21:37:09 $
     11 *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-11-01 18:55:38 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232/* DEFINE STATEMENTS                                                         */
    3333/*****************************************************************************/
    34 
     34#define PS_SEG psLib
     35#define PS_PWD dataManip
     36#define PS_FILE psMinimize
    3537/*****************************************************************************/
    3638/* TYPE DEFINITIONS                                                          */
     
    12091211    int countMin = 0;
    12101212
     1213    psTrace(".PS_SEG.PS_PWD.PS_FILE.__func__", 6,
     1214            "---- __func__() begin COOL");
     1215
     1216    psTrace(".psLib.dataManip.__func__", 4,
     1217            "---- p_psDetermineBracket() COOL ----\n");
     1218
    12111219    psTrace(".psLib.dataManip.p_psDetermineBracket", 4,
    12121220            "---- p_psDetermineBracket() begin ----\n");
     
    12221230    }
    12231231
    1224     psVector *bracket = psVectorAlloc(3, PS_TYPE_F32);
     1232    static psVector *bracket = psVectorAlloc(3, PS_TYPE_F32);
    12251233    tmp = psVectorAlloc(params->n, PS_TYPE_F32);
    1226 
    1227 
    1228     a = -1.0;
     1234    a = -0.5;
    12291235    b = 0.0;
    1230     c = 1.0;
     1236    c = 0.5;
    12311237
    12321238    PS_VECTOR_ADD_MULTIPLE(params, paramMask, line, tmp, b);
     
    12601266    // The object of this code is to set the initial point a to 0.0, and
    12611267    // ensure that (fb < fa).
    1262     if (!(fc < fb)) {
     1268    if (fc < fb) {
    12631269        a = b;
    12641270        b = c;
Note: See TracChangeset for help on using the changeset viewer.