Index: trunk/psLib/src/dataManip/psFunctions.h
===================================================================
--- trunk/psLib/src/dataManip/psFunctions.h	(revision 4426)
+++ trunk/psLib/src/dataManip/psFunctions.h	(revision 4447)
@@ -12,6 +12,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-29 03:23:19 $
+ *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-07-01 22:01:17 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -74,8 +74,9 @@
 {
     psPolynomialType type;             ///< Polynomial type
-    unsigned int n;                   ///< Number of terms
+    psElemType ctype;                  ///< Polynomial precision
+    unsigned int n;                    ///< Number of terms
     psF32 *coeff;                      ///< Coefficients
     psF32 *coeffErr;                   ///< Error in coefficients
-    psU8 *mask;                        ///< Coefficient mask
+    char *mask;                        ///< Coefficient mask
 }
 psPolynomial1D;
@@ -85,9 +86,10 @@
 {
     psPolynomialType type;             ///< Polynomial type
+    psElemType ctype;                  ///< Polynomial precision
     unsigned int nX;                   ///< Number of terms in x
     unsigned int nY;                   ///< Number of terms in y
     psF32 **coeff;                     ///< Coefficients
     psF32 **coeffErr;                  ///< Error in coefficients
-    psU8 **mask;                       ///< Coefficients mask
+    char **mask;                       ///< Coefficients mask
 }
 psPolynomial2D;
@@ -97,4 +99,5 @@
 {
     psPolynomialType type;             ///< Polynomial type
+    psElemType ctype;                  ///< Polynomial precision
     unsigned int nX;                   ///< Number of terms in x
     unsigned int nY;                   ///< Number of terms in y
@@ -102,5 +105,5 @@
     psF32 ***coeff;                    ///< Coefficients
     psF32 ***coeffErr;                 ///< Error in coefficients
-    psU8 ***mask;                      ///< Coefficients mask
+    char ***mask;                      ///< Coefficients mask
 }
 psPolynomial3D;
@@ -110,4 +113,5 @@
 {
     psPolynomialType type;             ///< Polynomial type
+    psElemType ctype;                  ///< Polynomial precision
     unsigned int nX;                   ///< Number of terms in x
     unsigned int nY;                   ///< Number of terms in y
@@ -116,5 +120,5 @@
     psF32 ****coeff;                   ///< Coefficients
     psF32 ****coeffErr;                ///< Error in coefficients
-    psU8 ****mask;                     ///< Coefficients mask
+    char ****mask;                     ///< Coefficients mask
 }
 psPolynomial4D;
@@ -206,5 +210,5 @@
 
 /** Evaluates a 1-D polynomial at specific sets of coordinates
- *  
+ *
  *  @return psVector*    results of polynomials at given locations
  */
@@ -215,5 +219,5 @@
 
 /** Evaluates a 2-D polynomial at specific sets of coordinates
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -225,5 +229,5 @@
 
 /** Evaluates a 3-D polynomial at specific sets of coordinates
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -236,5 +240,5 @@
 
 /** Evaluates a 4-D polynomial at specific sets of coordinates
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -258,5 +262,5 @@
     psF64 *coeff;                      ///< Coefficients
     psF64 *coeffErr;                   ///< Error in coefficients
-    psU8 *mask;                        ///< Coefficient mask
+    char *mask;                        ///< Coefficient mask
 }
 psDPolynomial1D;
@@ -270,5 +274,5 @@
     psF64 **coeff;                     ///< Coefficients
     psF64 **coeffErr;                  ///< Error in coefficients
-    psU8 **mask;                       ///< Coefficients mask
+    char **mask;                       ///< Coefficients mask
 }
 psDPolynomial2D;
@@ -283,5 +287,5 @@
     psF64 ***coeff;                    ///< Coefficients
     psF64 ***coeffErr;                 ///< Error in coefficients
-    psU8 ***mask;                      ///< Coefficient mask
+    char ***mask;                      ///< Coefficient mask
 }
 psDPolynomial3D;
@@ -297,5 +301,5 @@
     psF64 ****coeff;                   ///< Coefficients
     psF64 ****coeffErr;                ///< Error in coefficients
-    psU8 ****mask;                     ///< Coefficients mask
+    char ****mask;                     ///< Coefficients mask
 }
 psDPolynomial4D;
@@ -386,5 +390,5 @@
 
 /** Evaluates a double-precision 1-D polynomial at specific sets of coordinates.
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -395,5 +399,5 @@
 
 /** Evaluates a double-precision 2-D polynomial at specific sets of coordinates.
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -405,5 +409,5 @@
 
 /** Evaluates a double-precision 3-D polynomial at specific sets of coordinates.
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -416,5 +420,5 @@
 
 /** Evaluates a double-precision 4-D polynomial at specific sets of coordinates.
- *  
+ *
  *  @return psVector*    results of polynomial at given locations
  */
@@ -430,5 +434,5 @@
 typedef struct
 {
-    psS32 n;                           ///< The number of spline polynomials
+    unsigned int n;                    ///< The number of spline polynomials
     psPolynomial1D **spline;           ///< An array of n pointers to the spline polynomials
     psF32 *p_psDeriv2;                 ///< For cubic splines, the second derivative at each domain point.  Size is n+1.
@@ -439,5 +443,5 @@
 
 /** Allocates a psSpline1D structure
- *  
+ *
  *  Allocator for psSpline1D where the bounds are implicitly specified through specifying
  *  min and max values along with the number of splines.
@@ -446,6 +450,6 @@
  */
 psSpline1D *psSpline1DAlloc(
-    int n,                             ///< Number of spline polynomials
-    int order,                         ///< Order of spline polynomials
+    unsigned int n,                    ///< Number of spline polynomials
+    unsigned int order,                ///< Order of spline polynomials
     float min,                         ///< Lower boundary value of spline polynomials
     float max                          ///< Upper boundary value of spline polynomials
@@ -453,6 +457,6 @@
 
 /** Allocates a psSpline1D structure
- *  
- *  Allocator for psSpline1D where the bounds are explicitly specified. 
+ *
+ *  Allocator for psSpline1D where the bounds are explicitly specified.
  *
  *  @return psSpline1D*    new 1-D spline struct
@@ -460,9 +464,9 @@
 psSpline1D *psSpline1DAllocGeneric(
     const psVector *bounds,            ///< Bounds for spline polynomials
-    int order                          ///< Order of spline polynomials
+    unsigned int order                 ///< Order of spline polynomials
 );
 
 /** Evaluates 1-D spline polynomials at a specific coordinate.
- *  
+ *
  *  @return float    result of spline polynomials evaluated at given location
  */
@@ -473,5 +477,5 @@
 
 /** Evaluates 1-D spline polynomials at a set of specific coordinates.
- *  
+ *
  *  @return psVector*    results of spline polynomials evaluated at given locations
  */
@@ -483,5 +487,5 @@
 /** Performs a binary disection on a given vector.
  *  Searches through an array of data for a specified value.
- *  
+ *
  *  @return psS32    corresponding index number of specified value
  */
@@ -499,5 +503,5 @@
     psVector *domain,                  ///< Domain (x coords) for interpolation
     psVector *range,                   ///< Range (y coords) for interpolation
-    psS32 order,                       ///< Order of interpolation function
+    unsigned int order,                ///< Order of interpolation function
     psScalar *x                        ///< Location at which to evaluate
 );
