Changeset 2246 for trunk/psLib/src/math/psMinimize.c
- Timestamp:
- Nov 1, 2004, 8:55:38 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimize.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimize.c
r2239 r2246 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-1 0-29 21:37:09$11 * @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-01 18:55:38 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 32 32 /* DEFINE STATEMENTS */ 33 33 /*****************************************************************************/ 34 34 #define PS_SEG psLib 35 #define PS_PWD dataManip 36 #define PS_FILE psMinimize 35 37 /*****************************************************************************/ 36 38 /* TYPE DEFINITIONS */ … … 1209 1211 int countMin = 0; 1210 1212 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 1211 1219 psTrace(".psLib.dataManip.p_psDetermineBracket", 4, 1212 1220 "---- p_psDetermineBracket() begin ----\n"); … … 1222 1230 } 1223 1231 1224 psVector *bracket = psVectorAlloc(3, PS_TYPE_F32);1232 static psVector *bracket = psVectorAlloc(3, PS_TYPE_F32); 1225 1233 tmp = psVectorAlloc(params->n, PS_TYPE_F32); 1226 1227 1228 a = -1.0; 1234 a = -0.5; 1229 1235 b = 0.0; 1230 c = 1.0;1236 c = 0.5; 1231 1237 1232 1238 PS_VECTOR_ADD_MULTIPLE(params, paramMask, line, tmp, b); … … 1260 1266 // The object of this code is to set the initial point a to 0.0, and 1261 1267 // ensure that (fb < fa). 1262 if ( !(fc < fb)) {1268 if (fc < fb) { 1263 1269 a = b; 1264 1270 b = c;
Note:
See TracChangeset
for help on using the changeset viewer.
