IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2004, 1:20:41 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

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

    r1781 r1784  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-10 22:25:59 $
     9 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-10 23:20:29 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    560560    int loop_x = 0;
    561561    int loop_y = 0;
     562    int i = 0;
    562563    float polySum = 0.0;
    563564    psPolynomial1D* *chebPolys = NULL;
     
    581582        }
    582583    }
    583 
     584    for (i=0;i<maxChebyPoly;i++) {
     585        psFree(chebPolys[i]);
     586    }
    584587    psFree(chebPolys);
    585588    return(polySum);
     
    667670    int loop_y = 0;
    668671    int loop_z = 0;
     672    int i = 0;
    669673    float polySum = 0.0;
    670674    psPolynomial1D* *chebPolys = NULL;
     
    695699    }
    696700
     701    for (i=0;i<maxChebyPoly;i++) {
     702        psFree(chebPolys[i]);
     703    }
    697704    psFree(chebPolys);
    698705    return(polySum);
     
    799806    int loop_y = 0;
    800807    int loop_z = 0;
     808    int i = 0;
    801809    float polySum = 0.0;
    802810    psPolynomial1D* *chebPolys = NULL;
     
    833841    }
    834842
     843    for (i=0;i<maxChebyPoly;i++) {
     844        psFree(chebPolys[i]);
     845    }
    835846    psFree(chebPolys);
    836847    return(polySum);
     
    12351246    int loop_x = 0;
    12361247    int loop_y = 0;
     1248    int i = 0;
    12371249    double polySum = 0.0;
    12381250    psPolynomial1D* *chebPolys = NULL;
     
    12571269    }
    12581270
     1271    for (i=0;i<maxChebyPoly;i++) {
     1272        psFree(chebPolys[i]);
     1273    }
    12591274    psFree(chebPolys);
    12601275    return(polySum);
     
    13411356    int loop_y = 0;
    13421357    int loop_z = 0;
     1358    int i = 0;
    13431359    double polySum = 0.0;
    13441360    psPolynomial1D* *chebPolys = NULL;
     
    13691385    }
    13701386
     1387    for (i=0;i<maxChebyPoly;i++) {
     1388        psFree(chebPolys[i]);
     1389    }
    13711390    psFree(chebPolys);
    13721391    return(polySum);
     
    14751494    int loop_y = 0;
    14761495    int loop_z = 0;
     1496    int i = 0;
    14771497    double polySum = 0.0;
    14781498    psPolynomial1D* *chebPolys = NULL;
     
    15091529    }
    15101530
     1531    for (i=0;i<maxChebyPoly;i++) {
     1532        psFree(chebPolys[i]);
     1533    }
    15111534    psFree(chebPolys);
    15121535    return(polySum);
     
    17501773
    17511774
     1775
     1776/*****************************************************************************
     1777psSpline1DGen(): This routine will take an existing spline data structure,
     1778along with a set of data values for each of the domains, and fit splines of
     1779the specified order (currently, linear only), and set the coefficients in the
     1780appropriate spline polynomials.  This function is not part of the API in the
     1781latest SDR, but I'm guessing it will be, and I need it to generate test
     1782cases, so I included it here.
     1783 *****************************************************************************/
    17521784
    17531785psSpline1D *psSpline1DGen(const psSpline1D *spline,
Note: See TracChangeset for help on using the changeset viewer.