Changeset 6204 for trunk/psLib/src/math/psPolynomial.c
- Timestamp:
- Jan 26, 2006, 11:10:22 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomial.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomial.c
r6199 r6204 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.1 39$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-01-26 02:44:56$9 * @version $Revision: 1.140 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-01-26 21:10:22 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 168 168 psPolynomial1D **chebPolys = (psPolynomial1D **) psAlloc(numPolys * sizeof(psPolynomial1D *)); 169 169 for (psS32 i = 0; i < numPolys; i++) { 170 chebPolys[i] = psPolynomial1DAlloc( i, PS_POLYNOMIAL_ORD);170 chebPolys[i] = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, i); 171 171 chebPolys[i]->coeff[i] = 1; 172 172 } … … 175 175 psPolynomial1D **chebPolys = (psPolynomial1D **) psAlloc(numPolys * sizeof(psPolynomial1D *)); 176 176 for (psS32 i = 0; i < numPolys; i++) { 177 chebPolys[i] = psPolynomial1DAlloc( i, PS_POLYNOMIAL_ORD);177 chebPolys[i] = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, i); 178 178 } 179 179 … … 615 615 *****************************************************************************/ 616 616 psPolynomial1D* psPolynomial1DAlloc( 617 unsigned int n,618 psPolynomialType type)617 psPolynomialType type, 618 unsigned int nX) 619 619 { 620 620 //PS_ASSERT_INT_NONNEGATIVE(n, NULL); 621 psU32 nOrder = n ;621 psU32 nOrder = nX; 622 622 psPolynomial1D *newPoly = (psPolynomial1D* ) psAlloc(sizeof(psPolynomial1D)); 623 623 psMemSetDeallocator(newPoly, (psFreeFunc) polynomial1DFree); … … 639 639 } 640 640 641 psPolynomial2D* psPolynomial2DAlloc( unsigned int nX, 642 unsigned int nY, 643 psPolynomialType type) 641 psPolynomial2D* psPolynomial2DAlloc( 642 psPolynomialType type, 643 unsigned int nX, 644 unsigned int nY) 644 645 { 645 646 //PS_ASSERT_INT_NONNEGATIVE(nX, NULL); … … 676 677 } 677 678 678 psPolynomial3D* psPolynomial3DAlloc( unsigned int nX, 679 unsigned int nY, 680 unsigned int nZ, 681 psPolynomialType type) 679 psPolynomial3D* psPolynomial3DAlloc( 680 psPolynomialType type, 681 unsigned int nX, 682 unsigned int nY, 683 unsigned int nZ) 682 684 { 683 685 //PS_ASSERT_INT_NONNEGATIVE(nX, NULL); … … 724 726 } 725 727 726 psPolynomial4D* psPolynomial4DAlloc( unsigned int nX, 727 unsigned int nY, 728 unsigned int nZ, 729 unsigned int nT, 730 psPolynomialType type) 728 psPolynomial4D* psPolynomial4DAlloc( 729 psPolynomialType type, 730 unsigned int nX, 731 unsigned int nY, 732 unsigned int nZ, 733 unsigned int nT) 731 734 { 732 735 //PS_ASSERT_INT_NONNEGATIVE(nX, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
