IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1129


Ignore:
Timestamp:
Jun 29, 2004, 1:30:47 PM (22 years ago)
Author:
gusciora
Message:

This version works (with no parameter masks). This version has lots of
print statements. I'm checking it in now in case the next version does
not work, and I want the print statements.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r1128 r1129  
    8282    int i;
    8383    double Yi;
     84
     85    for (i=0;i<3;i++) {
     86        printf("(expb_f(): gsl_vector_get(x, %d) is %.1f\n", i,
     87               gsl_vector_get(x, i));
     88    }
     89
    8490
    8591    A      = gsl_vector_get(x, 0);
     
    210216    tmpVecPtr = psVectorAlloc(domain->numCols, PS_TYPE_F32);
    211217
     218    for (i=0;i<3;i++) {
     219        printf("(FART: gsl_vector_get(x, %d) is %.1f\n", i,
     220               gsl_vector_get(x, i));
     221    }
     222
     223
     224
     225
    212226    // The GSL routines will call this function with the masked parameters
    213227    // removed.  However, the user-supplied function (to be modified) does not
     
    228242    } else {
    229243        for (i=0;i<initialGuess->n;i++) {
    230             inputParameterList->data.F32[i] = initialGuess->data.F32[i];
     244            inputParameterList->data.F32[i] = gsl_vector_get(x, i);
    231245        }
    232246    }
     
    298312    } else {
    299313        for (i=0;i<initialGuess->n;i++) {
    300             inputParameterList->data.F32[i] = initialGuess->data.F32[i];
     314            inputParameterList->data.F32[i] = gsl_vector_get(x, i);
    301315        }
    302316    }
  • trunk/psLib/src/math/psMinimize.c

    r1128 r1129  
    8282    int i;
    8383    double Yi;
     84
     85    for (i=0;i<3;i++) {
     86        printf("(expb_f(): gsl_vector_get(x, %d) is %.1f\n", i,
     87               gsl_vector_get(x, i));
     88    }
     89
    8490
    8591    A      = gsl_vector_get(x, 0);
     
    210216    tmpVecPtr = psVectorAlloc(domain->numCols, PS_TYPE_F32);
    211217
     218    for (i=0;i<3;i++) {
     219        printf("(FART: gsl_vector_get(x, %d) is %.1f\n", i,
     220               gsl_vector_get(x, i));
     221    }
     222
     223
     224
     225
    212226    // The GSL routines will call this function with the masked parameters
    213227    // removed.  However, the user-supplied function (to be modified) does not
     
    228242    } else {
    229243        for (i=0;i<initialGuess->n;i++) {
    230             inputParameterList->data.F32[i] = initialGuess->data.F32[i];
     244            inputParameterList->data.F32[i] = gsl_vector_get(x, i);
    231245        }
    232246    }
     
    298312    } else {
    299313        for (i=0;i<initialGuess->n;i++) {
    300             inputParameterList->data.F32[i] = initialGuess->data.F32[i];
     314            inputParameterList->data.F32[i] = gsl_vector_get(x, i);
    301315        }
    302316    }
Note: See TracChangeset for help on using the changeset viewer.