Changeset 710 in Sophya for trunk/SophyaLib
- Timestamp:
- Jan 21, 2000, 6:00:45 PM (26 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/NTools.o.list
r608 r710 12 12 fct2dfit.o 13 13 fftpackc.o 14 fftpserver.o 14 15 fftserver.o 16 fftservintf.o 15 17 generaldata.o 16 18 generalfit.o -
trunk/SophyaLib/NTools/cspline.cc
r520 r710 4 4 #include <stdio.h> 5 5 #include <math.h> 6 #include <iostream.h> 7 6 8 #ifdef __MWERKS__ 7 9 #include <iostream> -
trunk/SophyaLib/NTools/fftpackc.c
r663 r710 11 11 12 12 /* ------ File cfftb.f ------ */ 13 /* Subroutine */ int cfftb_(integer *n, real *c__, real*wsave)14 { 15 extern /* Subroutine */ int cfftb1_(integer *, real *, real *, real*,13 /* Subroutine */ int cfftb_(integer *n, float *c__, float *wsave) 14 { 15 extern /* Subroutine */ int cfftb1_(integer *, float *, float *, float *, 16 16 integer *); 17 17 static integer iw1, iw2; … … 32 32 33 33 /* ------ File cfftb1.f ------ */ 34 /* Subroutine */ int cfftb1_(integer *n, real *c__, real *ch, real*wa,34 /* Subroutine */ int cfftb1_(integer *n, float *c__, float *ch, float *wa, 35 35 integer *ifac) 36 36 { … … 41 41 static integer idot, i__; 42 42 extern /* Subroutine */ int passb_(integer *, integer *, integer *, 43 integer *, integer *, real *, real *, real *, real *, real*,44 real*);43 integer *, integer *, float *, float *, float *, float *, float *, 44 float *); 45 45 static integer k1, l1, l2, n2; 46 extern /* Subroutine */ int passb2_(integer *, integer *, real *, real*,47 real *), passb3_(integer *, integer *, real *, real *, real*,48 real *), passb4_(integer *, integer *, real *, real *, real*,49 real *, real *), passb5_(integer *, integer *, real *, real*,50 real *, real *, real *, real*);46 extern /* Subroutine */ int passb2_(integer *, integer *, float *, float *, 47 float *), passb3_(integer *, integer *, float *, float *, float *, 48 float *), passb4_(integer *, integer *, float *, float *, float *, 49 float *, float *), passb5_(integer *, integer *, float *, float *, 50 float *, float *, float *, float *); 51 51 static integer na, nf, ip, iw, ix2, ix3, ix4, nac, ido, idl1; 52 52 … … 164 164 165 165 /* ------ File cfftf.f ------ */ 166 /* Subroutine */ int cfftf_(integer *n, real *c__, real*wsave)167 { 168 extern /* Subroutine */ int cfftf1_(integer *, real *, real *, real*,166 /* Subroutine */ int cfftf_(integer *n, float *c__, float *wsave) 167 { 168 extern /* Subroutine */ int cfftf1_(integer *, float *, float *, float *, 169 169 integer *); 170 170 static integer iw1, iw2; … … 185 185 186 186 /* ------ File cfftf1.f ------ */ 187 /* Subroutine */ int cfftf1_(integer *n, real *c__, real *ch, real*wa,187 /* Subroutine */ int cfftf1_(integer *n, float *c__, float *ch, float *wa, 188 188 integer *ifac) 189 189 { … … 194 194 static integer idot, i__; 195 195 extern /* Subroutine */ int passf_(integer *, integer *, integer *, 196 integer *, integer *, real *, real *, real *, real *, real*,197 real*);196 integer *, integer *, float *, float *, float *, float *, float *, 197 float *); 198 198 static integer k1, l1, l2, n2; 199 extern /* Subroutine */ int passf2_(integer *, integer *, real *, real*,200 real *), passf3_(integer *, integer *, real *, real *, real*,201 real *), passf4_(integer *, integer *, real *, real *, real*,202 real *, real *), passf5_(integer *, integer *, real *, real*,203 real *, real *, real *, real*);199 extern /* Subroutine */ int passf2_(integer *, integer *, float *, float *, 200 float *), passf3_(integer *, integer *, float *, float *, float *, 201 float *), passf4_(integer *, integer *, float *, float *, float *, 202 float *, float *), passf5_(integer *, integer *, float *, float *, 203 float *, float *, float *, float *); 204 204 static integer na, nf, ip, iw, ix2, ix3, ix4, nac, ido, idl1; 205 205 … … 317 317 318 318 /* ------ File cffti.f ------ */ 319 /* Subroutine */ int cffti_(integer *n, real*wsave)320 { 321 extern /* Subroutine */ int cffti1_(integer *, real*, integer *);319 /* Subroutine */ int cffti_(integer *n, float *wsave) 320 { 321 extern /* Subroutine */ int cffti1_(integer *, float *, integer *); 322 322 static integer iw1, iw2; 323 323 … … 336 336 337 337 /* ------ File cffti1.f ------ */ 338 /* Subroutine */ int cffti1_(integer *n, real*wa, integer *ifac)338 /* Subroutine */ int cffti1_(integer *n, float *wa, integer *ifac) 339 339 { 340 340 /* Initialized data */ … … 346 346 347 347 /* Builtin functions */ 348 /* double cos(double real), sin(doublereal); commente, remplace par math.h - Reza 29/11/99 */348 /* double cos(doubletruc), sin(doubletruc); commente, remplace par math.h - Reza 29/11/99 */ 349 349 350 350 /* Local variables */ 351 static realargh;351 static float argh; 352 352 static integer idot, ntry, i__, j; 353 static realargld;353 static float argld; 354 354 static integer i1, k1, l1, l2, ib; 355 static realfi;355 static float fi; 356 356 static integer ld, ii, nf, ip, nl, nq, nr; 357 static realarg;357 static float arg; 358 358 static integer ido, ipm; 359 static realtpi;359 static float tpi; 360 360 361 361 /* Parameter adjustments */ … … 411 411 ifac[2] = nf; 412 412 tpi = 6.28318530717959f; 413 argh = tpi / ( real) (*n);413 argh = tpi / (float) (*n); 414 414 i__ = 2; 415 415 l1 = 1; … … 429 429 ld += l1; 430 430 fi = 0.f; 431 argld = ( real) ld * argh;431 argld = (float) ld * argh; 432 432 i__3 = idot; 433 433 for (ii = 4; ii <= i__3; ii += 2) { … … 454 454 455 455 /* ------ File cosqb.f ------ */ 456 /* Subroutine */ int cosqb_(integer *n, real *x, real*wsave)456 /* Subroutine */ int cosqb_(integer *n, float *x, float *wsave) 457 457 { 458 458 /* Initialized data */ 459 459 460 static realtsqrt2 = 2.82842712474619f;460 static float tsqrt2 = 2.82842712474619f; 461 461 462 462 /* System generated locals */ … … 464 464 465 465 /* Local variables */ 466 static realx1;467 extern /* Subroutine */ int cosqb1_(integer *, real *, real *, real*);466 static float x1; 467 extern /* Subroutine */ int cosqb1_(integer *, float *, float *, float *); 468 468 469 469 /* Parameter adjustments */ … … 493 493 494 494 /* ------ File cosqb1.f ------ */ 495 /* Subroutine */ int cosqb1_(integer *n, real *x, real *w, real*xh)495 /* Subroutine */ int cosqb1_(integer *n, float *x, float *w, float *xh) 496 496 { 497 497 /* System generated locals */ … … 500 500 /* Local variables */ 501 501 static integer modn, i__, k; 502 extern /* Subroutine */ int rfftb_(integer *, real *, real*);502 extern /* Subroutine */ int rfftb_(integer *, float *, float *); 503 503 static integer kc, np2, ns2; 504 static realxim1;504 static float xim1; 505 505 506 506 /* Parameter adjustments */ … … 547 547 548 548 /* ------ File cosqf.f ------ */ 549 /* Subroutine */ int cosqf_(integer *n, real *x, real*wsave)549 /* Subroutine */ int cosqf_(integer *n, float *x, float *wsave) 550 550 { 551 551 /* Initialized data */ 552 552 553 static realsqrt2 = 1.4142135623731f;553 static float sqrt2 = 1.4142135623731f; 554 554 555 555 /* System generated locals */ … … 557 557 558 558 /* Local variables */ 559 static realtsqx;560 extern /* Subroutine */ int cosqf1_(integer *, real *, real *, real*);559 static float tsqx; 560 extern /* Subroutine */ int cosqf1_(integer *, float *, float *, float *); 561 561 562 562 /* Parameter adjustments */ … … 584 584 585 585 /* ------ File cosqf1.f ------ */ 586 /* Subroutine */ int cosqf1_(integer *n, real *x, real *w, real*xh)586 /* Subroutine */ int cosqf1_(integer *n, float *x, float *w, float *xh) 587 587 { 588 588 /* System generated locals */ … … 591 591 /* Local variables */ 592 592 static integer modn, i__, k; 593 extern /* Subroutine */ int rfftf_(integer *, real *, real*);593 extern /* Subroutine */ int rfftf_(integer *, float *, float *); 594 594 static integer kc, np2, ns2; 595 static realxim1;595 static float xim1; 596 596 597 597 /* Parameter adjustments */ … … 636 636 637 637 /* ------ File cosqi.f ------ */ 638 /* Subroutine */ int cosqi_(integer *n, real*wsave)638 /* Subroutine */ int cosqi_(integer *n, float *wsave) 639 639 { 640 640 /* Initialized data */ 641 641 642 static realpih = 1.57079632679491f;642 static float pih = 1.57079632679491f; 643 643 644 644 /* System generated locals */ … … 646 646 647 647 /* Builtin functions */ 648 /* double cos(double real); commente - Remplace par math.h Reza 29/11/99 */648 /* double cos(doubletruc); commente - Remplace par math.h Reza 29/11/99 */ 649 649 650 650 /* Local variables */ 651 651 static integer k; 652 extern /* Subroutine */ int rffti_(integer *, real*);653 static realfk, dt;652 extern /* Subroutine */ int rffti_(integer *, float *); 653 static float fk, dt; 654 654 655 655 /* Parameter adjustments */ … … 657 657 658 658 /* Function Body */ 659 dt = pih / ( real) (*n);659 dt = pih / (float) (*n); 660 660 fk = 0.f; 661 661 i__1 = *n; … … 670 670 671 671 /* ------ File cost.f ------ */ 672 /* Subroutine */ int cost_(integer *n, real *x, real*wsave)672 /* Subroutine */ int cost_(integer *n, float *x, float *wsave) 673 673 { 674 674 /* System generated locals */ … … 677 677 /* Local variables */ 678 678 static integer modn, i__, k; 679 extern /* Subroutine */ int rfftf_(integer *, real *, real*);680 static realc1, t1, t2;679 extern /* Subroutine */ int rfftf_(integer *, float *, float *); 680 static float c1, t1, t2; 681 681 static integer kc; 682 static realxi;682 static float xi; 683 683 static integer nm1, np1; 684 static realx1h;684 static float x1h; 685 685 static integer ns2; 686 static realtx2, x1p3, xim2;686 static float tx2, x1p3, xim2; 687 687 688 688 /* Parameter adjustments */ … … 753 753 754 754 /* ------ File costi.f ------ */ 755 /* Subroutine */ int costi_(integer *n, real*wsave)755 /* Subroutine */ int costi_(integer *n, float *wsave) 756 756 { 757 757 /* Initialized data */ 758 758 759 static realpi = 3.14159265358979f;759 static float pi = 3.14159265358979f; 760 760 761 761 /* System generated locals */ … … 763 763 764 764 /* Builtin functions */ 765 /* double sin(double real), cos(doublereal); commente - Remplace par math.h Reza 29/11/99 */765 /* double sin(doubletruc), cos(doubletruc); commente - Remplace par math.h Reza 29/11/99 */ 766 766 767 767 /* Local variables */ 768 768 static integer k; 769 extern /* Subroutine */ int rffti_(integer *, real*);769 extern /* Subroutine */ int rffti_(integer *, float *); 770 770 static integer kc; 771 static realfk, dt;771 static float fk, dt; 772 772 static integer nm1, np1, ns2; 773 773 … … 782 782 np1 = *n + 1; 783 783 ns2 = *n / 2; 784 dt = pi / ( real) nm1;784 dt = pi / (float) nm1; 785 785 fk = 0.f; 786 786 i__1 = ns2; … … 797 797 798 798 /* ------ File ezfft1.f ------ */ 799 /* Subroutine */ int ezfft1_(integer *n, real*wa, integer *ifac)799 /* Subroutine */ int ezfft1_(integer *n, float *wa, integer *ifac) 800 800 { 801 801 /* Initialized data */ 802 802 803 803 static integer ntryh[4] = { 4,2,3,5 }; 804 static realtpi = 6.28318530717959f;804 static float tpi = 6.28318530717959f; 805 805 806 806 /* System generated locals */ … … 808 808 809 809 /* Builtin functions */ 810 /* double cos(double real), sin(doublereal); commente - Remplace par math.h Reza 29/11/99 */810 /* double cos(doubletruc), sin(doubletruc); commente - Remplace par math.h Reza 29/11/99 */ 811 811 812 812 /* Local variables */ 813 static realargh;813 static float argh; 814 814 static integer ntry, i__, j, k1, l1, l2, ib, ii, nf, ip, nl, is, nq, nr; 815 static realch1, sh1;815 static float ch1, sh1; 816 816 static integer ido, ipm; 817 static realdch1, ch1h, arg1, dsh1;817 static float dch1, ch1h, arg1, dsh1; 818 818 static integer nfm1; 819 819 … … 869 869 ifac[1] = *n; 870 870 ifac[2] = nf; 871 argh = tpi / ( real) (*n);871 argh = tpi / (float) (*n); 872 872 is = 0; 873 873 nfm1 = nf - 1; … … 882 882 ido = *n / l2; 883 883 ipm = ip - 1; 884 arg1 = ( real) l1 * argh;884 arg1 = (float) l1 * argh; 885 885 ch1 = 1.f; 886 886 sh1 = 0.f; … … 916 916 917 917 /* ------ File ezfftb.f ------ */ 918 /* Subroutine */ int ezfftb_(integer *n, real *r__, real *azero, real*a,919 real *b, real*wsave)918 /* Subroutine */ int ezfftb_(integer *n, float *r__, float *azero, float *a, 919 float *b, float *wsave) 920 920 { 921 921 /* System generated locals */ … … 924 924 /* Local variables */ 925 925 static integer i__; 926 extern /* Subroutine */ int rfftb_(integer *, real *, real*);926 extern /* Subroutine */ int rfftb_(integer *, float *, float *); 927 927 static integer ns2; 928 928 … … 965 965 966 966 /* ------ File ezfftf.f ------ */ 967 /* Subroutine */ int ezfftf_(integer *n, real *r__, real *azero, real*a,968 real *b, real*wsave)967 /* Subroutine */ int ezfftf_(integer *n, float *r__, float *azero, float *a, 968 float *b, float *wsave) 969 969 { 970 970 /* System generated locals */ … … 973 973 /* Local variables */ 974 974 static integer i__; 975 extern /* Subroutine */ int rfftf_(integer *, real *, real*);976 static realcf;975 extern /* Subroutine */ int rfftf_(integer *, float *, float *); 976 static float cf; 977 977 static integer ns2; 978 static realcfm;978 static float cfm; 979 979 static integer ns2m; 980 980 … … 1010 1010 } 1011 1011 rfftf_(n, &wsave[1], &wsave[*n + 1]); 1012 cf = 2.f / ( real) (*n);1012 cf = 2.f / (float) (*n); 1013 1013 cfm = -cf; 1014 1014 *azero = cf * .5f * wsave[1]; … … 1030 1030 1031 1031 /* ------ File ezffti.f ------ */ 1032 /* Subroutine */ int ezffti_(integer *n, real*wsave)1033 { 1034 extern /* Subroutine */ int ezfft1_(integer *, real*, integer *);1032 /* Subroutine */ int ezffti_(integer *n, float *wsave) 1033 { 1034 extern /* Subroutine */ int ezfft1_(integer *, float *, integer *); 1035 1035 1036 1036 /* Parameter adjustments */ … … 1047 1047 /* ------ File passb.f ------ */ 1048 1048 /* Subroutine */ int passb_(integer *nac, integer *ido, integer *ip, integer * 1049 l1, integer *idl1, real *cc, real *c1, real *c2, real *ch, real*ch2,1050 real*wa)1049 l1, integer *idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, 1050 float *wa) 1051 1051 { 1052 1052 /* System generated locals */ … … 1058 1058 static integer idij, idlj, idot, ipph, i__, j, k, l, jc, lc, ik, nt, idj, 1059 1059 idl, inc, idp; 1060 static realwai, war;1060 static float wai, war; 1061 1061 static integer ipp2; 1062 1062 … … 1287 1287 1288 1288 /* ------ File passb2.f ------ */ 1289 /* Subroutine */ int passb2_(integer *ido, integer *l1, real *cc, real*ch,1290 real*wa1)1289 /* Subroutine */ int passb2_(integer *ido, integer *l1, float *cc, float *ch, 1290 float *wa1) 1291 1291 { 1292 1292 /* System generated locals */ … … 1295 1295 /* Local variables */ 1296 1296 static integer i__, k; 1297 static realti2, tr2;1297 static float ti2, tr2; 1298 1298 1299 1299 /* Parameter adjustments */ … … 1349 1349 1350 1350 /* ------ File passb3.f ------ */ 1351 /* Subroutine */ int passb3_(integer *ido, integer *l1, real *cc, real*ch,1352 real *wa1, real*wa2)1351 /* Subroutine */ int passb3_(integer *ido, integer *l1, float *cc, float *ch, 1352 float *wa1, float *wa2) 1353 1353 { 1354 1354 /* Initialized data */ 1355 1355 1356 static realtaur = -.5f;1357 static realtaui = .866025403784439f;1356 static float taur = -.5f; 1357 static float taui = .866025403784439f; 1358 1358 1359 1359 /* System generated locals */ … … 1362 1362 /* Local variables */ 1363 1363 static integer i__, k; 1364 static realci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2;1364 static float ci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2; 1365 1365 1366 1366 /* Parameter adjustments */ … … 1437 1437 1438 1438 /* ------ File passb4.f ------ */ 1439 /* Subroutine */ int passb4_(integer *ido, integer *l1, real *cc, real*ch,1440 real *wa1, real *wa2, real*wa3)1439 /* Subroutine */ int passb4_(integer *ido, integer *l1, float *cc, float *ch, 1440 float *wa1, float *wa2, float *wa3) 1441 1441 { 1442 1442 /* System generated locals */ … … 1445 1445 /* Local variables */ 1446 1446 static integer i__, k; 1447 static realci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2,1447 static float ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2, 1448 1448 tr3, tr4; 1449 1449 … … 1542 1542 1543 1543 /* ------ File passb5.f ------ */ 1544 /* Subroutine */ int passb5_(integer *ido, integer *l1, real *cc, real*ch,1545 real *wa1, real *wa2, real *wa3, real*wa4)1544 /* Subroutine */ int passb5_(integer *ido, integer *l1, float *cc, float *ch, 1545 float *wa1, float *wa2, float *wa3, float *wa4) 1546 1546 { 1547 1547 /* Initialized data */ 1548 1548 1549 static realtr11 = .309016994374947f;1550 static realti11 = .951056516295154f;1551 static realtr12 = -.809016994374947f;1552 static realti12 = .587785252292473f;1549 static float tr11 = .309016994374947f; 1550 static float ti11 = .951056516295154f; 1551 static float tr12 = -.809016994374947f; 1552 static float ti12 = .587785252292473f; 1553 1553 1554 1554 /* System generated locals */ … … 1557 1557 /* Local variables */ 1558 1558 static integer i__, k; 1559 static realci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4,1559 static float ci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4, 1560 1560 ti2, ti3, ti4, ti5, dr3, dr4, dr5, dr2, tr2, tr3, tr4, tr5; 1561 1561 … … 1678 1678 /* ------ File passf.f ------ */ 1679 1679 /* Subroutine */ int passf_(integer *nac, integer *ido, integer *ip, integer * 1680 l1, integer *idl1, real *cc, real *c1, real *c2, real *ch, real*ch2,1681 real*wa)1680 l1, integer *idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, 1681 float *wa) 1682 1682 { 1683 1683 /* System generated locals */ … … 1689 1689 static integer idij, idlj, idot, ipph, i__, j, k, l, jc, lc, ik, nt, idj, 1690 1690 idl, inc, idp; 1691 static realwai, war;1691 static float wai, war; 1692 1692 static integer ipp2; 1693 1693 … … 1918 1918 1919 1919 /* ------ File passf2.f ------ */ 1920 /* Subroutine */ int passf2_(integer *ido, integer *l1, real *cc, real*ch,1921 real*wa1)1920 /* Subroutine */ int passf2_(integer *ido, integer *l1, float *cc, float *ch, 1921 float *wa1) 1922 1922 { 1923 1923 /* System generated locals */ … … 1926 1926 /* Local variables */ 1927 1927 static integer i__, k; 1928 static realti2, tr2;1928 static float ti2, tr2; 1929 1929 1930 1930 /* Parameter adjustments */ … … 1980 1980 1981 1981 /* ------ File passf3.f ------ */ 1982 /* Subroutine */ int passf3_(integer *ido, integer *l1, real *cc, real*ch,1983 real *wa1, real*wa2)1982 /* Subroutine */ int passf3_(integer *ido, integer *l1, float *cc, float *ch, 1983 float *wa1, float *wa2) 1984 1984 { 1985 1985 /* Initialized data */ 1986 1986 1987 static realtaur = -.5f;1988 static realtaui = -.866025403784439f;1987 static float taur = -.5f; 1988 static float taui = -.866025403784439f; 1989 1989 1990 1990 /* System generated locals */ … … 1993 1993 /* Local variables */ 1994 1994 static integer i__, k; 1995 static realci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2;1995 static float ci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2; 1996 1996 1997 1997 /* Parameter adjustments */ … … 2068 2068 2069 2069 /* ------ File passf4.f ------ */ 2070 /* Subroutine */ int passf4_(integer *ido, integer *l1, real *cc, real*ch,2071 real *wa1, real *wa2, real*wa3)2070 /* Subroutine */ int passf4_(integer *ido, integer *l1, float *cc, float *ch, 2071 float *wa1, float *wa2, float *wa3) 2072 2072 { 2073 2073 /* System generated locals */ … … 2076 2076 /* Local variables */ 2077 2077 static integer i__, k; 2078 static realci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2,2078 static float ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2, 2079 2079 tr3, tr4; 2080 2080 … … 2173 2173 2174 2174 /* ------ File passf5.f ------ */ 2175 /* Subroutine */ int passf5_(integer *ido, integer *l1, real *cc, real*ch,2176 real *wa1, real *wa2, real *wa3, real*wa4)2175 /* Subroutine */ int passf5_(integer *ido, integer *l1, float *cc, float *ch, 2176 float *wa1, float *wa2, float *wa3, float *wa4) 2177 2177 { 2178 2178 /* Initialized data */ 2179 2179 2180 static realtr11 = .309016994374947f;2181 static realti11 = -.951056516295154f;2182 static realtr12 = -.809016994374947f;2183 static realti12 = -.587785252292473f;2180 static float tr11 = .309016994374947f; 2181 static float ti11 = -.951056516295154f; 2182 static float tr12 = -.809016994374947f; 2183 static float ti12 = -.587785252292473f; 2184 2184 2185 2185 /* System generated locals */ … … 2188 2188 /* Local variables */ 2189 2189 static integer i__, k; 2190 static realci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4,2190 static float ci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4, 2191 2191 ti2, ti3, ti4, ti5, dr3, dr4, dr5, dr2, tr2, tr3, tr4, tr5; 2192 2192 … … 2308 2308 2309 2309 /* ------ File radb2.f ------ */ 2310 /* Subroutine */ int radb2_(integer *ido, integer *l1, real *cc, real*ch,2311 real*wa1)2310 /* Subroutine */ int radb2_(integer *ido, integer *l1, float *cc, float *ch, 2311 float *wa1) 2312 2312 { 2313 2313 /* System generated locals */ … … 2316 2316 /* Local variables */ 2317 2317 static integer i__, k, ic; 2318 static realti2, tr2;2318 static float ti2, tr2; 2319 2319 static integer idp2; 2320 2320 … … 2385 2385 2386 2386 /* ------ File radb3.f ------ */ 2387 /* Subroutine */ int radb3_(integer *ido, integer *l1, real *cc, real*ch,2388 real *wa1, real*wa2)2387 /* Subroutine */ int radb3_(integer *ido, integer *l1, float *cc, float *ch, 2388 float *wa1, float *wa2) 2389 2389 { 2390 2390 /* Initialized data */ 2391 2391 2392 static realtaur = -.5f;2393 static realtaui = .866025403784439f;2392 static float taur = -.5f; 2393 static float taui = .866025403784439f; 2394 2394 2395 2395 /* System generated locals */ … … 2398 2398 /* Local variables */ 2399 2399 static integer i__, k, ic; 2400 static realci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2;2400 static float ci2, ci3, di2, di3, cr2, cr3, dr2, dr3, ti2, tr2; 2401 2401 static integer idp2; 2402 2402 … … 2468 2468 2469 2469 /* ------ File radb4.f ------ */ 2470 /* Subroutine */ int radb4_(integer *ido, integer *l1, real *cc, real*ch,2471 real *wa1, real *wa2, real*wa3)2470 /* Subroutine */ int radb4_(integer *ido, integer *l1, float *cc, float *ch, 2471 float *wa1, float *wa2, float *wa3) 2472 2472 { 2473 2473 /* Initialized data */ 2474 2474 2475 static realsqrt2 = 1.414213562373095f;2475 static float sqrt2 = 1.414213562373095f; 2476 2476 2477 2477 /* System generated locals */ … … 2480 2480 /* Local variables */ 2481 2481 static integer i__, k, ic; 2482 static realci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2,2482 static float ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2, 2483 2483 tr3, tr4; 2484 2484 static integer idp2; … … 2592 2592 2593 2593 /* ------ File radb5.f ------ */ 2594 /* Subroutine */ int radb5_(integer *ido, integer *l1, real *cc, real*ch,2595 real *wa1, real *wa2, real *wa3, real*wa4)2594 /* Subroutine */ int radb5_(integer *ido, integer *l1, float *cc, float *ch, 2595 float *wa1, float *wa2, float *wa3, float *wa4) 2596 2596 { 2597 2597 /* Initialized data */ 2598 2598 2599 static realtr11 = .309016994374947f;2600 static realti11 = .951056516295154f;2601 static realtr12 = -.809016994374947f;2602 static realti12 = .587785252292473f;2599 static float tr11 = .309016994374947f; 2600 static float ti11 = .951056516295154f; 2601 static float tr12 = -.809016994374947f; 2602 static float ti12 = .587785252292473f; 2603 2603 2604 2604 /* System generated locals */ … … 2607 2607 /* Local variables */ 2608 2608 static integer i__, k, ic; 2609 static realci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4,2609 static float ci2, ci3, ci4, ci5, di3, di4, di5, di2, cr2, cr3, cr5, cr4, 2610 2610 ti2, ti3, ti4, ti5, dr3, dr4, dr5, dr2, tr2, tr3, tr4, tr5; 2611 2611 static integer idp2; … … 2717 2717 /* ------ File radbg.f ------ */ 2718 2718 /* Subroutine */ int radbg_(integer *ido, integer *ip, integer *l1, integer * 2719 idl1, real *cc, real *c1, real *c2, real *ch, real *ch2, real*wa)2719 idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, float *wa) 2720 2720 { 2721 2721 /* Initialized data */ 2722 2722 2723 static realtpi = 6.28318530717959f;2723 static float tpi = 6.28318530717959f; 2724 2724 2725 2725 /* System generated locals */ … … 2729 2729 2730 2730 /* Builtin functions */ 2731 /* double cos(double real), sin(doublereal); commente - Remplace par math.h Reza 29/11/99 */2731 /* double cos(doubletruc), sin(doubletruc); commente - Remplace par math.h Reza 29/11/99 */ 2732 2732 2733 2733 /* Local variables */ 2734 2734 static integer idij, ipph, i__, j, k, l, j2, ic, jc, lc, ik, is; 2735 static realdc2, ai1, ai2, ar1, ar2, ds2;2735 static float dc2, ai1, ai2, ar1, ar2, ds2; 2736 2736 static integer nbd; 2737 static realdcp, arg, dsp, ar1h, ar2h;2737 static float dcp, arg, dsp, ar1h, ar2h; 2738 2738 static integer idp2, ipp2; 2739 2739 … … 2760 2760 2761 2761 /* Function Body */ 2762 arg = tpi / ( real) (*ip);2762 arg = tpi / (float) (*ip); 2763 2763 dcp = cos(arg); 2764 2764 dsp = sin(arg); … … 3057 3057 3058 3058 /* ------ File radf2.f ------ */ 3059 /* Subroutine */ int radf2_(integer *ido, integer *l1, real *cc, real*ch,3060 real*wa1)3059 /* Subroutine */ int radf2_(integer *ido, integer *l1, float *cc, float *ch, 3060 float *wa1) 3061 3061 { 3062 3062 /* System generated locals */ … … 3065 3065 /* Local variables */ 3066 3066 static integer i__, k, ic; 3067 static realti2, tr2;3067 static float ti2, tr2; 3068 3068 static integer idp2; 3069 3069 … … 3135 3135 3136 3136 /* ------ File radf3.f ------ */ 3137 /* Subroutine */ int radf3_(integer *ido, integer *l1, real *cc, real*ch,3138 real *wa1, real*wa2)3137 /* Subroutine */ int radf3_(integer *ido, integer *l1, float *cc, float *ch, 3138 float *wa1, float *wa2) 3139 3139 { 3140 3140 /* Initialized data */ 3141 3141 3142 static realtaur = -.5f;3143 static realtaui = .866025403784439f;3142 static float taur = -.5f; 3143 static float taui = .866025403784439f; 3144 3144 3145 3145 /* System generated locals */ … … 3148 3148 /* Local variables */ 3149 3149 static integer i__, k, ic; 3150 static realci2, di2, di3, cr2, dr2, dr3, ti2, ti3, tr2, tr3;3150 static float ci2, di2, di3, cr2, dr2, dr3, ti2, ti3, tr2, tr3; 3151 3151 static integer idp2; 3152 3152 … … 3214 3214 3215 3215 /* ------ File radf4.f ------ */ 3216 /* Subroutine */ int radf4_(integer *ido, integer *l1, real *cc, real*ch,3217 real *wa1, real *wa2, real*wa3)3216 /* Subroutine */ int radf4_(integer *ido, integer *l1, float *cc, float *ch, 3217 float *wa1, float *wa2, float *wa3) 3218 3218 { 3219 3219 /* Initialized data */ 3220 3220 3221 static realhsqt2 = .7071067811865475f;3221 static float hsqt2 = .7071067811865475f; 3222 3222 3223 3223 /* System generated locals */ … … 3226 3226 /* Local variables */ 3227 3227 static integer i__, k, ic; 3228 static realci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2,3228 static float ci2, ci3, ci4, cr2, cr3, cr4, ti1, ti2, ti3, ti4, tr1, tr2, 3229 3229 tr3, tr4; 3230 3230 static integer idp2; … … 3330 3330 3331 3331 /* ------ File radf5.f ------ */ 3332 /* Subroutine */ int radf5_(integer *ido, integer *l1, real *cc, real*ch,3333 real *wa1, real *wa2, real *wa3, real*wa4)3332 /* Subroutine */ int radf5_(integer *ido, integer *l1, float *cc, float *ch, 3333 float *wa1, float *wa2, float *wa3, float *wa4) 3334 3334 { 3335 3335 /* Initialized data */ 3336 3336 3337 static realtr11 = .309016994374947f;3338 static realti11 = .951056516295154f;3339 static realtr12 = -.809016994374947f;3340 static realti12 = .587785252292473f;3337 static float tr11 = .309016994374947f; 3338 static float ti11 = .951056516295154f; 3339 static float tr12 = -.809016994374947f; 3340 static float ti12 = .587785252292473f; 3341 3341 3342 3342 /* System generated locals */ … … 3345 3345 /* Local variables */ 3346 3346 static integer i__, k, ic; 3347 static realci2, di2, ci4, ci5, di3, di4, di5, ci3, cr2, cr3, dr2, dr3,3347 static float ci2, di2, ci4, ci5, di3, di4, di5, ci3, cr2, cr3, dr2, dr3, 3348 3348 dr4, dr5, cr5, cr4, ti2, ti3, ti5, ti4, tr2, tr3, tr4, tr5; 3349 3349 static integer idp2; … … 3449 3449 /* ------ File radfg.f ------ */ 3450 3450 /* Subroutine */ int radfg_(integer *ido, integer *ip, integer *l1, integer * 3451 idl1, real *cc, real *c1, real *c2, real *ch, real *ch2, real*wa)3451 idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, float *wa) 3452 3452 { 3453 3453 /* Initialized data */ 3454 3454 3455 static realtpi = 6.28318530717959f;3455 static float tpi = 6.28318530717959f; 3456 3456 3457 3457 /* System generated locals */ … … 3461 3461 3462 3462 /* Builtin functions */ 3463 /* double cos(double real), sin(doublereal); */3463 /* double cos(doubletruc), sin(doubletruc); */ 3464 3464 3465 3465 /* Local variables */ 3466 3466 static integer idij, ipph, i__, j, k, l, j2, ic, jc, lc, ik, is; 3467 static realdc2, ai1, ai2, ar1, ar2, ds2;3467 static float dc2, ai1, ai2, ar1, ar2, ds2; 3468 3468 static integer nbd; 3469 static realdcp, arg, dsp, ar1h, ar2h;3469 static float dcp, arg, dsp, ar1h, ar2h; 3470 3470 static integer idp2, ipp2; 3471 3471 … … 3492 3492 3493 3493 /* Function Body */ 3494 arg = tpi / ( real) (*ip);3494 arg = tpi / (float) (*ip); 3495 3495 dcp = cos(arg); 3496 3496 dsp = sin(arg); … … 3795 3795 3796 3796 /* ------ File rfftb.f ------ */ 3797 /* Subroutine */ int rfftb_(integer *n, real *r__, real*wsave)3798 { 3799 extern /* Subroutine */ int rfftb1_(integer *, real *, real *, real*,3797 /* Subroutine */ int rfftb_(integer *n, float *r__, float *wsave) 3798 { 3799 extern /* Subroutine */ int rfftb1_(integer *, float *, float *, float *, 3800 3800 integer *); 3801 3801 … … 3813 3813 3814 3814 /* ------ File rfftb1.f ------ */ 3815 /* Subroutine */ int rfftb1_(integer *n, real *c__, real *ch, real*wa,3815 /* Subroutine */ int rfftb1_(integer *n, float *c__, float *ch, float *wa, 3816 3816 integer *ifac) 3817 3817 { … … 3820 3820 3821 3821 /* Local variables */ 3822 extern /* Subroutine */ int radb2_(integer *, integer *, real *, real*,3823 real *), radb3_(integer *, integer *, real *, real *, real*,3824 real *), radb4_(integer *, integer *, real *, real *, real*,3825 real *, real *), radb5_(integer *, integer *, real *, real*,3826 real *, real *, real *, real*);3822 extern /* Subroutine */ int radb2_(integer *, integer *, float *, float *, 3823 float *), radb3_(integer *, integer *, float *, float *, float *, 3824 float *), radb4_(integer *, integer *, float *, float *, float *, 3825 float *, float *), radb5_(integer *, integer *, float *, float *, 3826 float *, float *, float *, float *); 3827 3827 static integer i__; 3828 3828 extern /* Subroutine */ int radbg_(integer *, integer *, integer *, 3829 integer *, real *, real *, real *, real *, real *, real*);3829 integer *, float *, float *, float *, float *, float *, float *); 3830 3830 static integer k1, l1, l2, na, nf, ip, iw, ix2, ix3, ix4, ido, idl1; 3831 3831 … … 3941 3941 3942 3942 /* ------ File rfftf.f ------ */ 3943 /* Subroutine */ int rfftf_(integer *n, real *r__, real*wsave)3944 { 3945 extern /* Subroutine */ int rfftf1_(integer *, real *, real *, real*,3943 /* Subroutine */ int rfftf_(integer *n, float *r__, float *wsave) 3944 { 3945 extern /* Subroutine */ int rfftf1_(integer *, float *, float *, float *, 3946 3946 integer *); 3947 3947 … … 3959 3959 3960 3960 /* ------ File rfftf1.f ------ */ 3961 /* Subroutine */ int rfftf1_(integer *n, real *c__, real *ch, real*wa,3961 /* Subroutine */ int rfftf1_(integer *n, float *c__, float *ch, float *wa, 3962 3962 integer *ifac) 3963 3963 { … … 3966 3966 3967 3967 /* Local variables */ 3968 extern /* Subroutine */ int radf2_(integer *, integer *, real *, real*,3969 real *), radf3_(integer *, integer *, real *, real *, real*,3970 real *), radf4_(integer *, integer *, real *, real *, real*,3971 real *, real *), radf5_(integer *, integer *, real *, real*,3972 real *, real *, real *, real*);3968 extern /* Subroutine */ int radf2_(integer *, integer *, float *, float *, 3969 float *), radf3_(integer *, integer *, float *, float *, float *, 3970 float *), radf4_(integer *, integer *, float *, float *, float *, 3971 float *, float *), radf5_(integer *, integer *, float *, float *, 3972 float *, float *, float *, float *); 3973 3973 static integer i__; 3974 3974 extern /* Subroutine */ int radfg_(integer *, integer *, integer *, 3975 integer *, real *, real *, real *, real *, real *, real*);3975 integer *, float *, float *, float *, float *, float *, float *); 3976 3976 static integer k1, l1, l2, na, kh, nf, ip, iw, ix2, ix3, ix4, ido, idl1; 3977 3977 … … 4082 4082 4083 4083 /* ------ File rffti.f ------ */ 4084 /* Subroutine */ int rffti_(integer *n, real*wsave)4085 { 4086 extern /* Subroutine */ int rffti1_(integer *, real*, integer *);4084 /* Subroutine */ int rffti_(integer *n, float *wsave) 4085 { 4086 extern /* Subroutine */ int rffti1_(integer *, float *, integer *); 4087 4087 4088 4088 /* Parameter adjustments */ … … 4098 4098 4099 4099 /* ------ File rffti1.f ------ */ 4100 /* Subroutine */ int rffti1_(integer *n, real*wa, integer *ifac)4100 /* Subroutine */ int rffti1_(integer *n, float *wa, integer *ifac) 4101 4101 { 4102 4102 /* Initialized data */ … … 4108 4108 4109 4109 /* Builtin functions */ 4110 /* double cos(double real), sin(doublereal); Remplace par math.h , Reza 29/11/99 */4110 /* double cos(doubletruc), sin(doubletruc); Remplace par math.h , Reza 29/11/99 */ 4111 4111 4112 4112 /* Local variables */ 4113 static realargh;4113 static float argh; 4114 4114 static integer ntry, i__, j; 4115 static realargld;4115 static float argld; 4116 4116 static integer k1, l1, l2, ib; 4117 static realfi;4117 static float fi; 4118 4118 static integer ld, ii, nf, ip, nl, is, nq, nr; 4119 static realarg;4119 static float arg; 4120 4120 static integer ido, ipm; 4121 static realtpi;4121 static float tpi; 4122 4122 static integer nfm1; 4123 4123 … … 4174 4174 ifac[2] = nf; 4175 4175 tpi = 6.28318530717959f; 4176 argh = tpi / ( real) (*n);4176 argh = tpi / (float) (*n); 4177 4177 is = 0; 4178 4178 nfm1 = nf - 1; … … 4192 4192 ld += l1; 4193 4193 i__ = is; 4194 argld = ( real) ld * argh;4194 argld = (float) ld * argh; 4195 4195 fi = 0.f; 4196 4196 i__3 = ido; … … 4213 4213 4214 4214 /* ------ File sinqb.f ------ */ 4215 /* Subroutine */ int sinqb_(integer *n, real *x, real*wsave)4215 /* Subroutine */ int sinqb_(integer *n, float *x, float *wsave) 4216 4216 { 4217 4217 /* System generated locals */ … … 4220 4220 /* Local variables */ 4221 4221 static integer k; 4222 extern /* Subroutine */ int cosqb_(integer *, real *, real*);4223 static realxhold;4222 extern /* Subroutine */ int cosqb_(integer *, float *, float *); 4223 static float xhold; 4224 4224 static integer kc, ns2; 4225 4225 … … 4254 4254 4255 4255 /* ------ File sinqf.f ------ */ 4256 /* Subroutine */ int sinqf_(integer *n, real *x, real*wsave)4256 /* Subroutine */ int sinqf_(integer *n, float *x, float *wsave) 4257 4257 { 4258 4258 /* System generated locals */ … … 4261 4261 /* Local variables */ 4262 4262 static integer k; 4263 extern /* Subroutine */ int cosqf_(integer *, real *, real*);4264 static realxhold;4263 extern /* Subroutine */ int cosqf_(integer *, float *, float *); 4264 static float xhold; 4265 4265 static integer kc, ns2; 4266 4266 … … 4292 4292 4293 4293 /* ------ File sinqi.f ------ */ 4294 /* Subroutine */ int sinqi_(integer *n, real*wsave)4295 { 4296 extern /* Subroutine */ int cosqi_(integer *, real*);4294 /* Subroutine */ int sinqi_(integer *n, float *wsave) 4295 { 4296 extern /* Subroutine */ int cosqi_(integer *, float *); 4297 4297 4298 4298 /* Parameter adjustments */ … … 4305 4305 4306 4306 /* ------ File sint.f ------ */ 4307 /* Subroutine */ int sint_(integer *n, real *x, real*wsave)4308 { 4309 extern /* Subroutine */ int sint1_(integer *, real *, real *, real*,4310 real*, integer *);4307 /* Subroutine */ int sint_(integer *n, float *x, float *wsave) 4308 { 4309 extern /* Subroutine */ int sint1_(integer *, float *, float *, float *, 4310 float *, integer *); 4311 4311 static integer np1, iw1, iw2, iw3; 4312 4312 … … 4325 4325 4326 4326 /* ------ File sint1.f ------ */ 4327 /* Subroutine */ int sint1_(integer *n, real *war, real *was, real *xh, real*4327 /* Subroutine */ int sint1_(integer *n, float *war, float *was, float *xh, float * 4328 4328 x, integer *ifac) 4329 4329 { 4330 4330 /* Initialized data */ 4331 4331 4332 static realsqrt3 = 1.73205080756888f;4332 static float sqrt3 = 1.73205080756888f; 4333 4333 4334 4334 /* System generated locals */ … … 4337 4337 /* Local variables */ 4338 4338 static integer modn, i__, k; 4339 static realxhold, t1, t2;4340 extern /* Subroutine */ int rfftf1_(integer *, real *, real *, real*,4339 static float xhold, t1, t2; 4340 extern /* Subroutine */ int rfftf1_(integer *, float *, float *, float *, 4341 4341 integer *); 4342 4342 static integer kc, np1, ns2; … … 4411 4411 4412 4412 /* ------ File sinti.f ------ */ 4413 /* Subroutine */ int sinti_(integer *n, real*wsave)4413 /* Subroutine */ int sinti_(integer *n, float *wsave) 4414 4414 { 4415 4415 /* Initialized data */ 4416 4416 4417 static realpi = 3.14159265358979f;4417 static float pi = 3.14159265358979f; 4418 4418 4419 4419 /* System generated locals */ … … 4421 4421 4422 4422 /* Builtin functions */ 4423 /* double sin(double real); remplace par math.h , Reza 29/11/99 */4423 /* double sin(doubletruc); remplace par math.h , Reza 29/11/99 */ 4424 4424 4425 4425 /* Local variables */ 4426 4426 static integer k; 4427 extern /* Subroutine */ int rffti_(integer *, real*);4428 static realdt;4427 extern /* Subroutine */ int rffti_(integer *, float *); 4428 static float dt; 4429 4429 static integer np1, ns2; 4430 4430 … … 4438 4438 ns2 = *n / 2; 4439 4439 np1 = *n + 1; 4440 dt = pi / ( real) np1;4440 dt = pi / (float) np1; 4441 4441 i__1 = ns2; 4442 4442 for (k = 1; k <= i__1; ++k) { … … 4785 4785 4786 4786 /* Builtin functions */ 4787 /* double cos(double real), sin(doublereal); remplace par math.h Reza 29/11/99 */4787 /* double cos(doubletruc), sin(doubletruc); remplace par math.h Reza 29/11/99 */ 4788 4788 4789 4789 /* Local variables */ … … 5085 5085 5086 5086 /* Builtin functions */ 5087 /* double cos(double real); remplace par math.h Reza 29/11/99 */5087 /* double cos(doubletruc); remplace par math.h Reza 29/11/99 */ 5088 5088 5089 5089 /* Local variables */ … … 5202 5202 5203 5203 /* Builtin functions */ 5204 /* double sin(double real), cos(doublereal); remplace par math.h Reza 29/11/99 */5204 /* double sin(doubletruc), cos(doubletruc); remplace par math.h Reza 29/11/99 */ 5205 5205 5206 5206 /* Local variables */ … … 5247 5247 5248 5248 /* Builtin functions */ 5249 /* double cos(double real), sin(doublereal); remplace par math.h Reza 29/11/99 */5249 /* double cos(doubletruc), sin(doubletruc); remplace par math.h Reza 29/11/99 */ 5250 5250 5251 5251 /* Local variables */ … … 7168 7168 7169 7169 /* Builtin functions */ 7170 /* double cos(double real), sin(doublereal); remplace par math.h Reza 29/11/99 */7170 /* double cos(doubletruc), sin(doubletruc); remplace par math.h Reza 29/11/99 */ 7171 7171 7172 7172 /* Local variables */ … … 7900 7900 7901 7901 /* Builtin functions */ 7902 /* double cos(double real), sin(doublereal); */7902 /* double cos(doubletruc), sin(doubletruc); */ 7903 7903 7904 7904 /* Local variables */ … … 8547 8547 8548 8548 /* Builtin functions */ 8549 /* double cos(double real), sin(doublereal); remplace par math.h Reza 29/11/99 */8549 /* double cos(doubletruc), sin(doubletruc); remplace par math.h Reza 29/11/99 */ 8550 8550 8551 8551 /* Local variables */ … … 8860 8860 8861 8861 /* Builtin functions */ 8862 /* double sin(double real); remplace par math.h Reza 29/11/99 */8862 /* double sin(doubletruc); remplace par math.h Reza 29/11/99 */ 8863 8863 8864 8864 /* Local variables */ -
trunk/SophyaLib/NTools/fftpackc.h
r459 r710 4 4 #include "machdefs.h" 5 5 /* #include "f2c.h" -- Remplace par ce qui suit */ 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 6 9 7 10 typedef int integer; … … 9 12 typedef char *address; 10 13 typedef short int shortint; 11 typedef float real;12 typedef double doublereal;13 typedef struct { float r, i; } complex;14 typedef struct { double r, i; } doublecomplex;14 // typedef float real; 15 // typedef double doublereal; 16 //typedef struct { float r, i; } complex; 17 //typedef struct { double r, i; } doublecomplex; 15 18 16 19 /* typedef int_4 logical; … … 21 24 /* ---------------------- */ 22 25 23 extern int cfftb_(integer *n, real *c__, real*wsave);24 extern int cfftb1_(integer *n, real *c__, real *ch, real*wa, integer *ifac);25 extern int cfftf_(integer *n, real *c__, real*wsave);26 extern int cfftf1_(integer *n, real *c__, real *ch, real*wa, integer *ifac);27 extern int cffti_(integer *n, real*wsave);28 extern int cffti1_(integer *n, real*wa, integer *ifac);29 extern int cosqb_(integer *n, real *x, real*wsave);30 extern int cosqb1_(integer *n, real *x, real *w, real*xh);31 extern int cosqf_(integer *n, real *x, real*wsave);32 extern int cosqf1_(integer *n, real *x, real *w, real*xh);33 extern int cosqi_(integer *n, real*wsave);34 extern int cost_(integer *n, real *x, real*wsave);35 extern int costi_(integer *n, real*wsave);36 extern int ezfft1_(integer *n, real*wa, integer *ifac);37 extern int ezfftb_(integer *n, real *r__, real *azero, real *a, real *b, real*wsave);38 extern int ezfftf_(integer *n, real *r__, real *azero, real *a, real *b, real*wsave);39 extern int ezffti_(integer *n, real*wsave);40 extern int passb_(integer *nac, integer *ido, integer *ip, integer *l1, integer *idl1, real *cc, real *c1, real *c2, real *ch, real *ch2, real*wa);41 extern int passb2_(integer *ido, integer *l1, real *cc, real *ch, real*wa1);42 extern int passb3_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real*wa2);43 extern int passb4_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real*wa3);44 extern int passb5_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real *wa3, real*wa4);45 extern int passf_(integer *nac, integer *ido, integer *ip, integer *l1, integer *idl1, real *cc, real *c1, real *c2, real *ch, real *ch2, real*wa);46 extern int passf2_(integer *ido, integer *l1, real *cc, real *ch, real*wa1);47 extern int passf3_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real*wa2);48 extern int passf4_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real*wa3);49 extern int passf5_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real *wa3, real*wa4);50 extern int radb2_(integer *ido, integer *l1, real *cc, real *ch, real*wa1);51 extern int radb3_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real*wa2);52 extern int radb4_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real*wa3);53 extern int radb5_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real *wa3, real*wa4);54 extern int radbg_(integer *ido, integer *ip, integer *l1, integer *idl1, real *cc, real *c1, real *c2, real *ch, real *ch2, real*wa);55 extern int radf2_(integer *ido, integer *l1, real *cc, real *ch, real*wa1);56 extern int radf3_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real*wa2);57 extern int radf4_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real*wa3);58 extern int radf5_(integer *ido, integer *l1, real *cc, real *ch, real *wa1, real *wa2, real *wa3, real*wa4);59 extern int radfg_(integer *ido, integer *ip, integer *l1, integer *idl1, real *cc, real *c1, real *c2, real *ch, real *ch2, real*wa);60 extern int rfftb_(integer *n, real *r__, real*wsave);61 extern int rfftb1_(integer *n, real *c__, real *ch, real*wa, integer *ifac);62 extern int rfftf_(integer *n, real *r__, real*wsave);63 extern int rfftf1_(integer *n, real *c__, real *ch, real*wa, integer *ifac);64 extern int rffti_(integer *n, real*wsave);65 extern int rffti1_(integer *n, real*wa, integer *ifac);66 extern int sinqb_(integer *n, real *x, real*wsave);67 extern int sinqf_(integer *n, real *x, real*wsave);68 extern int sinqi_(integer *n, real*wsave);69 extern int sint_(integer *n, real *x, real*wsave);70 extern int sint1_(integer *n, real *war, real *was, real *xh, real*x, integer *ifac);71 extern int sinti_(integer *n, real*wsave);26 extern int cfftb_(integer *n, float *c__, float *wsave); 27 extern int cfftb1_(integer *n, float *c__, float *ch, float *wa, integer *ifac); 28 extern int cfftf_(integer *n, float *c__, float *wsave); 29 extern int cfftf1_(integer *n, float *c__, float *ch, float *wa, integer *ifac); 30 extern int cffti_(integer *n, float *wsave); 31 extern int cffti1_(integer *n, float *wa, integer *ifac); 32 extern int cosqb_(integer *n, float *x, float *wsave); 33 extern int cosqb1_(integer *n, float *x, float *w, float *xh); 34 extern int cosqf_(integer *n, float *x, float *wsave); 35 extern int cosqf1_(integer *n, float *x, float *w, float *xh); 36 extern int cosqi_(integer *n, float *wsave); 37 extern int cost_(integer *n, float *x, float *wsave); 38 extern int costi_(integer *n, float *wsave); 39 extern int ezfft1_(integer *n, float *wa, integer *ifac); 40 extern int ezfftb_(integer *n, float *r__, float *azero, float *a, float *b, float *wsave); 41 extern int ezfftf_(integer *n, float *r__, float *azero, float *a, float *b, float *wsave); 42 extern int ezffti_(integer *n, float *wsave); 43 extern int passb_(integer *nac, integer *ido, integer *ip, integer *l1, integer *idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, float *wa); 44 extern int passb2_(integer *ido, integer *l1, float *cc, float *ch, float *wa1); 45 extern int passb3_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2); 46 extern int passb4_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3); 47 extern int passb5_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3, float *wa4); 48 extern int passf_(integer *nac, integer *ido, integer *ip, integer *l1, integer *idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, float *wa); 49 extern int passf2_(integer *ido, integer *l1, float *cc, float *ch, float *wa1); 50 extern int passf3_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2); 51 extern int passf4_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3); 52 extern int passf5_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3, float *wa4); 53 extern int radb2_(integer *ido, integer *l1, float *cc, float *ch, float *wa1); 54 extern int radb3_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2); 55 extern int radb4_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3); 56 extern int radb5_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3, float *wa4); 57 extern int radbg_(integer *ido, integer *ip, integer *l1, integer *idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, float *wa); 58 extern int radf2_(integer *ido, integer *l1, float *cc, float *ch, float *wa1); 59 extern int radf3_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2); 60 extern int radf4_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3); 61 extern int radf5_(integer *ido, integer *l1, float *cc, float *ch, float *wa1, float *wa2, float *wa3, float *wa4); 62 extern int radfg_(integer *ido, integer *ip, integer *l1, integer *idl1, float *cc, float *c1, float *c2, float *ch, float *ch2, float *wa); 63 extern int rfftb_(integer *n, float *r__, float *wsave); 64 extern int rfftb1_(integer *n, float *c__, float *ch, float *wa, integer *ifac); 65 extern int rfftf_(integer *n, float *r__, float *wsave); 66 extern int rfftf1_(integer *n, float *c__, float *ch, float *wa, integer *ifac); 67 extern int rffti_(integer *n, float *wsave); 68 extern int rffti1_(integer *n, float *wa, integer *ifac); 69 extern int sinqb_(integer *n, float *x, float *wsave); 70 extern int sinqf_(integer *n, float *x, float *wsave); 71 extern int sinqi_(integer *n, float *wsave); 72 extern int sint_(integer *n, float *x, float *wsave); 73 extern int sint1_(integer *n, float *war, float *was, float *xh, float *x, integer *ifac); 74 extern int sinti_(integer *n, float *wsave); 72 75 73 76 /* ---------------------- */ … … 124 127 125 128 /* Rerunning f2c -P may change prototypes or declarations. */ 129 #ifdef __cplusplus 130 } 131 #endif 126 132 127 133 #endif /* FFTPACK_H_SEEN */
Note:
See TracChangeset
for help on using the changeset viewer.