1 | --- Lib/interpolate/fitpack.pyf.orig 2005-07-29 23:07:18.000000000 -0700 |
---|
2 | +++ Lib/interpolate/fitpack.pyf 2005-07-29 23:09:00.000000000 -0700 |
---|
3 | @@ -238,7 +238,7 @@ |
---|
4 | ! nx,tx,ny,ty,c,fp,ier = surfit_smth(x,y,z,[w,xb,xe,yb,ye,kx,ky,s,eps,lwrk2]) |
---|
5 | |
---|
6 | usercode ''' |
---|
7 | - static int calc_lwrk1(void) { |
---|
8 | + inline int calc_lwrk1(void) { |
---|
9 | int u = nxest-kx-1; |
---|
10 | int v = nyest-ky-1; |
---|
11 | int km = MAX(kx,ky)+1; |
---|
12 | @@ -250,7 +250,7 @@ |
---|
13 | else {b1=by;b2=by+u-kx;} |
---|
14 | return u*v*(2+b1+b2)+2*(u+v+km*(m+ne)+ne-kx-ky)+b2+1; |
---|
15 | } |
---|
16 | - static int calc_lwrk2(void) { |
---|
17 | + inline int calc_lwrk2(void) { |
---|
18 | int u = nxest-kx-1; |
---|
19 | int v = nyest-ky-1; |
---|
20 | int bx = kx*v+ky+1; |
---|
21 | @@ -305,7 +305,7 @@ |
---|
22 | ! tx,ty,c,fp,ier = surfit_lsq(x,y,z,tx,ty,[w,xb,xe,yb,ye,kx,ky,eps,lwrk2]) |
---|
23 | |
---|
24 | usercode ''' |
---|
25 | - static int calc_lwrk1(void) { |
---|
26 | + inline int calc_lwrk1(void) { |
---|
27 | int u = nxest-kx-1; |
---|
28 | int v = nyest-ky-1; |
---|
29 | int km = MAX(kx,ky)+1; |
---|
30 | @@ -317,7 +317,7 @@ |
---|
31 | else {b1=by;b2=by+u-kx;} |
---|
32 | return u*v*(2+b1+b2)+2*(u+v+km*(m+ne)+ne-kx-ky)+b2+1; |
---|
33 | } |
---|
34 | - static int calc_lwrk2(void) { |
---|
35 | + inline int calc_lwrk2(void) { |
---|
36 | int u = nxest-kx-1; |
---|
37 | int v = nyest-ky-1; |
---|
38 | int bx = kx*v+ky+1; |
---|