IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2005, 11:22:27 AM (21 years ago)
Author:
Paul Price
Message:

psPolynomial and psSpline integers become unsigned (bug 460)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r4408 r4410  
    1 %%% $Id: psLibSDRS.tex,v 1.302 2005-06-28 19:52:10 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.303 2005-06-28 21:22:27 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    41504150    psPolynomialType type;              ///< Polynomial type
    41514151    psElemType ctype;                   ///< Polynomial precision
    4152     int n;                              ///< Number of terms
     4152    unsigned int n;                     ///< Number of terms
    41534153    union {
    41544154      psF32 *F32;                       ///< Coefficients
     
    41684168    psPolynomialType type;              ///< Polynomial type
    41694169    psElemType ctype;                   ///< Polynomial precision
    4170     int nX, nY;                         ///< Number of terms in x and y
     4170    unsigned int nX, nY;                ///< Number of terms in x and y
    41714171    union {
    41724172      psF32 **F32;                      ///< Coefficients
     
    41994199psPolynomial1D *psPolynomial1DAlloc(psPolynomialType type,
    42004200                                    psElemType ctype,
    4201                                     int nX);
     4201                                    unsigned int nX);
    42024202psPolynomial2D *psPolynomial2DAlloc(psPolynomialType type,
    42034203                                    psElemType ctype,
    4204                                     int nX, int nY);
     4204                                    unsigned int nX, unsigned int nY);
    42054205psPolynomial3D *psPolynomial3DAlloc(psPolynomialType type,
    42064206                                    psElemType ctype,
    4207                                     int nX, int nY, int nZ);
     4207                                    unsigned int nX, unsigned int nY, unsigned int nZ);
    42084208psPolynomial4D *psPolynomial4DAlloc(psPolynomialType type,
    42094209                                    psElemType ctype,
    4210                                     int nX, int nY, int nZ, int nT);
     4210                                    unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT);
    42114211\end{prototype}
    42124212where \code{nX}, \code{nY}, etc specify the polynomial order in the
     
    42664266\begin{datatype}
    42674267typedef struct {
    4268     int n;                              ///< Number of spline pieces
     4268    unsigned int n;                     ///< Number of spline pieces
    42694269    psPolynomial1D **spline;            ///< Array of n pointers to splines
    42704270    psVector *knots;                    ///< The boundaries between each spline piece.  Size is n+1.
     
    42844284Of course, we require the appropriate constructors and destructor:
    42854285\begin{prototype}
    4286 psSpline1D *psSpline1DAlloc(int n, int order, float min, float max);
    4287 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, int order);
     4286psSpline1D *psSpline1DAlloc(unsigned int n, unsigned int order, float min, float max);
     4287psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, unsigned int order);
    42884288\end{prototype}
    42894289
Note: See TracChangeset for help on using the changeset viewer.