Changeset 4898 for trunk/psLib/src/math/psMinimize.c
- Timestamp:
- Aug 29, 2005, 3:14:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimize.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimize.c
r4858 r4898 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.13 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-08- 24 01:04:37$11 * @version $Revision: 1.132 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-08-30 01:14:13 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1372 1372 } 1373 1373 1374 1374 static void minimizationFree(psMinimization *min) 1375 { 1376 // There are non dynamic allocated items 1377 } 1375 1378 1376 1379 /****************************************************************************** … … 1382 1385 1383 1386 psMinimization *min = psAlloc(sizeof(psMinimization)); 1387 psMemSetDeallocator(min, (psFreeFunc)minimizationFree); 1384 1388 *(int*)&min->maxIter = maxIter; 1385 1389 *(float*)&min->tol = tol; … … 1390 1394 return(min); 1391 1395 } 1396 1397 bool psMemCheckMinimization(psPtr ptr) 1398 { 1399 return ( psMemGetDeallocator(ptr) == (psFreeFunc)minimizationFree ); 1400 } 1401 1392 1402 1393 1403 // This macro takes as input the vector BASE and adds a multiple of the vector
Note:
See TracChangeset
for help on using the changeset viewer.
