IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7554


Ignore:
Timestamp:
Jun 13, 2006, 3:33:49 PM (20 years ago)
Author:
Paul Price
Message:

Synchronising with current implementation: adding const to some prototypes,
removing some arguments.

File:
1 edited

Legend:

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

    r7537 r7554  
    1 %%% $Id: psLibSDRS.tex,v 1.401 2006-06-13 21:58:17 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.402 2006-06-14 01:33:49 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    925925
    926926\begin{prototype}
    927 psList *psStringSplit(const char *string, const char *splitters);
     927psList *psStringSplit(const char *string, const char *splitters, bool multipleAreSignificant);
    928928\end{prototype}
    929929
     
    931931\code{psList} of \code{psStrings}.  The \code{string} is split at any
    932932one of the characters in \code{splitters}.  Split strings of zero
    933 length should not be included in the output list.
     933length should not be included in the output list if
     934\code{multipleAreSignificant} is \code{true}.
    934935
    935936String whitespace from head and tail of string:
    936937\begin{prototype}
    937 int psStringStrip (char *string);
     938size_t psStringStrip(char *string);
    938939\end{prototype}
    939940
     
    10101011    PS_DATA_S16     = PS_TYPE_S16,     ///< psS16
    10111012    PS_DATA_S32     = PS_TYPE_S32,     ///< psS32
     1013    PS_DATA_S64     = PS_TYPE_S64,     ///< psS64
    10121014    PS_DATA_U8      = PS_TYPE_U8,      ///< psU8
    10131015    PS_DATA_U16     = PS_TYPE_U16,     ///< psU16
    10141016    PS_DATA_U32     = PS_TYPE_U32,     ///< psU32
     1017    PS_DATA_U64     = PS_TYPE_U64,     ///< psU64
    10151018    PS_DATA_F32     = PS_TYPE_F32,     ///< psF32
    10161019    PS_DATA_F64     = PS_TYPE_F64,     ///< psF64
     
    26542657        psS16 S16;                      ///< integer data
    26552658        psS32 S32;                      ///< integer data
     2659        psS64 S64;                      ///< integer data
    26562660        psU8  U8;                       ///< integer data
    26572661        psU16 U16;                      ///< integer data
    26582662        psU32 U32;                      ///< integer data
     2663        psU64 U64;                      ///< integer data
    26592664        psF32 F32;                      ///< floating-point data
    26602665        psF64 F64;                      ///< double-precision data
     
    29362941\begin{prototype}
    29372942psBool psMetadataItemParseBool(const psMetadataItem *item);
    2938 psF32 psMetadataItemParseF32(psMetadataItem *item);
    2939 psF64 psMetadataItemParseF64(psMetadataItem *item);
     2943psF32 psMetadataItemParseF32(const psMetadataItem *item);
     2944psF64 psMetadataItemParseF64(const psMetadataItem *item);
    29402945psS8  psMetadataItemParseS8(const psMetadataItem *item);
    29412946psS16 psMetadataItemParseS16(const psMetadataItem *item);
    2942 psS32 psMetadataItemParseS32(psMetadataItem *item);
     2947psS32 psMetadataItemParseS32(const psMetadataItem *item);
    29432948psU8  psMetadataItemParseU8(const psMetadataItem *item);
    29442949psU16 psMetadataItemParseU16(const psMetadataItem *item);
    29452950psU32 psMetadataItemParseU32(const psMetadataItem *item);
    2946 psString psMetadataItemParseString(psMetadataItem *item);
     2951psString psMetadataItemParseString(const psMetadataItem *item);
    29472952\end{prototype}
    29482953
     
    41094114\begin{datatype}
    41104115typedef struct {
    4111     fitsfile fd;                   // cfitsio structure
     4116    fitsfile *fd;                  // cfitsio structure
    41124117    bool writable;                 // Is the file writable?
    41134118} psFits;
     
    43274332
    43284333\begin{prototype}
    4329 bool psFitsWriteImage(psFits *fits, psMetadata *header, const psImage *input, int depth,
     4334bool psFitsWriteImage(psFits *fits, const psMetadata *header, const psImage *input, int depth,
    43304335                      const char *extname);
    43314336\end{prototype}
     
    43404345
    43414346\begin{prototype}
    4342 bool psFitsInsertImage(psFits *fits, psMetadata *header, const psImage *input, int depth,
     4347bool psFitsInsertImage(psFits *fits, const psMetadata *header, const psImage *input, int depth,
    43434348                       const char *extname, bool after);
    43444349\end{prototype}
     
    52505255
    52515256\begin{prototype}
    5252  bool psVectorFitSpline1D(psSpline1D *spline, const psVector *x, const psVector *y,
    5253                           const psVector * yErr);
    5254 \end{prototype}
    5255 \code{psVectorFitSpline1D} shall fit the code{spline} that best fits
    5256 the given combination of ordinates (\code{x}) and coordinates
    5257 (\code{y}) with the known errors (\code{yErr}, which may be
    5258 \code{NULL}).  As is the case for \code{psVectorFitPolynomial1D}, if
    5259 \code{x} is \code{NULL}, then the index of \code{y} shall be used as
    5260 the ordinate.  This function must be valid only for types
    5261 \code{psF32}, \code{psF64}.
     5257psSpline1D *psVectorFitSpline1D(const psVector *x, const psVector *y);
     5258\end{prototype}
     5259\code{psVectorFitSpline1D} shall return the spline that best fits the
     5260given combination of ordinates (\code{x}) and coordinates (\code{y}).
     5261As is the case for \code{psVectorFitPolynomial1D}, if \code{x} is
     5262\code{NULL}, then the index of \code{y} shall be used as the ordinate.
     5263This function must be valid only for types \code{psF32}, \code{psF64}.
    52625264
    52635265\subsubsection{Additional polynomial functions}
     
    53675369identical to a 180\degree\ rotation.
    53685370\begin{prototype}
    5369 psImage *psImageFlip(psImage *output, const psImage *image,
     5371psImage *psImageFlip(psImage *output, const psImage *input,
    53705372                     bool xFlip, bool yFlip);
    53715373\end{prototype}
     
    56295631\tbd{Description required for psImageUnbin}
    56305632\begin{prototype}
    5631 psImage *psImageUnbin(psImage *out, psImage *in, int DX, int DY, int dx, int dy);
     5633psImage *psImageUnbin(psImage *out, const psImage *in, int DX, int DY, int dx, int dy);
    56325634\end{prototype}
    56335635\tbd{Can ``out'' be NULL?  I'm not sure this is the best way to specify this function for a library.}
     
    58335835The following function allocates, but does not specify, a JPEG colormap:
    58345836\begin{prototype}
    5835 psImageJpegColormap *psImageJpegColormapAlloc ();
     5837psImageJpegColormap *psImageJpegColormapAlloc();
    58365838\end{prototype}
    58375839
     
    58415843\code{rainbow}, \code{heat}.
    58425844\begin{prototype}
    5843 psImageJpegColormap *psImageJpegColormapSet (psImageJpegColormap *map, char *name);
     5845psImageJpegColormap *psImageJpegColormapSet(psImageJpegColormap *map, const char *name);
    58445846\end{prototype}
    58455847
     
    58495851(the values of the single image determine the colors).
    58505852\begin{prototype}
    5851 bool psImageJpeg (psImageJpegColormap *map, psImage *image, char *filename, float min, float max);
     5853bool psImageJpeg(const psImageJpegColormap *map, const psImage *image,
     5854                 const char *filename, float min, float max);
    58525855\end{prototype}
    58535856
     
    61646167only add elements above the diagonal.
    61656168\begin{prototype}
    6166 void psSparseMatrixElement (psSparse *sparse, int i, int j, float value);
     6169void psSparseMatrixElement(psSparse *sparse, int i, int j, float value);
    61676170\end{prototype}
    61686171
    61696172The following function define a new sparse matrix equation vector element:
    61706173\begin{prototype}
    6171 void psSparseVectorElement (psSparse *sparse, int i, float value);
     6174void psSparseVectorElement(psSparse *sparse, int i, float value);
    61726175\end{prototype}
    61736176
     
    61756178on a sparse matrix and a vector:
    61766179\begin{prototype}
    6177 psVector *psSparseMatrixTimesVector (psVector *output, psSparse *matrix, psVector *vector);
     6180psVector *psSparseMatrixTimesVector(psVector *output, const psSparse *matrix,
     6181                                    const psVector *vector);
    61786182\end{prototype}
    61796183
     
    61826186function before attempting to solve, but after populating, the matrix and vector:
    61836187\begin{prototype}
    6184 void psSparseResort (psSparse *sparse);
     6188void psSparseResort(psSparse *sparse);
    61856189\end{prototype}
    61866190
     
    61886192\bar{Bf}$.  For the value of $\bar{x}$, a good starting guess is the vector $\bar{Bf}$
    61896193\begin{prototype}
    6190 psVector *psSparseSolve (psVector *guess, psSparseConstraint constraint, psSparse *sparse, int Niter);
     6194psVector *psSparseSolve(psVector *guess, psSparseConstraint constraint,
     6195                        const psSparse *sparse, int Niter);
    61916196\end{prototype}
    61926197
Note: See TracChangeset for help on using the changeset viewer.