IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2005, 5:00:31 PM (21 years ago)
Author:
gusciora
Message:

Polynomial nOrder nTerm change.

File:
1 edited

Legend:

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

    r5090 r5091  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.123 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2005-09-22 02:47:16 $
     9*  @version $Revision: 1.124 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2005-09-22 03:00:31 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9595    unsigned int x = 0;
    9696
    97     for (x = 0; x < poly->COOL_2D_nX; x++) {
     97    for (x = 0; x < (1 + poly->COOL_2D_nX); x++) {
    9898        psFree(poly->coeff[x]);
    9999        psFree(poly->coeffErr[x]);
     
    110110    unsigned int y = 0;
    111111
    112     for (x = 0; x < poly->COOL_3D_nX; x++) {
    113         for (y = 0; y < poly->COOL_3D_nY; y++) {
     112    for (x = 0; x < (1 + poly->COOL_3D_nX); x++) {
     113        for (y = 0; y < (1 + poly->COOL_3D_nY); y++) {
    114114            psFree(poly->coeff[x][y]);
    115115            psFree(poly->coeffErr[x][y]);
     
    132132    unsigned int z = 0;
    133133
    134     for (x = 0; x < poly->COOL_4D_nX; x++) {
    135         for (y = 0; y < poly->COOL_4D_nY; y++) {
    136             for (z = 0; z < poly->COOL_4D_nZ; z++) {
     134    for (x = 0; x < (1 + poly->COOL_4D_nX); x++) {
     135        for (y = 0; y < (1 + poly->COOL_4D_nY); y++) {
     136            for (z = 0; z < (1 + poly->COOL_4D_nZ); z++) {
    137137                psFree(poly->coeff[x][y][z]);
    138138                psFree(poly->coeffErr[x][y][z]);
Note: See TracChangeset for help on using the changeset viewer.