IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2004, 10:08:22 AM (22 years ago)
Author:
gusciora
Message:

psCOmments.h

File:
1 edited

Legend:

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

    r1861 r1879  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-23 06:12:22 $
     11 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-24 20:08:22 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    730730
    731731    PS_CHECK_NULL_1DPOLY(myPoly);
    732     PS_CHECK_NULL_VECTOR(x);
    733     PS_CHECK_EMPTY_VECTOR(x);
    734732    PS_CHECK_NULL_VECTOR(y);
    735733    PS_CHECK_EMPTY_VECTOR(y);
     734
     735    // XXX: Verify that this is the correct action.
     736    if (x == NULL) {
     737        x = psVectorAlloc(y->n, PS_TYPE_F32);
     738        for (i=0;i<x->n;i++) {
     739            x->data.F32[i] = (float) i;
     740        }
     741    }
     742
     743    PS_CHECK_EMPTY_VECTOR(x);
    736744    PS_CHECK_NULL_VECTOR(yErr);
    737745    PS_CHECK_EMPTY_VECTOR(yErr);
Note: See TracChangeset for help on using the changeset viewer.