Changeset 1784 for trunk/psLib/src/math/psPolynomial.c
- Timestamp:
- Sep 10, 2004, 1:20:41 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomial.c (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomial.c
r1781 r1784 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-09-10 2 2:25:59 $9 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-09-10 23:20:29 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 560 560 int loop_x = 0; 561 561 int loop_y = 0; 562 int i = 0; 562 563 float polySum = 0.0; 563 564 psPolynomial1D* *chebPolys = NULL; … … 581 582 } 582 583 } 583 584 for (i=0;i<maxChebyPoly;i++) { 585 psFree(chebPolys[i]); 586 } 584 587 psFree(chebPolys); 585 588 return(polySum); … … 667 670 int loop_y = 0; 668 671 int loop_z = 0; 672 int i = 0; 669 673 float polySum = 0.0; 670 674 psPolynomial1D* *chebPolys = NULL; … … 695 699 } 696 700 701 for (i=0;i<maxChebyPoly;i++) { 702 psFree(chebPolys[i]); 703 } 697 704 psFree(chebPolys); 698 705 return(polySum); … … 799 806 int loop_y = 0; 800 807 int loop_z = 0; 808 int i = 0; 801 809 float polySum = 0.0; 802 810 psPolynomial1D* *chebPolys = NULL; … … 833 841 } 834 842 843 for (i=0;i<maxChebyPoly;i++) { 844 psFree(chebPolys[i]); 845 } 835 846 psFree(chebPolys); 836 847 return(polySum); … … 1235 1246 int loop_x = 0; 1236 1247 int loop_y = 0; 1248 int i = 0; 1237 1249 double polySum = 0.0; 1238 1250 psPolynomial1D* *chebPolys = NULL; … … 1257 1269 } 1258 1270 1271 for (i=0;i<maxChebyPoly;i++) { 1272 psFree(chebPolys[i]); 1273 } 1259 1274 psFree(chebPolys); 1260 1275 return(polySum); … … 1341 1356 int loop_y = 0; 1342 1357 int loop_z = 0; 1358 int i = 0; 1343 1359 double polySum = 0.0; 1344 1360 psPolynomial1D* *chebPolys = NULL; … … 1369 1385 } 1370 1386 1387 for (i=0;i<maxChebyPoly;i++) { 1388 psFree(chebPolys[i]); 1389 } 1371 1390 psFree(chebPolys); 1372 1391 return(polySum); … … 1475 1494 int loop_y = 0; 1476 1495 int loop_z = 0; 1496 int i = 0; 1477 1497 double polySum = 0.0; 1478 1498 psPolynomial1D* *chebPolys = NULL; … … 1509 1529 } 1510 1530 1531 for (i=0;i<maxChebyPoly;i++) { 1532 psFree(chebPolys[i]); 1533 } 1511 1534 psFree(chebPolys); 1512 1535 return(polySum); … … 1750 1773 1751 1774 1775 1776 /***************************************************************************** 1777 psSpline1DGen(): This routine will take an existing spline data structure, 1778 along with a set of data values for each of the domains, and fit splines of 1779 the specified order (currently, linear only), and set the coefficients in the 1780 appropriate spline polynomials. This function is not part of the API in the 1781 latest SDR, but I'm guessing it will be, and I need it to generate test 1782 cases, so I included it here. 1783 *****************************************************************************/ 1752 1784 1753 1785 psSpline1D *psSpline1DGen(const psSpline1D *spline,
Note:
See TracChangeset
for help on using the changeset viewer.
