Changeset 4422 for trunk/psLib/src/math/psPolynomial.h
- Timestamp:
- Jun 28, 2005, 2:43:46 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomial.h (modified) (26 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomial.h
r4405 r4422 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-2 8 00:53:53$14 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-29 00:43:46 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 74 74 { 75 75 psPolynomialType type; ///< Polynomial type 76 psS32 n;///< Number of terms76 unsigned int n; ///< Number of terms 77 77 psF32 *coeff; ///< Coefficients 78 78 psF32 *coeffErr; ///< Error in coefficients … … 85 85 { 86 86 psPolynomialType type; ///< Polynomial type 87 psS32 nX;///< Number of terms in x88 psS32 nY;///< Number of terms in y87 unsigned int nX; ///< Number of terms in x 88 unsigned int nY; ///< Number of terms in y 89 89 psF32 **coeff; ///< Coefficients 90 90 psF32 **coeffErr; ///< Error in coefficients … … 97 97 { 98 98 psPolynomialType type; ///< Polynomial type 99 psS32 nX;///< Number of terms in x100 psS32 nY;///< Number of terms in y101 psS32 nZ;///< Number of terms in z99 unsigned int nX; ///< Number of terms in x 100 unsigned int nY; ///< Number of terms in y 101 unsigned int nZ; ///< Number of terms in z 102 102 psF32 ***coeff; ///< Coefficients 103 103 psF32 ***coeffErr; ///< Error in coefficients … … 110 110 { 111 111 psPolynomialType type; ///< Polynomial type 112 psS32 nW; ///< Number of terms in w113 psS32 nX; ///< Number of terms in x114 psS32 nY; ///< Number of terms in y115 psS32 nZ; ///< Number of terms in z112 unsigned int nX; ///< Number of terms in x 113 unsigned int nY; ///< Number of terms in y 114 unsigned int nZ; ///< Number of terms in z 115 unsigned int nT; ///< Number of terms in t 116 116 psF32 ****coeff; ///< Coefficients 117 117 psF32 ****coeffErr; ///< Error in coefficients … … 126 126 */ 127 127 psPolynomial1D* psPolynomial1DAlloc( 128 psS32 n,///< Number of terms128 int n, ///< Number of terms 129 129 psPolynomialType type ///< Polynomial Type 130 130 ); … … 135 135 */ 136 136 psPolynomial2D* psPolynomial2DAlloc( 137 psS32 nX,///< Number of terms in x138 psS32 nY,///< Number of terms in y137 int nX, ///< Number of terms in x 138 int nY, ///< Number of terms in y 139 139 psPolynomialType type ///< Polynomial Type 140 140 ); … … 145 145 */ 146 146 psPolynomial3D* psPolynomial3DAlloc( 147 psS32 nX,///< Number of terms in x148 psS32 nY,///< Number of terms in y149 psS32 nZ,///< Number of terms in z147 int nX, ///< Number of terms in x 148 int nY, ///< Number of terms in y 149 int nZ, ///< Number of terms in z 150 150 psPolynomialType type ///< Polynomial Type 151 151 ); … … 156 156 */ 157 157 psPolynomial4D* psPolynomial4DAlloc( 158 psS32 nW, ///< Number of terms in w159 psS32 nX, ///< Number of terms in x160 psS32 nY, ///< Number of terms in y161 psS32 nZ, ///< Number of terms in z158 int nX, ///< Number of terms in x 159 int nY, ///< Number of terms in y 160 int nZ, ///< Number of terms in z 161 int nT, ///< Number of terms in t 162 162 psPolynomialType type ///< Polynomial Type 163 163 ); … … 177 177 */ 178 178 psF64 psPolynomial2DEval( 179 const psPolynomial2D* poly, ///< Coefficients for the polynomial180 psF64 x, ///< x location at which to evaluate181 psF64 y ///< y location at which to evaluate179 const psPolynomial2D* poly, ///< Coefficients for the polynomial 180 psF64 x, ///< x location at which to evaluate 181 psF64 y ///< y location at which to evaluate 182 182 ); 183 183 … … 255 255 { 256 256 psPolynomialType type; ///< Polynomial type 257 psS32n; ///< Number of terms257 unsigned int n; ///< Number of terms 258 258 psF64 *coeff; ///< Coefficients 259 259 psF64 *coeffErr; ///< Error in coefficients … … 266 266 { 267 267 psPolynomialType type; ///< Polynomial type 268 psS32nX; ///< Number of terms in x269 psS32nY; ///< Number of terms in y268 unsigned int nX; ///< Number of terms in x 269 unsigned int nY; ///< Number of terms in y 270 270 psF64 **coeff; ///< Coefficients 271 271 psF64 **coeffErr; ///< Error in coefficients … … 278 278 { 279 279 psPolynomialType type; ///< Polynomial type 280 psS32nX; ///< Number of terms in x281 psS32nY; ///< Number of terms in y282 psS32nZ; ///< Number of terms in z280 unsigned int nX; ///< Number of terms in x 281 unsigned int nY; ///< Number of terms in y 282 unsigned int nZ; ///< Number of terms in z 283 283 psF64 ***coeff; ///< Coefficients 284 284 psF64 ***coeffErr; ///< Error in coefficients … … 291 291 { 292 292 psPolynomialType type; ///< Polynomial type 293 psS32 nW; ///< Number of terms in w294 psS32 nX; ///< Number of terms in x295 psS32 nY; ///< Number of terms in y296 psS32 nZ; ///< Number of terms in z293 unsigned int nX; ///< Number of terms in w 294 unsigned int nY; ///< Number of terms in x 295 unsigned int nZ; ///< Number of terms in y 296 unsigned int nT; ///< Number of terms in z 297 297 psF64 ****coeff; ///< Coefficients 298 298 psF64 ****coeffErr; ///< Error in coefficients … … 306 306 */ 307 307 psDPolynomial1D* psDPolynomial1DAlloc( 308 psS32n, ///< Number of terms308 int n, ///< Number of terms 309 309 psPolynomialType type ///< Polynomial Type 310 310 ); … … 315 315 */ 316 316 psDPolynomial2D* psDPolynomial2DAlloc( 317 psS32nX, ///< Number of terms in x318 psS32nY, ///< Number of terms in y317 int nX, ///< Number of terms in x 318 int nY, ///< Number of terms in y 319 319 psPolynomialType type ///< Polynomial Type 320 320 ); … … 325 325 */ 326 326 psDPolynomial3D* psDPolynomial3DAlloc( 327 psS32nX, ///< Number of terms in x328 psS32nY, ///< Number of terms in y329 psS32nZ, ///< Number of terms in z327 int nX, ///< Number of terms in x 328 int nY, ///< Number of terms in y 329 int nZ, ///< Number of terms in z 330 330 psPolynomialType type ///< Polynomial Type 331 331 ); … … 336 336 */ 337 337 psDPolynomial4D* psDPolynomial4DAlloc( 338 psS32 nW, ///< Number of terms in w339 psS32 nX, ///< Number of terms in x340 psS32 nY, ///< Number of terms in y341 psS32 nZ, ///< Number of terms in z338 int nX, ///< Number of terms in w 339 int nY, ///< Number of terms in x 340 int nZ, ///< Number of terms in y 341 int nT, ///< Number of terms in z 342 342 psPolynomialType type ///< Polynomial Type 343 343 ); … … 348 348 */ 349 349 psF64 psDPolynomial1DEval( 350 const psDPolynomial1D* myPoly, ///< Coefficients for the polynomial350 const psDPolynomial1D* poly, ///< Coefficients for the polynomial 351 351 psF64 x ///< Value at which to evaluate 352 352 ); … … 357 357 */ 358 358 psF64 psDPolynomial2DEval( 359 const psDPolynomial2D* myPoly, ///< Coefficients for the polynomial359 const psDPolynomial2D* poly, ///< Coefficients for the polynomial 360 360 psF64 x, ///< Value x at which to evaluate 361 361 psF64 y ///< Value y at which to evaluate … … 367 367 */ 368 368 psF64 psDPolynomial3DEval( 369 const psDPolynomial3D* myPoly, ///< Coefficients for the polynomial369 const psDPolynomial3D* poly, ///< Coefficients for the polynomial 370 370 psF64 x, ///< Value x at which to evaluate 371 371 psF64 y, ///< Value y at which to evaluate … … 378 378 */ 379 379 psF64 psDPolynomial4DEval( 380 const psDPolynomial4D* myPoly, ///< Coefficients for the polynomial381 psF64 w, ///< Value w at which to evaluate382 psF64 x, ///< Value x at which to evaluate383 psF64 y, ///< Value y at which to evaluate384 psF64 z///< Value z at which to evaluate380 const psDPolynomial4D* poly, ///< Coefficients for the polynomial 381 psF64 x, ///< Value w at which to evaluate 382 psF64 y, ///< Value x at which to evaluate 383 psF64 z, ///< Value y at which to evaluate 384 psF64 t ///< Value z at which to evaluate 385 385 ); 386 386 … … 390 390 */ 391 391 psVector *psDPolynomial1DEvalVector( 392 const psDPolynomial1D * myPoly, ///< Coefficients for the polynomial392 const psDPolynomial1D *poly, ///< Coefficients for the polynomial 393 393 const psVector *x ///< x locations at which to evaluate 394 394 ); … … 399 399 */ 400 400 psVector *psDPolynomial2DEvalVector( 401 const psDPolynomial2D * myPoly, ///< Coefficients for the polynomial401 const psDPolynomial2D *poly, ///< Coefficients for the polynomial 402 402 const psVector *x, ///< x locations at which to evaluate 403 403 const psVector *y ///< y locations at which to evaluate … … 409 409 */ 410 410 psVector *psDPolynomial3DEvalVector( 411 const psDPolynomial3D * myPoly, ///< Coefficients for the polynomial411 const psDPolynomial3D *poly, ///< Coefficients for the polynomial 412 412 const psVector *x, ///< x locations at which to evaluate 413 413 const psVector *y, ///< y locations at which to evaluate … … 420 420 */ 421 421 psVector *psDPolynomial4DEvalVector( 422 const psDPolynomial4D * myPoly, ///< Coefficients for the polynomial423 const psVector * w, ///< w locations at which to evaluate424 const psVector * x, ///< x locations at which to evaluate425 const psVector * y, ///< y locations at which to evaluate426 const psVector * z///< z locations at which to evaluate422 const psDPolynomial4D *poly, ///< Coefficients for the polynomial 423 const psVector *x, ///< w locations at which to evaluate 424 const psVector *y, ///< x locations at which to evaluate 425 const psVector *z, ///< y locations at which to evaluate 426 const psVector *t ///< z locations at which to evaluate 427 427 ); 428 428
Note:
See TracChangeset
for help on using the changeset viewer.
