IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2006, 2:55:46 PM (20 years ago)
Author:
Paul Price
Message:

psVector.n and psArray.n to be initially set to zero
psArrayAlloc and psArrayRealloc to initialise values

File:
1 edited

Legend:

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

    r6219 r6255  
    1 %%% $Id: psLibSDRS.tex,v 1.377 2006-01-27 02:25:05 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.378 2006-01-31 00:55:46 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    18841884%
    18851885In these functions, \code{nalloc} is the number of elements to
    1886 allocate.  For \code{psArrayAlloc}, the value of \code{psArray.n} is
    1887 set to \code{nalloc}.  Users may choose to restrict the data range
     1886allocate.  In \code{psArrayAlloc}, the value of \code{psArray.n} is
     1887initially set to zero.  Users may choose to restrict the data range
    18881888after the \code{psArrayAlloc} function is called.  For
    18891889\code{psArrayRealloc}, if the value of \code{nalloc} is smaller than
     
    18951895\code{array} is \code{NULL}, then \code{psArrayRealloc} must return an
    18961896error.
     1897
     1898Since \code{psArray} stores pointers, values on the array shall always
     1899be initialised to \code{NULL} on \code{psArrayAlloc}.
     1900\code{psArrayRealloc} shall initialise values to \code{NULL} where the
     1901array has been grown.
    18971902
    18981903\begin{prototype}
     
    33993404In these functions, \code{nalloc} is the number of elements to
    34003405allocate.  For \code{psVectorAlloc}, the value of \code{psVector.n} is
    3401 set to \code{nalloc}.  Users may choose to restrict the data range
     3406initially set to zero.  Users may choose to restrict the data range
    34023407after the \code{psVectorAlloc} function is called.  For
    34033408\code{psVectorRealloc}, if the value of \code{nalloc} is smaller than
Note: See TracChangeset for help on using the changeset viewer.