IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2006, 1:43:16 PM (20 years ago)
Author:
drobbin
Message:

Changed psArray & psVector to zero 'n' upon allocation. Used to set vector->n = nalloc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tst_psMinimizeLMM.c

    r6449 r6484  
    6161    myCoords->n = NUM_DATA_POINTS;
    6262    psVector *y = psVectorAlloc(NUM_DATA_POINTS, PS_TYPE_F32);
     63    myParams->n = NUM_PARAMS;
     64    myDerivs->n = NUM_PARAMS;
     65    y->n = NUM_DATA_POINTS;
    6366
    6467    for (psS32 i=0;i<NUM_DATA_POINTS;i++) {
     
    6669        ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10);
    6770        ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3);
     71        ((psVector *) (myCoords->data[i]))->n = 2;
    6872        psTrace(__func__, 5, "x[%d] is vector (%f, %f)\n", i, ((psVector *) (myCoords->data[i]))->data.F32[0],
    6973                ((psVector *) (myCoords->data[i]))->data.F32[1]);
Note: See TracChangeset for help on using the changeset viewer.