IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2006, 2:31:19 PM (20 years ago)
Author:
gusciora
Message:

Several mods mostly to the psPolynomial fitting routines.

File:
1 edited

Legend:

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

    r6186 r6193  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.136 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-01-23 22:25:31 $
     9*  @version $Revision: 1.137 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-01-26 00:31:19 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    194194        }
    195195
     196        if (psTraceGetLevel(__func__) >= 6) {
     197            for (psS32 j = 0; j < numPolys; j++) {
     198                PS_POLY_PRINT_1D(chebPolys[j]);
     199            }
     200        }
    196201        return (chebPolys);
    197202    }
     
    606611/*****************************************************************************
    607612    This routine must allocate memory for the polynomial structures.
     613 
     614    XXX: How do we check for an appropriate value for n?
    608615 *****************************************************************************/
    609616psPolynomial1D* psPolynomial1DAlloc(
     
    611618    psPolynomialType type)
    612619{
    613     PS_ASSERT_INT_NONNEGATIVE(n, NULL);
     620    //PS_ASSERT_INT_NONNEGATIVE(n, NULL);
    614621    psU32 nOrder = n;
    615622    psPolynomial1D *newPoly = (psPolynomial1D* ) psAlloc(sizeof(psPolynomial1D));
     
    636643                                     psPolynomialType type)
    637644{
    638     PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
    639     PS_ASSERT_INT_NONNEGATIVE(nY, NULL);
     645    //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
     646    //PS_ASSERT_INT_NONNEGATIVE(nY, NULL);
    640647
    641648    unsigned int x = 0;
     
    674681                                     psPolynomialType type)
    675682{
    676     PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
    677     PS_ASSERT_INT_NONNEGATIVE(nY, NULL);
    678     PS_ASSERT_INT_NONNEGATIVE(nZ, NULL);
     683    //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
     684    //PS_ASSERT_INT_NONNEGATIVE(nY, NULL);
     685    //PS_ASSERT_INT_NONNEGATIVE(nZ, NULL);
    679686
    680687    unsigned int x = 0;
     
    723730                                     psPolynomialType type)
    724731{
    725     PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
    726     PS_ASSERT_INT_NONNEGATIVE(nY, NULL);
    727     PS_ASSERT_INT_NONNEGATIVE(nZ, NULL);
    728     PS_ASSERT_INT_NONNEGATIVE(nT, NULL);
     732    //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
     733    //PS_ASSERT_INT_NONNEGATIVE(nY, NULL);
     734    //PS_ASSERT_INT_NONNEGATIVE(nZ, NULL);
     735    //PS_ASSERT_INT_NONNEGATIVE(nT, NULL);
    729736
    730737    unsigned int x = 0;
Note: See TracChangeset for help on using the changeset viewer.