IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2005, 12:49:29 PM (21 years ago)
Author:
gusciora
Message:

Implementing the psPoly nOrder/nTerm switch.

File:
1 edited

Legend:

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

    r5094 r5096  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.126 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2005-09-22 22:22:15 $
     9*  @version $Revision: 1.127 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2005-09-22 22:49:29 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    167167static psPolynomial1D **createChebyshevPolys(psS32 maxChebyPoly)
    168168{
    169     //printf("createChebyshevPolys(%d)\n", maxChebyPoly);
    170169    PS_ASSERT_INT_NONNEGATIVE(maxChebyPoly, NULL);
    171170
     
    188187            for (psS32 j = 0; j < chebPolys[i - 1]->COOL_1D_n; j++) {
    189188                chebPolys[i]->coeff[j + 1] = 2 * chebPolys[i - 1]->coeff[j];
    190                 //printf("chebPolys[%d]->coeff[%d] is %.2f\n", i, j + 1, chebPolys[i]->coeff[j + 1]);
    191189            }
    192190            for (psS32 j = 0; j < chebPolys[i - 2]->COOL_1D_n; j++) {
    193191                chebPolys[i]->coeff[j] -= chebPolys[i - 2]->coeff[j];
    194                 //printf("chebPolys[%d]->coeff[%d] is %.2f\n", i, j, chebPolys[i]->coeff[j]);
    195192            }
    196193        }
     
    209206                                 const psPolynomial1D* poly)
    210207{
    211     //printf("ordPolynomial1DEval(%f): ", x);
    212     //for (psS32 i = 0 ; i < (1 + poly->COOL_1D_n) ; i++) printf("(%.2f) ", poly->coeff[i]);
    213     //printf("\n");
    214 
    215208    unsigned int loop_x = 0;
    216209    psF64 polySum = 0.0;
     
    545538                for (loop_t = 0; loop_t < (1 + poly->COOL_4D_nT); loop_t++) {
    546539                    if (poly->mask[loop_x][loop_y][loop_z][loop_t] == 0) {
    547                         //printf("HMMM (%d, %d, %d, %d)\n", loop_x, loop_y, loop_z, loop_t);
    548                         //printf("HMMM (%d, %d, %d, %d)\n", chebPolys[loop_x]->COOL_1D_n, chebPolys[loop_y]->COOL_1D_n, chebPolys[loop_z]->COOL_1D_n, chebPolys[loop_t]->COOL_1D_n);
    549                         //printf("chebPolynomial4DEval()\n");
    550540                        polySum += poly->coeff[loop_x][loop_y][loop_z][loop_t] *
    551541                                   psPolynomial1DEval(chebPolys[loop_x], x) *
Note: See TracChangeset for help on using the changeset viewer.