Changeset 2741
- Timestamp:
- Dec 16, 2004, 2:18:31 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 7 edited
-
dataManip/psConstants.h (modified) (2 diffs)
-
dataManip/psFunctions.c (modified) (2 diffs)
-
dataManip/psMinimize.c (modified) (2 diffs)
-
math/psConstants.h (modified) (2 diffs)
-
math/psMinimize.c (modified) (2 diffs)
-
math/psPolynomial.c (modified) (2 diffs)
-
math/psSpline.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psConstants.h
r2739 r2741 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.4 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-12-1 6 23:04:17$8 * @version $Revision: 1.46 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-12-17 00:18:31 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 99 99 #NAME1, #NAME2); \ 100 100 return(RVAL); \ 101 } 102 103 #define PS_FLOAT_CHECK_RANGE(NAME, LOWER, UPPER, RVAL) \ 104 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ 105 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 106 "Error: %s, %f, is out of range. Must be between %f and %f.", \ 107 #NAME, NAME, LOWER, UPPER); \ 108 return RVAL; \ 101 109 } 102 110 -
trunk/psLib/src/dataManip/psFunctions.c
r2716 r2741 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-12-1 5 23:35:34$9 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-12-17 00:18:31 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 306 306 // XXX: You can do this without having to psAlloc() vector d. 307 307 // XXX: How does the mask vector effect Crenshaw's formula? 308 // XXX: We assume that x is scaled between -1.0 and 1.0; 308 309 static float chebPolynomial1DEval(float x, const psPolynomial1D* myPoly) 309 310 { 311 // PS_FLOAT_CHECK_RANGE(x, -1.0, 1.0, 0.0); 312 PS_FLOAT_CHECK_RANGE(x, -1.0, 1.0, 0.0); 310 313 psVector *d; 311 314 psS32 n; -
trunk/psLib/src/dataManip/psMinimize.c
r2739 r2741 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.9 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-12-1 6 23:04:17$11 * @version $Revision: 1.95 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-12-17 00:18:31 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1049 1049 PS_VECTOR_CHECK_TYPE_F32_OR_F64(x, NULL); 1050 1050 PS_VECTOR_CONVERT_F32_TO_F64_STATIC(x, x64, x64Static); 1051 if (myPoly->type == PS_POLYNOMIAL_CHEB) { 1052 p_psNormalizeVectorRangeF64(x64, -1.0, 1.0); 1053 } 1051 1054 } 1052 1055 PS_VECTOR_CHECK_SIZE_EQUAL(x64, y64, NULL); -
trunk/psLib/src/math/psConstants.h
r2739 r2741 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.4 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-12-1 6 23:04:17$8 * @version $Revision: 1.46 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-12-17 00:18:31 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 99 99 #NAME1, #NAME2); \ 100 100 return(RVAL); \ 101 } 102 103 #define PS_FLOAT_CHECK_RANGE(NAME, LOWER, UPPER, RVAL) \ 104 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ 105 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 106 "Error: %s, %f, is out of range. Must be between %f and %f.", \ 107 #NAME, NAME, LOWER, UPPER); \ 108 return RVAL; \ 101 109 } 102 110 -
trunk/psLib/src/math/psMinimize.c
r2739 r2741 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.9 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-12-1 6 23:04:17$11 * @version $Revision: 1.95 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-12-17 00:18:31 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1049 1049 PS_VECTOR_CHECK_TYPE_F32_OR_F64(x, NULL); 1050 1050 PS_VECTOR_CONVERT_F32_TO_F64_STATIC(x, x64, x64Static); 1051 if (myPoly->type == PS_POLYNOMIAL_CHEB) { 1052 p_psNormalizeVectorRangeF64(x64, -1.0, 1.0); 1053 } 1051 1054 } 1052 1055 PS_VECTOR_CHECK_SIZE_EQUAL(x64, y64, NULL); -
trunk/psLib/src/math/psPolynomial.c
r2716 r2741 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-12-1 5 23:35:34$9 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-12-17 00:18:31 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 306 306 // XXX: You can do this without having to psAlloc() vector d. 307 307 // XXX: How does the mask vector effect Crenshaw's formula? 308 // XXX: We assume that x is scaled between -1.0 and 1.0; 308 309 static float chebPolynomial1DEval(float x, const psPolynomial1D* myPoly) 309 310 { 311 // PS_FLOAT_CHECK_RANGE(x, -1.0, 1.0, 0.0); 312 PS_FLOAT_CHECK_RANGE(x, -1.0, 1.0, 0.0); 310 313 psVector *d; 311 314 psS32 n; -
trunk/psLib/src/math/psSpline.c
r2716 r2741 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-12-1 5 23:35:34$9 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-12-17 00:18:31 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 306 306 // XXX: You can do this without having to psAlloc() vector d. 307 307 // XXX: How does the mask vector effect Crenshaw's formula? 308 // XXX: We assume that x is scaled between -1.0 and 1.0; 308 309 static float chebPolynomial1DEval(float x, const psPolynomial1D* myPoly) 309 310 { 311 // PS_FLOAT_CHECK_RANGE(x, -1.0, 1.0, 0.0); 312 PS_FLOAT_CHECK_RANGE(x, -1.0, 1.0, 0.0); 310 313 psVector *d; 311 314 psS32 n;
Note:
See TracChangeset
for help on using the changeset viewer.
