IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2005, 10:47:41 AM (21 years ago)
Author:
gusciora
Message:

Type checks of spline->knots.

File:
1 edited

Legend:

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

    r3096 r3097  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-01-26 20:41:04 $
     11 *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-01-26 20:47:41 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    162162 
    163163XXX: This is F32 only
     164 
     165XXX: spline->knots must be psF32
    164166 *****************************************************************************/
    165167/*
     
    177179    PS_VECTOR_CHECK_NULL(y, NAN);
    178180    PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F32, NAN);
     181    PS_VECTOR_CHECK_TYPE(spline->knots, PS_TYPE_F32, NULL);
    179182 
    180183    psS32 n;
     
    244247XXX: What happens if X is NULL, then an index vector is generated for X, but
    245248that index vector lies outside the range vectors in mySpline?
     249 
     250XXX: Assumes mySpline->knots is psF32.  Must add psU32 and psF64.
    246251 *****************************************************************************/
    247252psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,              ///< The spline which will be generated.
     
    252257    PS_VECTOR_CHECK_NULL(y, NULL);
    253258    PS_VECTOR_CHECK_TYPE_F32_OR_F64(y, NULL);
     259    PS_VECTOR_CHECK_TYPE(mySpline->knots, PS_TYPE_F32, NULL);
    254260
    255261    psTrace(".psLib.dataManip.psVectorFitSpline1D", 4,
Note: See TracChangeset for help on using the changeset viewer.