IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2004, 3:44:48 PM (22 years ago)
Author:
gusciora
Message:

Added new NULL check macros.

File:
1 edited

Legend:

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

    r1985 r2106  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-06 22:27:06 $
     9 *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-14 01:44:48 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    206206}
    207207
    208 //XXX: remove this
    209 //typedef enum {
    210 //    PS_POLYNOMIAL_ORD,                 ///< Ordinary Polynomial
    211 //    PS_POLYNOMIAL_CHEB                 ///< Chebyshev Polynomial
    212 //} psPolynomialType;
    213 
    214208/*****************************************************************************
    215209    This routine must allocate memory for the polynomial structures.
     
    18581852{
    18591853    if (x->type.type != bins->type.type) {
    1860         // XXX: Generate error message.
    1861         return(-1);
     1854        psError(__func__, "x->type.type != bins->type.type");
     1855        return(-2);
    18621856    }
    18631857
     
    18671861        return(p_psVectorBinDisectF32(bins->data.F32, bins->n, x->data.F32));
    18681862    } else {
    1869         // XXX: Generate error message.
     1863        psError(__func__, "Unallowable data type.");
     1864        return(-2);
    18701865    }
    18711866    return(-1);
     
    20642059by a call to the 1D polynomial functions.
    20652060 
    2066 XXX: SDR is silent about data types.  PS_TYPE_F32 is implemented.
    2067  
    20682061XXX: The spline eval functions require input and output to be F32.  however
    20692062     the spline fit functions require F32 and F64.
Note: See TracChangeset for help on using the changeset viewer.