Changeset 1440 for trunk/psLib/src/math/psPolynomial.h
- Timestamp:
- Aug 9, 2004, 1:34:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomial.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomial.h
r1426 r1440 13 13 * @author George Gusciora, MHPCC 14 14 * 15 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-08-09 2 2:44:25$15 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-08-09 23:34:57 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 42 42 /** Produce a vector of random numbers from a Gaussian distribution with 43 43 the specified mean and sigma */ 44 psVector *psGaussianDev(float mean, ///< The mean of the Gaussian44 psVector* psGaussianDev(float mean, ///< The mean of the Gaussian 45 45 float sigma, ///< The sigma of the Gaussian 46 46 int Npts); ///< The size of the vector … … 95 95 96 96 /** Constructor */ 97 psPolynomial1D *psPolynomial1DAlloc(int n ///< Number of terms98 ); 99 100 /** Constructor */ 101 psPolynomial2D *psPolynomial2DAlloc(int nX, int nY ///< Number of terms in x and y102 ); 103 104 /** Constructor */ 105 psPolynomial3D *psPolynomial3DAlloc(int nX, int nY, int nZ ///< Number of terms in x, y and z106 ); 107 108 /** Constructor */ 109 psPolynomial4D *psPolynomial4DAlloc(int nW, int nX, int nY, int nZ ///< Number of terms in w, x, y and97 psPolynomial1D* psPolynomial1DAlloc(int n ///< Number of terms 98 ); 99 100 /** Constructor */ 101 psPolynomial2D* psPolynomial2DAlloc(int nX, int nY ///< Number of terms in x and y 102 ); 103 104 /** Constructor */ 105 psPolynomial3D* psPolynomial3DAlloc(int nX, int nY, int nZ ///< Number of terms in x, y and z 106 ); 107 108 /** Constructor */ 109 psPolynomial4D* psPolynomial4DAlloc(int nW, int nX, int nY, int nZ ///< Number of terms in w, x, y and 110 110 // z 111 111 ); … … 113 113 /** Evaluate 1D polynomial */ 114 114 float psPolynomial1DEval(float x, ///< Value at which to evaluate 115 const psPolynomial1D * myPoly ///< Coefficients for the polynomial115 const psPolynomial1D* myPoly ///< Coefficients for the polynomial 116 116 ); 117 117 … … 119 119 float psPolynomial2DEval(float x, ///< Value x at which to evaluate 120 120 float y, ///< Value y at which to evaluate 121 const psPolynomial2D * myPoly ///< Coefficients for the polynomial121 const psPolynomial2D* myPoly ///< Coefficients for the polynomial 122 122 ); 123 123 … … 126 126 float y, ///< Value y at which to evaluate 127 127 float z, ///< Value z at which to evaluate 128 const psPolynomial3D * myPoly ///< Coefficients for the polynomial128 const psPolynomial3D* myPoly ///< Coefficients for the polynomial 129 129 ); 130 130 … … 134 134 float y, ///< Value y at which to evaluate 135 135 float z, ///< Value z at which to evaluate 136 const psPolynomial4D * myPoly ///< Coefficients for the polynomial136 const psPolynomial4D* myPoly ///< Coefficients for the polynomial 137 137 ); 138 138 … … 188 188 189 189 /** Constructor */ 190 psDPolynomial1D *psDPolynomial1DAlloc(int n ///< Number of terms191 ); 192 193 /** Constructor */ 194 psDPolynomial2D *psDPolynomial2DAlloc(int nX, int nY ///< Number of terms in x and y195 ); 196 197 /** Constructor */ 198 psDPolynomial3D *psDPolynomial3DAlloc(int nX, int nY, int nZ ///< Number of terms in x, y and z199 ); 200 201 /** Constructor */ 202 psDPolynomial4D *psDPolynomial4DAlloc(int nW, int nX, int nY, int nZ ///< Number of terms in w, x, y and190 psDPolynomial1D* psDPolynomial1DAlloc(int n ///< Number of terms 191 ); 192 193 /** Constructor */ 194 psDPolynomial2D* psDPolynomial2DAlloc(int nX, int nY ///< Number of terms in x and y 195 ); 196 197 /** Constructor */ 198 psDPolynomial3D* psDPolynomial3DAlloc(int nX, int nY, int nZ ///< Number of terms in x, y and z 199 ); 200 201 /** Constructor */ 202 psDPolynomial4D* psDPolynomial4DAlloc(int nW, int nX, int nY, int nZ ///< Number of terms in w, x, y and 203 203 // z 204 204 ); … … 206 206 /** Evaluate 1D polynomial (double precision) */ 207 207 double psDPolynomial1DEval(double x, ///< Value at which to evaluate 208 const psDPolynomial1D * myPoly ///< Coefficients for the polynomial208 const psDPolynomial1D* myPoly ///< Coefficients for the polynomial 209 209 ); 210 210 … … 212 212 double psDPolynomial2DEval(double x, ///< Value x at which to evaluate 213 213 double y, ///< Value y at which to evaluate 214 const psDPolynomial2D * myPoly ///< Coefficients for the polynomial214 const psDPolynomial2D* myPoly ///< Coefficients for the polynomial 215 215 ); 216 216 … … 219 219 double y, ///< Value y at which to evaluate 220 220 double z, ///< Value z at which to evaluate 221 const psDPolynomial3D * myPoly ///< Coefficients for the polynomial221 const psDPolynomial3D* myPoly ///< Coefficients for the polynomial 222 222 ); 223 223 … … 227 227 double y, ///< Value y at which to evaluate 228 228 double z, ///< Value z at which to evaluate 229 const psDPolynomial4D * myPoly ///< Coefficients for the polynomial229 const psDPolynomial4D* myPoly ///< Coefficients for the polynomial 230 230 ); 231 231
Note:
See TracChangeset
for help on using the changeset viewer.
