IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2006, 11:10:22 AM (20 years ago)
Author:
gusciora
Message:

Implemented the polynomial alloc argument changes.

File:
1 edited

Legend:

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

    r6199 r6204  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.139 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-01-26 02:44:56 $
     9*  @version $Revision: 1.140 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-01-26 21:10:22 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    168168        psPolynomial1D **chebPolys = (psPolynomial1D **) psAlloc(numPolys * sizeof(psPolynomial1D *));
    169169        for (psS32 i = 0; i < numPolys; i++) {
    170             chebPolys[i] = psPolynomial1DAlloc(i, PS_POLYNOMIAL_ORD);
     170            chebPolys[i] = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, i);
    171171            chebPolys[i]->coeff[i] = 1;
    172172        }
     
    175175        psPolynomial1D **chebPolys = (psPolynomial1D **) psAlloc(numPolys * sizeof(psPolynomial1D *));
    176176        for (psS32 i = 0; i < numPolys; i++) {
    177             chebPolys[i] = psPolynomial1DAlloc(i, PS_POLYNOMIAL_ORD);
     177            chebPolys[i] = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, i);
    178178        }
    179179
     
    615615 *****************************************************************************/
    616616psPolynomial1D* psPolynomial1DAlloc(
    617     unsigned int n,
    618     psPolynomialType type)
     617    psPolynomialType type,
     618    unsigned int nX)
    619619{
    620620    //PS_ASSERT_INT_NONNEGATIVE(n, NULL);
    621     psU32 nOrder = n;
     621    psU32 nOrder = nX;
    622622    psPolynomial1D *newPoly = (psPolynomial1D* ) psAlloc(sizeof(psPolynomial1D));
    623623    psMemSetDeallocator(newPoly, (psFreeFunc) polynomial1DFree);
     
    639639}
    640640
    641 psPolynomial2D* psPolynomial2DAlloc( unsigned int nX,
    642                                      unsigned int nY,
    643                                      psPolynomialType type)
     641psPolynomial2D* psPolynomial2DAlloc(
     642    psPolynomialType type,
     643    unsigned int nX,
     644    unsigned int nY)
    644645{
    645646    //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
     
    676677}
    677678
    678 psPolynomial3D* psPolynomial3DAlloc( unsigned int nX,
    679                                      unsigned int nY,
    680                                      unsigned int nZ,
    681                                      psPolynomialType type)
     679psPolynomial3D* psPolynomial3DAlloc(
     680    psPolynomialType type,
     681    unsigned int nX,
     682    unsigned int nY,
     683    unsigned int nZ)
    682684{
    683685    //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
     
    724726}
    725727
    726 psPolynomial4D* psPolynomial4DAlloc( unsigned int nX,
    727                                      unsigned int nY,
    728                                      unsigned int nZ,
    729                                      unsigned int nT,
    730                                      psPolynomialType type)
     728psPolynomial4D* psPolynomial4DAlloc(
     729    psPolynomialType type,
     730    unsigned int nX,
     731    unsigned int nY,
     732    unsigned int nZ,
     733    unsigned int nT)
    731734{
    732735    //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
Note: See TracChangeset for help on using the changeset viewer.