/usr/share/vala-0.14/vapi/gsl.vapi is in valac-0.14 0.14.2-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 | /* gsl.vapi
*
* Copyright (C) 2008 Matias De la Puente
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Author:
* Matias De la Puente <mfpuente.ar@gmail.com>
*/
namespace Gsl
{
/*
* Physical Constants
*/
[CCode (cprefix="GSL_CONST_NUM_", cheader_filename="gsl/gsl_const_num.h")]
public enum ConstNum
{
FINE_STRUCTURE,
AVOGADRO,
YOTTA,
ZETTA,
EXA,
PETA,
TERA,
GIGA,
MEGA,
KILO,
MILLI,
MICRO,
NANO,
PICO,
FEMTO,
ATTO,
ZEPTO,
YOCTO
}
[CCode (cprefix="GSL_CONST_CGS_", cheader_filename="gsl/gsl_const_cgs.h")]
public enum ConstCGS
{
SPEED_OF_LIGHT,
GRAVITATIONAL_CONSTANT,
PLANCKS_CONSTANT_H,
PLANCKS_CONSTANT_HBAR,
ASTRONOMICAL_UNIT,
LIGHT_YEAR,
PARSEC,
GRAV_ACCEL,
ELECTRON_VOLT,
MASS_ELECTRON,
MASS_MUON,
MASS_PROTON,
MASS_NEUTRON,
RYDBERG,
BOLTZMANN,
BOHR_MAGNETON,
NUCLEAR_MAGNETON,
ELECTRON_MAGNETIC_MOMENT,
PROTON_MAGNETIC_MOMENT,
MOLAR_GAS,
STANDARD_GAS_VOLUME,
MINUTE,
HOUR,
DAY,
WEEK,
INCH,
FOOT,
YARD,
MILE,
NAUTICAL_MILE,
FATHOM,
MIL,
POINT,
TEXPOINT,
MICRON,
ANGSTROM,
HECTARE,
ACRE,
BARN,
LITER,
US_GALLON,
QUART,
PINT,
CUP,
FLUID_OUNCE,
TABLESPOON,
TEASPOON,
CANADIAN_GALLON,
UK_GALLON,
MILES_PER_HOUR,
KILOMETERS_PER_HOUR,
KNOT,
POUND_MASS,
OUNCE_MASS,
TON,
METRIC_TON,
UK_TON,
TROY_OUNCE,
CARAT,
UNIFIED_ATOMIC_MASS,
GRAM_FORCE,
POUND_FORCE,
KILOPOUND_FORCE,
POUNDAL,
CALORIE,
BTU,
THERM,
HORSEPOWER,
BAR,
STD_ATMOSPHERE,
TORR,
METER_OF_MERCURY,
INCH_OF_MERCURY,
INCH_OF_WATER,
PSI,
POISE,
STOKES,
FARADAY,
ELECTRON_CHARGE,
GAUSS,
STILB,
LUMEN,
LUX,
PHOT,
FOOTCANDLE,
LAMBERT,
FOOTLAMBERT,
CURIE,
ROENTGEN,
RAD,
SOLAR_MASS,
BOHR_RADIUS,
NEWTON,
DYNE,
JOULE,
ERG,
STEFAN_BOLTZMANN_CONSTANT,
THOMSON_CROSS_SECTION
}
[CCode (cprefix="GSL_CONST_CGSM_", cheader_filename="gsl/gsl_const_cgsm.h")]
public enum ConstCGSM
{
SPEED_OF_LIGHT,
GRAVITATIONAL_CONSTANT,
PLANCKS_CONSTANT_H,
PLANCKS_CONSTANT_HBAR,
ASTRONOMICAL_UNIT,
LIGHT_YEAR,
PARSEC,
GRAV_ACCEL,
ELECTRON_VOLT,
MASS_ELECTRON,
MASS_MUON,
MASS_PROTON,
MASS_NEUTRON,
RYDBERG,
BOLTZMANN,
BOHR_MAGNETON,
NUCLEAR_MAGNETON,
ELECTRON_MAGNETIC_MOMENT,
PROTON_MAGNETIC_MOMENT,
MOLAR_GAS,
STANDARD_GAS_VOLUME,
MINUTE,
HOUR,
DAY,
WEEK,
INCH,
FOOT,
YARD,
MILE,
NAUTICAL_MILE,
FATHOM,
MIL,
POINT,
TEXPOINT,
MICRON,
ANGSTROM,
HECTARE,
ACRE,
BARN,
LITER,
US_GALLON,
QUART,
PINT,
CUP,
FLUID_OUNCE,
TABLESPOON,
TEASPOON,
CANADIAN_GALLON,
UK_GALLON,
MILES_PER_HOUR,
KILOMETERS_PER_HOUR,
KNOT,
POUND_MASS,
OUNCE_MASS,
TON,
METRIC_TON,
UK_TON,
TROY_OUNCE,
CARAT,
UNIFIED_ATOMIC_MASS,
GRAM_FORCE,
POUND_FORCE,
KILOPOUND_FORCE,
POUNDAL,
CALORIE,
BTU,
THERM,
HORSEPOWER,
BAR,
STD_ATMOSPHERE,
TORR,
METER_OF_MERCURY,
INCH_OF_MERCURY,
INCH_OF_WATER,
PSI,
POISE,
STOKES,
FARADAY,
ELECTRON_CHARGE,
GAUSS,
STILB,
LUMEN,
LUX,
PHOT,
FOOTCANDLE,
LAMBERT,
FOOTLAMBERT,
CURIE,
ROENTGEN,
RAD,
SOLAR_MASS,
BOHR_RADIUS,
NEWTON,
DYNE,
JOULE,
ERG,
STEFAN_BOLTZMANN_CONSTANT,
THOMSON_CROSS_SECTION
}
[CCode (cprefix="GSL_CONST_MKS_", cheader_filename="gsl/gsl_const_mks.h")]
public enum ConstMKS
{
SPEED_OF_LIGHT,
GRAVITATIONAL_CONSTANT,
PLANCKS_CONSTANT_H,
PLANCKS_CONSTANT_HBAR,
ASTRONOMICAL_UNIT,
LIGHT_YEAR,
PARSEC,
GRAV_ACCEL,
ELECTRON_VOLT,
MASS_ELECTRON,
MASS_MUON,
MASS_PROTON,
MASS_NEUTRON,
RYDBERG,
BOLTZMANN,
BOHR_MAGNETON,
NUCLEAR_MAGNETON,
ELECTRON_MAGNETIC_MOMENT,
PROTON_MAGNETIC_MOMENT,
MOLAR_GAS,
STANDARD_GAS_VOLUME,
MINUTE,
HOUR,
DAY,
WEEK,
INCH,
FOOT,
YARD,
MILE,
NAUTICAL_MILE,
FATHOM,
MIL,
POINT,
TEXPOINT,
MICRON,
ANGSTROM,
HECTARE,
ACRE,
BARN,
LITER,
US_GALLON,
QUART,
PINT,
CUP,
FLUID_OUNCE,
TABLESPOON,
TEASPOON,
CANADIAN_GALLON,
UK_GALLON,
MILES_PER_HOUR,
KILOMETERS_PER_HOUR,
KNOT,
POUND_MASS,
OUNCE_MASS,
TON,
METRIC_TON,
UK_TON,
TROY_OUNCE,
CARAT,
UNIFIED_ATOMIC_MASS,
GRAM_FORCE,
POUND_FORCE,
KILOPOUND_FORCE,
POUNDAL,
CALORIE,
BTU,
THERM,
HORSEPOWER,
BAR,
STD_ATMOSPHERE,
TORR,
METER_OF_MERCURY,
INCH_OF_MERCURY,
INCH_OF_WATER,
PSI,
POISE,
STOKES,
FARADAY,
ELECTRON_CHARGE,
GAUSS,
STILB,
LUMEN,
LUX,
PHOT,
FOOTCANDLE,
LAMBERT,
FOOTLAMBERT,
CURIE,
ROENTGEN,
RAD,
SOLAR_MASS,
BOHR_RADIUS,
NEWTON,
DYNE,
JOULE,
ERG,
STEFAN_BOLTZMANN_CONSTANT,
THOMSON_CROSS_SECTION,
VACUUM_PERMITTIVITY,
VACUUM_PERMEABILITY,
DEBYE
}
[CCode (cprefix="GSL_CONST_MKSA_", cheader_filename="gsl/gsl_const_mksa.h")]
public enum ConstMKSA
{
SPEED_OF_LIGHT,
GRAVITATIONAL_CONSTANT,
PLANCKS_CONSTANT_H,
PLANCKS_CONSTANT_HBAR,
ASTRONOMICAL_UNIT,
LIGHT_YEAR,
PARSEC,
GRAV_ACCEL,
ELECTRON_VOLT,
MASS_ELECTRON,
MASS_MUON,
MASS_PROTON,
MASS_NEUTRON,
RYDBERG,
BOLTZMANN,
BOHR_MAGNETON,
NUCLEAR_MAGNETON,
ELECTRON_MAGNETIC_MOMENT,
PROTON_MAGNETIC_MOMENT,
MOLAR_GAS,
STANDARD_GAS_VOLUME,
MINUTE,
HOUR,
DAY,
WEEK,
INCH,
FOOT,
YARD,
MILE,
NAUTICAL_MILE,
FATHOM,
MIL,
POINT,
TEXPOINT,
MICRON,
ANGSTROM,
HECTARE,
ACRE,
BARN,
LITER,
US_GALLON,
QUART,
PINT,
CUP,
FLUID_OUNCE,
TABLESPOON,
TEASPOON,
CANADIAN_GALLON,
UK_GALLON,
MILES_PER_HOUR,
KILOMETERS_PER_HOUR,
KNOT,
POUND_MASS,
OUNCE_MASS,
TON,
METRIC_TON,
UK_TON,
TROY_OUNCE,
CARAT,
UNIFIED_ATOMIC_MASS,
GRAM_FORCE,
POUND_FORCE,
KILOPOUND_FORCE,
POUNDAL,
CALORIE,
BTU,
THERM,
HORSEPOWER,
BAR,
STD_ATMOSPHERE,
TORR,
METER_OF_MERCURY,
INCH_OF_MERCURY,
INCH_OF_WATER,
PSI,
POISE,
STOKES,
FARADAY,
ELECTRON_CHARGE,
GAUSS,
STILB,
LUMEN,
LUX,
PHOT,
FOOTCANDLE,
LAMBERT,
FOOTLAMBERT,
CURIE,
ROENTGEN,
RAD,
SOLAR_MASS,
BOHR_RADIUS,
NEWTON,
DYNE,
JOULE,
ERG,
STEFAN_BOLTZMANN_CONSTANT,
THOMSON_CROSS_SECTION,
VACUUM_PERMITTIVITY,
VACUUM_PERMEABILITY,
DEBYE
}
/*
* Error Handling
*/
[CCode (cprefix="GSL_", cheader_filename="gsl/gsl_errno.h")]
public enum Status
{
SUCCESS,
FAILURE,
CONTINUE,
EDOM,
ERANGE,
EFAULT,
EINVAL,
EFAILED,
EFACTOR,
ESANITY,
ENOMEM,
EBADFUNC,
ERUNAWAY,
EMAXITER,
EZERODIV,
EBADTOL,
ETOL,
EUNDRFLW,
EOVRFLW,
ELOSS,
EROUND,
EBADLEN,
ENOTSQR,
ESING,
EDIVERGE,
EUNSUP,
EUNIMPL,
ECACHE,
ETABLE,
ENOPROG,
ENOPROGJ,
ETOLF,
ETOLX,
ETOLG,
EOF
}
[CCode (cprefix="GSL_PREC_", cheader_filename="gsl/gsl_mode.h")]
public enum Mode
{
DOUBLE,
SINGLE,
APPROX
}
[CCode (has_target = false)]
public delegate void ErrorHandler (string reason, string file, int line, int errno);
[CCode (has_target = false)]
public delegate void StreamHandler (string label, string file, int line, string reason);
[CCode (lower_case_cprefix="gsl_", cheader_filename="gsl/gsl_errno.h")]
namespace Error
{
public static void error (string reason, string file, int line, int errno);
public static unowned string strerror (int errno);
public static ErrorHandler set_error_handler (ErrorHandler? new_handler);
public static ErrorHandler set_error_handler_off ();
}
[CCode (lower_case_cprefix="gsl_", cheader_filename="gsl/gsl_errno.h")]
namespace Stream
{
[CCode (cname="gsl_stream_printf")]
public static void printf (string label, string file, int line, string reason);
public static StreamHandler set_stream_handler (StreamHandler new_handler);
public static GLib.FileStream set_stream (GLib.FileStream new_stream);
}
/*
* Mathematical Functions
*/
[CCode (cprefix="", cheader_filename="gsl/gsl_math.h")]
public enum MathConst
{
M_E,
M_LOG2E,
M_LOG10E,
M_SQRT2,
M_SQRT1_2,
M_SQRT3,
M_PI,
M_PI_2,
M_PI_4,
M_2_SQRTPI,
M_1_PI,
M_2_PI,
M_LN10,
M_LN2,
M_LNPI,
M_EULER
}
/* The isnan, isinf and finite are define in the double type. The elementary functions are in GLib.Math */
[CCode (has_target = false)]
public delegate double _Function (double x, void* params);
[CCode (has_target = false)]
public delegate void _FunctionFdf (double x, void* params, out double f, out double df);
[SimpleType]
[CCode (cname="gsl_function", cheader_filename="gsl/gsl_math.h")]
public struct Function
{
public _Function function;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_function_fdf", cheader_filename="gsl/gsl_math.h")]
public struct FunctionFdf
{
public _Function f;
public _Function df;
public _FunctionFdf fdf;
public void* params;
}
/*
* Complex Numbers
*/
[SimpleType]
[CCode (cname="gsl_complex", cheader_filename="gsl/gsl_complex.h,gsl/gsl_complex_math.h")]
public struct Complex
{
[CCode (cname="dat[0]")]
public double real;
[CCode (cname="dat[1]")]
public double imag;
public static Complex rect (double x, double y);
public static Complex polar (double r, double theta);
public static double arg (Complex z);
public static double abs (Complex z);
public static double abs2 (Complex z);
public static double logabs (Complex z);
public static Complex add (Complex a, Complex b);
public static Complex sub (Complex a, Complex b);
public static Complex mul (Complex a, Complex b);
public static Complex div (Complex a, Complex b);
public static Complex add_real (Complex a, double x);
public static Complex sub_real (Complex a, double x);
public static Complex mul_real (Complex a, double x);
public static Complex div_real (Complex a, double x);
public static Complex add_imag (Complex a, double y);
public static Complex sub_imag (Complex a, double y);
public static Complex mul_imag (Complex a, double y);
public static Complex div_imag (Complex a, double y);
public static Complex conjugate (Complex z);
public static Complex inverse (Complex z);
public static Complex negative (Complex z);
public static Complex sqrt (Complex z);
public static Complex sqrt_real (double x);
public static Complex pow (Complex z, Complex a);
public static Complex pow_real (Complex z, double x);
public static Complex exp (Complex z);
public static Complex log (Complex z);
public static Complex log10 (Complex z);
public static Complex log_b (Complex z, Complex b);
public static Complex sin (Complex z);
public static Complex cos (Complex z);
public static Complex tan (Complex z);
public static Complex sec (Complex z);
public static Complex csc (Complex z);
public static Complex cot (Complex z);
public static Complex arcsin (Complex z);
public static Complex arcsin_real (double z);
public static Complex arccos (Complex z);
public static Complex arccos_real (double z);
public static Complex arctan (Complex z);
public static Complex arcsec (Complex z);
public static Complex arcsec_real (double z);
public static Complex arccsc (Complex z);
public static Complex arccsc_real (double z);
public static Complex arccot (Complex z);
public static Complex sinh (Complex z);
public static Complex cosh (Complex z);
public static Complex tanh (Complex z);
public static Complex sech (Complex z);
public static Complex csch (Complex z);
public static Complex coth (Complex z);
public static Complex arcsinh (Complex z);
public static Complex arccosh (Complex z);
public static Complex arccosh_real (double z);
public static Complex arctanh (Complex z);
public static Complex arctanh_real (double z);
public static Complex arcsech (Complex z);
public static Complex arccsch (Complex z);
public static Complex arccoth (Complex z);
}
/*
* Polynomials
*/
[CCode (lower_case_cprefix="gsl_poly_", cheader_filename="gsl/gsl_poly.h")]
namespace Poly
{
public static double eval (double[] c, double x);
public static Complex complex_eval (double[] c, Complex z);
[CCode (cname="gsl_complex_poly_complex_eval")]
public static Complex poly_complex_eval (Complex[] c, Complex z);
public static int dd_init ([CCode (array_length = false)] double[] dd, [CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size);
public static double dd_eval ([CCode (array_length = false)] double[] dd, [CCode (array_length = false)] double[] xa, size_t size, double x);
public static int dd_taylor ([CCode (array_length = false)] double[] c, double xp, [CCode (array_length = false)] double[] dd, [CCode (array_length = false)] double[] xa, size_t size, [CCode (array_length = false)] double[] w);
public static int solve_quadratic (double a, double b, double c, out double x0, out double x1);
public static int complex_solve_quadratic (double a, double b, double c, out Complex z0, out Complex z1);
public static int solve_cubic (double a, double b, double c, out double x0, out double x1, out double x2);
public static int complex_solve_cubic (double a, double b, double c, out Complex z0, out Complex z1, out Complex z2);
}
[Compact]
[CCode (cname="gsl_poly_complex_workspace", cheader_filename="gsl/gsl_poly.h")]
public class PolyComplexWorkspace
{
public size_t nc;
public double* matrix;
[CCode (cname="gsl_poly_complex_workspace_alloc")]
public PolyComplexWorkspace (size_t n);
[CCode (cname="gsl_poly_complex_solve")]
public static int solve (double[]a, PolyComplexWorkspace w, out double z);
}
/*
* Special Functions
*/
[SimpleType]
[CCode (cname="gsl_sf_result", cheader_filename="gsl/gsl_sf_result.h")]
public struct Result
{
public double val;
public double err;
}
[SimpleType]
[CCode (cname="gsl_sf_result_e10", cheader_filename="gsl/gsl_sf_result.h")]
public struct ResultE10
{
public double val;
public double err;
public int e10;
}
[CCode (lower_case_cprefix="gsl_sf_airy_", cheader_filename="gsl/gsl_sf_airy.h")]
namespace Airy
{
public static double Ai (double x, Mode mode);
public static int Ai_e (double x, Mode mode, out Result result);
public static double Bi (double x, Mode mode);
public static int Bi_e (double x, Mode mode, out Result result);
public static double Ai_scaled (double x, Mode mode);
public static int Ai_scaled_e (double x, Mode mode, out Result result);
public static double Bi_scaled (double x, Mode mode);
public static int Bi_scaled_e (double x, Mode mode, out Result result);
public static double Ai_deriv (double x, Mode mode);
public static int Ai_deriv_e (double x, Mode mode, out Result result);
public static double Bi_deriv (double x, Mode mode);
public static int Bi_deriv_e (double x, Mode mode, out Result result);
public static double Ai_deriv_scaled (double x, Mode mode);
public static int Ai_deriv_scaled_e (double x, Mode mode, out Result result);
public static double Bi_deriv_scaled (double x, Mode mode);
public static int Bi_deriv_scaled_e (double x, Mode mode, out Result result);
public static double zero_Ai (uint s);
public static int zero_Ai_e (uint s, out Result result);
public static double zero_Bi (uint s);
public static int zero_Bi_e (uint s, out Result result);
public static double zero_Ai_deriv (uint s);
public static int zero_Ai_deriv_e (uint s, out Result result);
public static double zero_Bi_deriv (uint s);
public static int zero_Bi_deriv_e (uint s, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_bessel_", cheader_filename="gsl/gsl_sf_bessel.h")]
namespace Bessel
{
public static double J0 (double x);
public static int J0_e (double x, out Result result);
public static double J1 (double x);
public static int J1_e (double x, out Result result);
public static double Jn (int n, double x);
public static int Jn_e (int n, double x, out Result result);
public static int Jn_array (int nmin, int nmax, double x, [CCode (array_length = false)] double[] result_array);
public static double Y0 (double x);
public static int Y0_e (double x, out Result result);
public static double Y1 (double x);
public static int Y1_e (double x, out Result result);
public static double Yn (int n, double x);
public static int Yn_e (int n, double x, out Result result);
public static int Yn_array (int nmin, int nmax, double x, [CCode (array_length = false)] double[] result_array);
public static double I0 (double x);
public static int I0_e (double x, out Result result);
public static double I1 (double x);
public static int I1_e (double x, out Result result);
public static double In (int n, double x);
public static int In_e (int n, double x, out Result result);
public static int In_array (int nmin, int nmax, double x, [CCode (array_length = false)] double[] result_array);
public static double I0_scaled (double x);
public static int I0_scaled_e (double x, out Result result);
public static double I1_scaled (double x);
public static int I1_scaled_e (double x, out Result result);
public static double In_scaled (int n, double x);
public static int In_scaled_e (int n, double x, out Result result);
public static int In_scaled_array (int nmin, int nmax, double x, [CCode (array_length = false)] double[] result_array);
public static double K0 (double x);
public static int K0_e (double x, out Result result);
public static double K1 (double x);
public static int K1_e (double x, out Result result);
public static double Kn (int n, double x);
public static int Kn_e (int n, double x, out Result result);
public static int Kn_array (int nmin, int nmax, double x, [CCode (array_length = false)] double[] result_array);
public static double K0_scaled (double x);
public static int K0_scaled_e (double x, out Result result);
public static double K1_scaled (double x);
public static int K1_scaled_e (double x, out Result result);
public static double Kn_scaled (int n, double x);
public static int Kn_scaled_e (int n, double x, out Result result);
public static int Kn_scaled_array (int nmin, int nmax, double x, [CCode (array_length = false)] double[] result_array);
public static double j0 (double x);
public static int j0_e (double x, out Result result);
public static double j1 (double x);
public static int j1_e (double x, out Result result);
public static double j2 (double x);
public static int j2_e (double x, out Result result);
public static double jl (int l, double x);
public static int jl_e (int l, double x, out Result result);
public static int jl_array (int lmax, double x, [CCode (array_length = false)] double[] result_array);
public static int jl_steed_array (int lmax, double x, [CCode (array_length = false)] double[] jl_x_array);
public static double y0 (double x);
public static int y0_e (double x, out Result result);
public static double y1 (double x);
public static int y1_e (double x, out Result result);
public static double y2 (double x);
public static int y2_e (double x, out Result result);
public static double yl (int l, double x);
public static int yl_e (int l, double x, out Result result);
public static int yl_array (int lmax, double x, [CCode (array_length = false)] double[] result_array);
public static double i0_scaled (double x);
public static int i0_scaled_e (double x, out Result result);
public static double i1_scaled (double x);
public static int i1_scaled_e (double x, out Result result);
public static double i2_scaled (double x);
public static int i2_scaled_e (double x, out Result result);
public static double il_scaled (int l, double x);
public static int il_scaled_e (int l, double x, out Result result);
public static int il_scaled_array (int lmax, double x, [CCode (array_length = false)] double[] result_array);
public static double k0_scaled (double x);
public static int k0_scaled_e (double x, out Result result);
public static double k1_scaled (double x);
public static int k1_scaled_e (double x, out Result result);
public static double k2_scaled (double x);
public static int k2_scaled_e (double x, out Result result);
public static double kl_scaled (int l, double x);
public static int kl_scaled_e (int l, double x, out Result result);
public static int kl_scaled_array (int lmax, double x, [CCode (array_length = false)] double[] result_array);
public static double Jnu (double nu, double x);
public static int Jnu_e (double nu, double x, out Result result);
public static int sequence_Jnu_e (double nu, Mode mode, size_t size, [CCode (array_length = false)] double[] v);
public static double Ynu (double nu, double x);
public static int Ynu_e (double nu, double x, out Result result);
public static double Inu (double nu, double x);
public static int Inu_e (double nu, double x, out Result result);
public static double Inu_scaled (double nu, double x);
public static int Inu_scaled_e (double nu, double x, out Result result);
public static double Knu (double nu, double x);
public static int Knu_e (double nu, double x, out Result result);
public static double lnKnu (double nu, double x);
public static int lnKnu_e (double nu, double x, out Result result);
public static double Knu_scaled (double nu, double x);
public static int Knu_scaled_e (double nu, double x, out Result result);
public static double zero_J0 (uint s);
public static int zero_J0_e (uint s, out Result result);
public static double zero_J1 (uint s);
public static int zero_J1_e (uint s, out Result result);
public static double zero_Jnu (double nu, uint s);
public static int zero_Jnu_e (double nu, uint s, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_clausen.h")]
namespace Clausen
{
public static double clausen (double x);
public static int clausen_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_coulomb.h")]
namespace Hydrogenic
{
public static double hydrogenicR_1 (double z, double r);
public static int hydrogenicR_1_e (double z, double r, out Result result);
public static double hydrogenicR (int n, int l, double z, double r);
public static int hydrogenicR_e (int n, int l, double z, double r, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_coulomb_wave_", cheader_filename="gsl/gsl_sf_coulomb.h")]
namespace CoulombWave
{
public static int FG_e (double eta, double x, double l_f, int k, out Result f, out Result fp, out Result g, out Result gp, out double exp_f, out double exp_g);
public static int F_array (double l_min, int kmax, double eta, double x, [CCode (array_length = false)] double[] fc_array, out double f_exponent);
public static int FG_array (double l_min, int kmax, double eta, double x, [CCode (array_length = false)] double[] fc_array, [CCode (array_length = false)] double[] gc_array, out double f_exponent, out double g_exponent);
public static int FGp_array (double l_min, int kmax, double eta, double x, [CCode (array_length = false)] double[] fc_array, [CCode (array_length = false)] double[] fcp_array, [CCode (array_length = false)] double[] gc_array, [CCode (array_length = false)] double[] gcp_array, out double f_exponent, out double g_exponent);
public static int sphF_array (double l_min, int kmax, double eta, double x, [CCode (array_length = false)] double[] fc_array, [CCode (array_length = false)] double[] f_exponent);
}
[CCode (lower_case_cprefix="gsl_sf_coulomb_", cheader_filename="gsl/gsl_sf_coulomb.h")]
namespace Coulomb
{
public static int CL_e (double l, double eta, out Result result);
public static int CL_array (double lmin, int kmax, double eta, [CCode (array_length = false)] double[] cl);
}
[CCode (lower_case_cprefix="gsl_sf_coupling_", cheader_filename="gsl/gsl_coupling.h")]
namespace Coupling
{
public static double 3j (int two_ja, int two_jb, int two_jc, int two_ma, int two_mb, int two_mc);
public static int 3j_e (int two_ja, int two_jb, int two_jc, int two_ma, int two_mb, int two_mc, out Result result);
public static double 6j (int two_ja, int two_jb, int two_jc, int two_jd, int two_je, int two_jf);
public static int 6j_e (int two_ja, int two_jb, int two_jc, int two_jd, int two_je, int two_jf, out Result result);
public static double 9j (int two_ja, int two_jb, int two_jc, int two_jd, int two_je, int two_jf, int two_jg, int two_jh, int two_ji);
public static int 9j_e (int two_ja, int two_jb, int two_jc, int two_jd, int two_je, int two_jf, int two_jg, int two_jh, int two_ji, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_dawson.h")]
namespace Dawson
{
public static double dawson (double x);
public static int dawson_e (double x, out Result result);
}
[CCode (cheader_filename="gsl/gsl_sf_debye.h")]
namespace Debye
{
[CCode (cname="gsl_sf_debye_1")]
public static double D1 (double x);
[CCode (cname="gsl_sf_debye_1_e")]
public static int D1_e (double x, out Result result);
[CCode (cname="gsl_sf_debye_2")]
public static double D2 (double x);
[CCode (cname="gsl_sf_debye_2_e")]
public static int D2_e (double x, out Result result);
[CCode (cname="gsl_sf_debye_3")]
public static double D3 (double x);
[CCode (cname="gsl_sf_debye_3_e")]
public static int D3_e (double x, out Result result);
[CCode (cname="gsl_sf_debye_4")]
public static double D4 (double x);
[CCode (cname="gsl_sf_debye_4_e")]
public static int D4_e (double x, out Result result);
[CCode (cname="gsl_sf_debye_5")]
public static double D5 (double x);
[CCode (cname="gsl_sf_debye_5_e")]
public static int D5_e (double x, out Result result);
[CCode (cname="gsl_sf_debye_6")]
public static double D6 (double x);
[CCode (cname="gsl_sf_debye_6_e")]
public static int D6_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_dilog.h")]
namespace Dilog
{
public static double dilog (double x);
public static int dilog_e (double x, out Result result);
public static int complex_dilog_e (double r, double theta, out Result result_re, out Result result_im);
}
[CCode (lower_case_cprefix="gsl_sf_multiply_", cheader_filename="gsl/gsl_sf_elementary.h")]
namespace Multiply
{
public static int e (double x, double y, out Result result);
public static int err_e (double x, double dx, double y, double dy, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_ellint_", cheader_filename="gsl/gsl_sf_ellint.h")]
namespace EllInt
{
public static double Kcomp (double k, Mode mode);
public static int Kcomp_e (double k, Mode mode, out Result result);
public static double Ecomp (double k, Mode mode);
public static int Ecomp_e (double k, Mode mode, out Result result);
public static double Pcomp (double k, double n, Mode mode);
public static int Pcomp_e (double k, double n, Mode mode, out Result result);
public static double F (double phi, double k, Mode mode);
public static int F_e (double phi, double k, Mode mode, out Result result);
public static double E (double phi, double k, Mode mode);
public static int E_e (double phi, double k, Mode mode, out Result result);
public static double P (double phi, double k, double n, Mode mode);
public static int P_e (double phi, double k, double n, Mode mode, out Result result);
public static double D (double phi, double k, double n, Mode mode);
public static int D_e (double phi, double k, double n, Mode mode, out Result result);
public static double RC (double x, double y, Mode mode);
public static int RC_e (double x, double y, Mode mode, out Result result);
public static double RD (double x, double y, double z, Mode mode);
public static int RD_e (double x, double y, double z, Mode mode, out Result result);
public static double RF (double x, double y, double z, Mode mode);
public static int RF_e (double x, double y, double z, Mode mode, out Result result);
public static double RJ (double x, double y, double z, double p, Mode mode);
public static int RJ_e (double x, double y, double z, double p, Mode mode, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_elljac_", cheader_filename="gsl/gsl_elljac.h")]
namespace EllJac
{
public static int e (double u, double m, out double sn, out double cn, out double dn);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_erf.h")]
namespace Erf
{
public static double erf (double x);
public static int erf_e (double x, out Result result);
public static double erf_Z (double x);
public static int erf_Z_e (double x, out Result result);
public static double erf_Q (double x);
public static int erf_Q_e (double x, out Result result);
public static double erfc (double x);
public static int erfc_e (double x, out Result result);
public static double log_erfc (double x);
public static int log_erfc_e (double x, out Result result);
public static double hazard (double x);
public static int hazard_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_exp.h")]
namespace Exp
{
public static double exp (double x);
public static int exp_e (double x, out Result result);
public static int exp_e10_e (double x, out ResultE10 result);
public static double exp_mult (double x, double y);
public static int exp_mult_e (double x, double y, out Result result);
public static int exp_mult_e10_e (double x, double y, out ResultE10 result);
public static int exp_err_e (double x, double dx, out Result result);
public static int exp_err_e10_e (double x, double dx, out ResultE10 result);
public static int exp_mul_err_e (double x, double dx, double y, double dy, out Result result);
public static int exp_mul_err_e10_e (double x, double dx, double y, double dy, out ResultE10 result);
public static double expm1 (double x);
public static int expm1_e (double x, out Result result);
public static double exprel (double x);
public static int exprel_e (double x, out Result result);
public static double exprel_2 (double x);
public static int exprel_2_e (double x, out Result result);
public static double exprel_n (int n, double x);
public static int exprel_n_e (int n, double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_expint.h")]
namespace Expint
{
public static double expint_E1 (double x);
public static int expint_E1_e (double x, out Result result);
public static double expint_E2 (double x);
public static int expint_E2_e (double x, out Result result);
public static double expint_En (int n, double x);
public static int expint_En_e (int n, double x, out Result result);
public static double expint_Ei (double x);
public static int expint_Ei_e (double x, out Result result);
public static double expint_Ei_3 (double x);
public static int expint_Ei_3_e (double x, out Result result);
public static double Shi (double x);
public static int Shi_e (double x, out Result result);
public static double Chi (double x);
public static int Chi_e (double x, out Result result);
public static double Si (double x);
public static int Si_e (double x, out Result result);
public static double Ci (double x);
public static int Ci_e (double x, out Result result);
public static double atanint (double x);
public static double atanint_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_fermi_dirac_", cheader_filename="gsl/gsl_sf_fermi_dirach.h")]
namespace FermiDirac
{
public static double m1 (double x);
public static int m1_e (double x, out Result result);
[CCode (cname="gsl_sf_fermi_dirac_0")]
public static double F0 (double x);
[CCode (cname="gsl_sf_fermi_dirac_0_e")]
public static int F0_e (double x, out Result result);
[CCode (cname="gsl_sf_fermi_dirac_1")]
public static double F1 (double x);
[CCode (cname="gsl_sf_fermi_dirac_1_e")]
public static int F1_e (double x, out Result result);
[CCode (cname="gsl_sf_fermi_dirac_2")]
public static double F2 (double x);
[CCode (cname="gsl_sf_fermi_dirac_2_e")]
public static int F2_e (double x, out Result result);
[CCode (cname="gsl_sf_fermi_dirac_int")]
public static double Fint (int j, double x);
[CCode (cname="gsl_sf_fermi_dirac_int_e")]
public static int Fint_e (int j, double x, out Result result);
public static double mhalf (double x);
public static int mhalf_e (double x, out Result result);
public static double half (double x);
public static int half_e (double x, out Result result);
public static double 3half (double x);
public static int 3half_e (double x, out Result result);
public static double inc_0 (double x, double b);
public static int inc_0_e (double x, double b, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_gamma.h")]
namespace GammaBeta
{
public static double gamma (double x);
public static int gamma_e (double x, out Result result);
public static double lngamma (double x);
public static int lngamma_e (double x, out Result result);
public static int lngamma_sgn_e (double x, out Result result, out double sgn);
public static double gammastar (double x);
public static int gammastar_e (double x, out Result result);
public static double gammainv (double x);
public static int gammainv_e (double x, out Result result);
public static int lngamma_complex_e (double zr, double zi, out Result lnr, out Result arg);
public static double fact (uint n);
public static int fact_e (uint n, out Result result);
public static double doublefact (uint n);
public static int doublefact_e (uint n, out Result result);
public static double lnfact (uint n);
public static int lnfact_e (uint n, out Result result);
public static double lndoublefact (uint n);
public static int lndoublefact_e (uint n, out Result result);
public static double choose (uint n, uint m);
public static int choose_e (uint n, uint m, out Result result);
public static double lnchoose (uint n, uint m);
public static int lnchoose_e (uint n, uint m, out Result result);
public static double taylorcoeff (int n, double x);
public static int taylorcoeff_e (int n, double x, out Result result);
public static double poch (double a, double x);
public static int poch_e (double a, double x, out Result result);
public static double lnpoch (double a, double x);
public static int lnpoch_e (double a, double x, out Result result);
public static int lnpoch_sgn_e (double a, double x, out Result result, out double sgn);
public static double pochrel (double a, double x);
public static int pochrel_e (double a, double x, out Result result);
public static double gamma_inc (double a, double x);
public static int gamma_inc_e (double a, double x, out Result result);
public static double gamma_inc_Q (double a, double x);
public static int gamma_inc_Q_e (double a, double x, out Result result);
public static double gamma_inc_P (double a, double x);
public static int gamma_inc_P_e (double a, double x, out Result result);
public static double beta (double a, double b);
public static int beta_e (double a, double b, out Result result);
public static double lnbeta (double a, double b);
public static int lnbeta_e (double a, double b, out Result result);
public static double beta_inc (double a, double b, double x);
public static int beta_inc_e (double a, double b, double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_gegenpoly_", cheader_filename="gsl/gsl_sf_gegenbauer.h")]
namespace GegenPoly
{
[CCode (cname="gsl_sf_gegenpoly_1")]
public static double C1 (double lambda, double x);
[CCode (cname="gsl_sf_gegenpoly_1_e")]
public static double C1_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_gegenpoly_2")]
public static double C2 (double lambda, double x);
[CCode (cname="gsl_sf_gegenpoly_2_e")]
public static double C2_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_gegenpoly_3")]
public static double C3 (double lambda, double x);
[CCode (cname="gsl_sf_gegenpoly_3_e")]
public static double C3_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_gegenpoly_n")]
public static double Cn (double lambda, double x);
[CCode (cname="gsl_sf_gegenpoly_n_e")]
public static double Cn_e (double lambda, double x, out Result result);
public static int array (int nmax, double lambda, double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_hyperg_", cheader_filename="gsl/gsl_sf_hyperg.h")]
namespace Hyperg
{
public static double 0F1 (double c, double x);
public static int 0F1_e (double c, double x, out Result result);
public static double 1F1_int (int m, int n, double x);
public static int 1F1_int_e (int m, int n, double x, out Result result);
public static double 1F1 (double a, double b, double x);
public static int 1F1_e (double a, double b, double x, out Result result);
public static double U_int (int m, int n, double x);
public static int U_int_e (int m, int n, double x, out Result result);
public static int U_int_e10_e (int m, int n, double x, out ResultE10 result);
public static double U (double a, double b, double x);
public static int U_e (double a, double b, double x, out Result result);
public static int U_e10_e (double a, double b, double x, out ResultE10 result);
public static double 2F1 (double a, double b, double c, double x);
public static int 2F1_e (double a, double b, double c, double x, out Result result);
public static double 2F1_conj (double aR, double aI, double c, double x);
public static int 2F1_conj_e (double aR, double aI, double c, double x, out Result result);
public static double 2F1_renorm (double a, double b, double c, double x);
public static int 2F1_renorm_e (double a, double b, double c, double x, out Result result);
public static double 2F1_conj_renorm (double aR, double aI, double c, double x);
public static int 2F1_conj_renorm_e (double aR, double aI, double c, double x, out Result result);
public static double 2F0 (double a, double b, double x);
public static int 2F0_e (double a, double b, double x, out Result result);
}
[CCode (cheader_filename="gsl/gsl_sf_laguerre.h")]
namespace Laguerre
{
[CCode (cname="gsl_sf_laguerre_1")]
public static double L1 (double a, double x);
[CCode (cname="gsl_sf_laguerre_1_e")]
public static double L1_e (double a, double x, out Result result);
[CCode (cname="gsl_sf_laguerre_2")]
public static double L2 (double a, double x);
[CCode (cname="gsl_sf_laguerre_2_e")]
public static double L2_e (double a, double x, out Result result);
[CCode (cname="gsl_sf_laguerre_3")]
public static double L3 (double a, double x);
[CCode (cname="gsl_sf_laguerre_3_e")]
public static double L3_e (double a, double x, out Result result);
[CCode (cname="gsl_sf_laguerre_n")]
public static double Ln (int n, double a, double x);
[CCode (cname="gsl_sf_laguerre_n_e")]
public static double Ln_e (int n, double a, double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_lambert_", cheader_filename="gsl/gsl_sf_lambert.h")]
namespace Lambert
{
public static double W0 (double x);
public static int W0_e (double x, out Result result);
public static double Wm1 (double x);
public static int Wm1_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_legendre_", cheader_filename="gsl/gsl_sf_legendre.h")]
namespace LegendrePoly
{
public static double P1 (double x);
public static int P1_e (double x, out Result result);
public static double P2 (double x);
public static int P2_e (double x, out Result result);
public static double P3 (double x);
public static int P3_e (double x, out Result result);
public static double Pl (int l, double x);
public static int Pl_e (int l, double x, out Result result);
public static int Pl_array (int lmax, double x, [CCode (array_length = false)] double[] result_array);
public static int Pl_deriv_array (int lmax, double x, [CCode (array_length = false)] double[] result_array, [CCode (array_length = false)] double[] result_deriv_array);
public static double Q0 (double x);
public static int Q0_e (double x, out Result result);
public static double Q1 (double x);
public static int Q1_e (double x, out Result result);
public static double Ql (int l, double x);
public static int Ql_e (int l, double x, out Result result);
public static double Plm (int l, int m, double x);
public static int Plm_e (int l, int m, double x, out Result result);
public static int Plm_array (int lmax, int m, double x, [CCode (array_length = false)] double[] result_array);
public static int Plm_deriv_array (int lmax, int m, double x, double[] result_array, [CCode (array_length = false)] double[] result_deriv_array);
public static double sphPlm (int l, int m, double x);
public static int sphPlm_e (int l, int m, double x, out Result result);
public static int sphPlm_array (int lmax, int m, double x, [CCode (array_length = false)] double[] result_array);
public static int sphPlm_deriv_array (int lmax, int m, double x, double[] result_array, [CCode (array_length = false)] double[] result_deriv_array);
public static int array_size (int lmax, int m);
[CCode (cname="gsl_sf_conicalP_half")]
public static double conicalP_half (double lambda, double x);
[CCode (cname="gsl_sf_conicalP_half_e")]
public static int conicalP_half_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_conicalP_mhalf")]
public static double conicalP_mhalf (double lambda, double x);
[CCode (cname="gsl_sf_conicalP_mhalf_e")]
public static int conicalP_mhalf_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_conicalP_0")]
public static double conicalP_0 (double lambda, double x);
[CCode (cname="gsl_sf_conicalP_0_e")]
public static int conicalP_0_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_conicalP_1")]
public static double conicalP_1 (double lambda, double x);
[CCode (cname="gsl_sf_conicalP_1_e")]
public static int conicalP_1_e (double lambda, double x, out Result result);
[CCode (cname="gsl_sf_conicalP_sph_reg")]
public static double conicalP_sph_reg (int l, double lambda, double x);
[CCode (cname="gsl_sf_conicalP_sph_reg_e")]
public static int conicalP_sph_reg_e (int l, double lambda, double x, out Result result);
[CCode (cname="gsl_sf_conicalP_cyl_reg")]
public static double conicalP_cyl_reg (int m, double lambda, double x);
[CCode (cname="gsl_sf_conicalP_cyl_reg_e")]
public static int conicalP_cyl_reg_e (int m, double lambda, double x, out Result result);
public static double H3d_0 (double lambda, double eta);
public static int H3d_0_e (double lambda, double eta, out Result result);
public static double H3d_1 (double lambda, double eta);
public static int H3d_1_e (double lambda, double eta, out Result result);
public static double H3d (int l, double lambda, double eta);
public static int H3d_e (int l, double lambda, double eta, out Result result);
public static int H3d_array (int lmax, double lambda, double eta, [CCode (array_length = false)] double[] result_array);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_log.h")]
namespace Log
{
public static double log (double x);
public static int log_e (double x, out Result result);
public static double log_abs (double x);
public static int log_abs_e (double x, out Result result);
public static int complex_log_e (double zr, double zi, out Result result, out Result theta);
public static double log_1plusx (double x);
public static int log_1plusx_e (double x, out Result result);
public static double log_1plusx_mx (double x);
public static int log_1plusx_mx_e (double x, out Result result);
}
[Compact]
[CCode (cname="gsl_sf_mathieu_workspace", cprefix="gsl_sf_mathieu_", cheader_filename="gsl/gsl_sf_mathieu.h")]
public class MathieuWorkspace
{
public size_t size;
public size_t even_order;
public size_t odd_order;
public int extra_values;
public double qa;
public double qb;
public double* aa;
public double* bb;
public double* dd;
public double* ee;
public double* tt;
public double* e2;
public double* zz;
public Vector eval;
public Matrix evec;
public EigenSymmvWorkspace wmat;
public static int a_array (int order_min, int order_max, double qq, MathieuWorkspace work, [CCode (array_length = false)] double[] result_array);
public static int b_array (int order_min, int order_max, double qq, MathieuWorkspace work, [CCode (array_length = false)] double[] result_array);
public static int a (int order, double qq, out Result result);
public static int b (int order, double qq, out Result result);
public static int a_coeff (int order, double qq, double aa, [CCode (array_length = false)] double[] coeff);
public static int b_coeff (int order, double qq, double aa, [CCode (array_length = false)] double[] coeff);
[CCode (cname="gsl_sf_mathieu_alloc")]
public MathieuWorkspace (size_t nn, double qq);
public static int ce (int order, double qq, double zz, out Result result);
public static int se (int order, double qq, double zz, out Result result);
public static int ce_array (int nmin, int nmax, double qq, double zz, MathieuWorkspace work, [CCode (array_length = false)] double[] result_array);
public static int se_array (int nmin, int nmax, double qq, double zz, MathieuWorkspace work, [CCode (array_length = false)] double[] result_array);
public static int Mc (int kind, int order, double qq, double zz, out Result result);
public static int Ms (int kind, int order, double qq, double zz, out Result result);
public static int Mc_array (int kind, int nmin, int nmax, double qq, double zz, MathieuWorkspace work, [CCode (array_length = false)] double[] result_array);
public static int Ms_array (int kind, int nmin, int nmax, double qq, double zz, MathieuWorkspace work, [CCode (array_length = false)] double[] result_array);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_pow_int.h")]
namespace Pow
{
public static double pow_int (double x, int n);
public static int pow_int_e (double x, int n, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_psi.h")]
namespace Psi
{
public static double psi_int (int n);
public static int psi_int_e (int n, out Result result);
public static double psi (double x);
public static int psi_e (double x, out Result result);
public static double psi_1piy (double y);
public static int psi_1piy_e (double y, out Result result);
public static double psi_1_int (int n);
public static int psi_1_int_e (int n, out Result result);
public static double psi_1 (double x);
public static int psi_1_e (double x, out Result result);
public static double psi_n (int n, double x);
public static int psi_e_n (int n, double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_synchrotron.h")]
namespace Synchrotron
{
public static double synchrotron_1 (double x);
public static int synchrotron_1_e (double x, out Result result);
public static double synchrotron_2 (double x);
public static double synchrotron_2_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_transport.h")]
namespace Transport
{
public static double transport_2 (double x);
public static int transport_2_e (double x, out Result result);
public static double transport_3 (double x);
public static int transport_3_e (double x, out Result result);
public static double transport_4 (double x);
public static int transport_4_e (double x, out Result result);
public static double transport_5 (double x);
public static int transport_5_e (double x, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_trig.h")]
namespace Trig
{
public static double sin (double x);
public static int sin_e (double x, out Result result);
public static double cos (double x);
public static int cos_e (double x, out Result result);
public static double hypot (double x, double y);
public static int hypot_e (double x, double y, out Result result);
public static double sinc (double x);
public static int sinc_e (double x, out Result result);
public static double complex_sin_e (double zr, double zi, out Result szr, out Result szi);
public static double complex_cos_e (double zr, double zi, out Result czr, out Result czi);
public static double complex_logsin_e (double zr, double zi, out Result lszr, out Result lszi);
public static double lnsinh (double x);
public static int lnsinh_e (double x, out Result result);
public static double lncosh (double x);
public static int lncosh_e (double x, out Result result);
public static int polar_to_rect (double r, double theta, out Result x, out Result y);
public static int rect_to_polar (double x, double y, out Result r, out Result theta);
public static double angle_restrict_symm (double theta);
public static int angle_restrict_symm_e (out double theta);
public static double angle_restrict_pos (double theta);
public static int angle_restrict_pos_e (out double theta);
public static int sin_err_e (double x, double dx, out Result result);
public static int cos_err_e (double x, double dx, out Result result);
}
[CCode (lower_case_cprefix="gsl_sf_", cheader_filename="gsl/gsl_sf_zeta.h")]
namespace Zeta
{
public static double zeta_int (int n);
public static int zeta_int_e (int n, out Result result);
public static double zeta (double s);
public static int zeta_e (double s, out Result result);
public static double zetam1_int (int n);
public static int zetam1_int_e (int n, out Result result);
public static double zetam1 (double s);
public static int zetam1_e (double s, out Result result);
public static double hzeta (double s, double q);
public static int hzeta_e (double s, double q, out Result result);
public static double eta_int (int n);
public static int eta_int_e (int n, out Result result);
public static double eta (double s);
public static int eta_e (double s, out Result result);
}
/*
* Blocks, Vectors and Matrices
*/
[Compact]
[CCode (cname="gsl_block", cheader_filename="gsl/gsl_block_double.h")]
public class Block
{
public size_t size;
public double* data;
[CCode (cname="gsl_block_alloc")]
public Block (size_t n);
[CCode (cname="gsl_block_calloc")]
public Block.with_zeros (size_t n);
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Block b, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
}
[Compact]
[CCode (cname="gsl_block_complex", cheader_filename="gsl/gsl_block_complex_double.h")]
public class BlockComplex
{
public size_t size;
public double* data;
[CCode (cname="gsl_block_complex_alloc")]
public BlockComplex (size_t n);
[CCode (cname="gsl_block_complex_calloc")]
public BlockComplex.with_zeros (size_t n);
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, BlockComplex b, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
}
[SimpleType]
[CCode (cname="gsl_vector_view", cheader_filename="gsl/gsl_vector_double.h")]
public struct VectorView
{
public unowned Vector vector;
public static VectorView array (double[] v);
public static VectorView array_with_stride ([CCode (array_length = false)] double[] v, size_t stride, size_t n);
}
[Compact]
[CCode (cname="gsl_vector", cheader_filename="gsl/gsl_vector_double.h")]
public class Vector
{
public size_t size;
public size_t stride;
public double* data;
public Block block;
public int owner;
[CCode (cname="gsl_vector_alloc")]
public Vector (size_t n);
[CCode (cname="gsl_vector_calloc")]
public Vector.with_zeros (size_t n);
[CCode (cname="gsl_vector_alloc_from_block")]
public Vector.from_block (Block b, size_t offset, size_t n, size_t stride);
[CCode (cname="gsl_vector_alloc_from_vector")]
public Vector.from_vector (Vector v, size_t offset, size_t n, size_t stride);
public double @get (size_t i);
public void @set (size_t i, double x);
public double* ptr (size_t i);
public void set_all (double x);
public void set_zero ();
public void set_basis (size_t i);
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Vector v, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
public VectorView subvector (size_t offset, size_t n);
public VectorView subvector_with_stride (size_t offset, size_t stride, size_t n);
public int memcpy (Vector src);
public int swap (Vector w);
public int swap_elements (size_t i, size_t j);
public int reverse ();
public int add (Vector b);
public int sub (Vector b);
public int mul (Vector b);
public int div (Vector b);
public int scale (double x);
public int add_constant (double x);
public double max ();
public double min ();
public void minmax (out double min_out, out double max_out);
public size_t max_index ();
public size_t min_index ();
public void minmax_index (out size_t imin, out size_t imax);
public bool isnull ();
public bool ispos ();
public bool isneg ();
public bool isnonneg ();
}
[SimpleType]
[CCode (cname="gsl_vector_complex_view", cheader_filename="gsl/gsl_vector_complex_double.h")]
public struct VectorComplexView
{
public unowned VectorComplex vector;
public static VectorComplexView array (double[] v);
public static VectorComplexView array_with_stride ([CCode (array_length = false)] double[] v, size_t stride, size_t n);
}
[Compact]
[CCode (cname="gsl_vector_complex", cheader_filename="gsl/gsl_vector_complex_double.h")]
public class VectorComplex
{
public size_t size;
public size_t stride;
public double* data;
public BlockComplex block;
public int owner;
[CCode (cname="gsl_vector_complex_alloc")]
public VectorComplex (size_t n);
[CCode (cname="gsl_vector_complex_calloc")]
public VectorComplex.with_zeros (size_t n);
[CCode (cname="gsl_vector_complex_alloc_from_block")]
public VectorComplex.from_block (BlockComplex b, size_t offset, size_t n, size_t stride);
[CCode (cname="gsl_vector_complex_alloc_from_vector")]
public VectorComplex.from_vector (VectorComplex v, size_t offset, size_t n, size_t stride);
public Complex @get (size_t i);
public void @set (size_t i, Complex x);
public Complex* ptr (size_t i);
public void set_all (Complex x);
public void set_zero ();
public void set_basis (size_t i);
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, VectorComplex v, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
public VectorComplexView subvector (size_t i, size_t n);
public VectorComplexView subvector_with_stride (size_t i, size_t stride, size_t n);
public VectorView complex_real ();
public VectorView complex_imag ();
public int memcpy (VectorComplex src);
public int swap (VectorComplex w);
public int swap_elements (size_t i, size_t j);
public int reverse ();
public int add (VectorComplex b);
public int sub (VectorComplex b);
public int mul (VectorComplex b);
public int div (VectorComplex b);
public int scale (double x);
public int add_constant (double x);
public double max ();
public double min ();
public void minmax (out double min_out, out double max_out);
public size_t max_index ();
public size_t min_index ();
public void minmax_index (out size_t imin, out size_t imax);
public bool isnull ();
public bool ispos ();
public bool isneg ();
public bool isnonneg ();
}
[SimpleType]
[CCode (cname="gsl_matrix_view", cheader_filename="gsl/gsl_matrix_double.h")]
public struct MatrixView
{
public unowned Matrix matrix;
public static MatrixView array ([CCode (array_length = false)] double[] v, size_t n1, size_t n2);
public static MatrixView array_with_tda ([CCode (array_length = false)] double[] v, size_t n1, size_t n2, size_t tda);
public static MatrixView vector (Vector v, size_t n1, size_t n2);
public static MatrixView vectr_with_tda (Vector v, size_t n1, size_t n2, size_t tda);
}
[Compact]
[CCode (cname="gsl_matrix", cheader_filename="gsl/gsl_matrix_double.h")]
public class Matrix
{
public size_t size1;
public size_t size2;
public size_t tda;
public double* data;
public Block block;
public int owner;
[CCode (cname="gsl_matrix_alloc")]
public Matrix (size_t n1, size_t n2);
[CCode (cname="gsl_matrix_calloc")]
public Matrix.with_zeros (size_t n1, size_t n2);
[CCode (cname="gsl_matrix_alloc_from_block")]
public Matrix.from_block (Block b, size_t offset, size_t n1, size_t n2, size_t d2);
[CCode (cname="gsl_matrix_alloc_from_matrix")]
public Matrix.from_matrix (Matrix m, size_t k1, size_t k2, size_t n1, size_t n2);
public Vector alloc_row_from_matrix (size_t i);
public Vector alloc_col_from_matrix (size_t j);
public double @get (size_t i, size_t j);
public void @set (size_t i, size_t j, double x);
public double* ptr (size_t i, size_t j);
public void set_all (double x);
public void set_zero ();
public void set_identity ();
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Matrix m, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
public MatrixView submatrix (size_t k, size_t k2, size_t n1, size_t n2);
public VectorView row (size_t i);
public VectorView column (size_t j);
public VectorView subrow (size_t i, size_t offset, size_t n);
public VectorView subcolumn (size_t i, size_t offset, size_t n);
public VectorView diagonal ();
public VectorView subdiagonal (size_t k);
public VectorView superdiagonal (size_t k);
public int memcpy (Matrix src);
public int swap (Matrix m2);
public static int get_row (Vector v, Matrix m, size_t i);
public static int get_col (Vector v, Matrix m, size_t j);
public int set_row (size_t i, Vector v);
public int set_col (size_t j, Vector v);
public int swap_rows (size_t i, size_t j);
public int swap_columns (size_t i, size_t j);
public int swap_rowcol (size_t i, size_t j);
public int transpose_memcpy (Matrix src);
public int transpose ();
public int add (Matrix b);
public int sub (Matrix b);
public int mul_elements (Matrix b);
public int div_elements (Matrix b);
public int scale (double x);
public int add_constant (double x);
public int add_diagonal (double x);
public double max ();
public double min ();
public void minmax (out double min_out, out double max_out);
public void max_index (out size_t imax, out size_t jmax);
public void min_index (out size_t imin, out size_t jmin);
public void minmax_index (out size_t imin, out size_t jmin, out size_t imax, out size_t jmax);
public bool isnull ();
public bool ispos ();
public bool isneg ();
public bool isnonneg ();
}
[SimpleType]
[CCode (cname="gsl_matrix_complex_view", cheader_filename="gsl/gsl_matrix_complex_double.h")]
public struct MatrixComplexView
{
public unowned MatrixComplex matrix;
public static MatrixComplexView array ([CCode (array_length = false)] double[] v, size_t n1, size_t n2);
public static MatrixComplexView array_with_tda ([CCode (array_length = false)] double[] v, size_t n1, size_t n2, size_t tda);
public static MatrixComplexView vector (VectorComplex v, size_t n1, size_t n2);
public static MatrixComplexView vectr_with_tda (VectorComplex v, size_t n1, size_t n2, size_t tda);
}
[Compact]
[CCode (cname="gsl_matrix_complex", cheader_filename="gsl/gsl_matrix_complex_double.h")]
public class MatrixComplex
{
public size_t size1;
public size_t size2;
public size_t tda;
public double* data;
public BlockComplex block;
public int owner;
[CCode (cname="gsl_matrix_complex_alloc")]
public MatrixComplex (size_t n1, size_t n2);
[CCode (cname="gsl_matrix_complex_calloc")]
public MatrixComplex.with_zeros (size_t n1, size_t n2);
[CCode (cname="gsl_matrix_complex_alloc_from_block")]
public MatrixComplex.from_block (BlockComplex b, size_t offset, size_t n1, size_t n2, size_t d2);
[CCode (cname="gsl_matrix_complex_alloc_from_matrix")]
public MatrixComplex.from_matrix (MatrixComplex m, size_t k1, size_t k2, size_t n1, size_t n2);
public VectorComplex alloc_row_from_matrix (size_t i);
public VectorComplex alloc_col_from_matrix (size_t j);
public double @get (size_t i, size_t j);
public void @set (size_t i, size_t j, double x);
public double* ptr (size_t i, size_t j);
public void set_all (double x);
public void set_zero ();
public void set_identity ();
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, MatrixComplex m, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
public MatrixComplexView submatrix (size_t k, size_t k2, size_t n1, size_t n2);
public VectorComplexView row (size_t i);
public VectorComplexView column (size_t j);
public VectorComplexView subrow (size_t i, size_t offset, size_t n);
public VectorComplexView subcolumn (size_t i, size_t offset, size_t n);
public VectorComplexView diagonal ();
public VectorComplexView subdiagonal (size_t k);
public VectorComplexView superdiagonal (size_t k);
public int memcpy (MatrixComplex src);
public int swap (MatrixComplex m2);
public static int get_row (VectorComplex v, MatrixComplex m, size_t i);
public static int get_col (VectorComplex v, MatrixComplex m, size_t j);
public int set_row (size_t i, VectorComplex v);
public int set_col (size_t j, VectorComplex v);
public int swap_rows (size_t i, size_t j);
public int swap_columns (size_t i, size_t j);
public int swap_rowcol (size_t i, size_t j);
public int transpose_memcpy (MatrixComplex src);
public int transpose ();
public int add (MatrixComplex b);
public int sub (MatrixComplex b);
public int mul_elements (MatrixComplex b);
public int div_elements (MatrixComplex b);
public int scale (double x);
public int add_constant (double x);
public int add_diagonal (double x);
public double max ();
public double min ();
public void minmax (out double min_out, out double max_out);
public void max_index (out size_t imax, out size_t jmax);
public void min_index (out size_t imin, out size_t jmin);
public void minmax_index (out size_t imin, out size_t jmin, out size_t imax, out size_t jmax);
public bool isnull ();
public bool ispos ();
public bool isneg ();
public bool isnonneg ();
}
/*
* Permutations
*/
[Compact]
[CCode (cname="gsl_permutation", cheader_filename="gsl/gsl_permutation.h")]
public class Permutation
{
public size_t size;
public size_t* data;
[CCode (cname="gsl_permutation_alloc")]
public Permutation (size_t n);
[CCode (cname="gsl_permutation_calloc")]
public Permutation.with_zeros (size_t n);
public void init ();
public int memcpy (Permutation src);
public size_t @get (size_t i);
public int swap (size_t i, size_t j);
public int valid ();
public void reverse ();
public int inverse (Permutation p);
public int next ();
public int prev ();
public int mul (Permutation pa, Permutation pb);
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Permutation p, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
public int linear_to_canonical (Permutation p);
public int canonical_to_linear (Permutation q);
public size_t inversions ();
public size_t linear_cycles ();
public size_t canonical_cycles ();
}
[CCode (lower_case_cprefix="gsl_", cheader_filename="gsl/gsl_permute_double.h")]
namespace Permute
{
public static int permute (size_t* p, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int permute_inverse (size_t* p, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
}
[CCode (cheader_filename="gsl/gsl_permute_complex_double.h")]
namespace PermuteComplex
{
[CCode (cname="gsl_permute_complex")]
public static int permute (size_t* p, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
[CCode (cname="gsl_permute_complex_inverse")]
public static int permute_inverse (size_t* p, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
}
[CCode (cheader_filename="gsl/gsl_permute_vector_double.h")]
namespace PermuteVector
{
[CCode (cname="gsl_permute_vector")]
public static int permute (Permutation p, Vector v);
[CCode (cname="gsl_permute_vector_inverse")]
public static int permute_inverse (Permutation p, Vector v);
}
[CCode (cheader_filename="gsl/gsl_permute_vector_complex_double.h")]
namespace PermuteVectorComplex
{
[CCode (cname="gsl_permute_vector_complex")]
public static int permute (Permutation p, Vector v);
[CCode (cname="gsl_permute_vector_complex_inverse")]
public static int permute_inverse (Permutation p, Vector v);
}
/*
* Combinations
*/
[Compact]
[CCode (cname="gsl_combination", cheader_filename="gsl/gsl_combination.h")]
public class Combination
{
public size_t n;
public size_t k;
public size_t* data;
[CCode (cname="gsl_combination_alloc")]
public Combination (size_t n, size_t k);
[CCode (cname="gsl_combination_calloc")]
public Combination.with_zeros (size_t n, size_t k);
public void init_first ();
public void init_last ();
public int memcpy (Combination src);
public size_t @get (size_t i);
public int valid ();
public int next ();
public int prev ();
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Combination c, string format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
}
/*
* Sorting
*/
[CCode (lower_case_cprefix="gsl_sort_", cheader_filename="gsl/gsl_sort_double.h")]
namespace Sort
{
[CCode (cname="gsl_sort")]
public static void sort ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
[CCode (cname="gsl_sort_index")]
public static void sort_index ([CCode (array_length = false)] size_t[] p, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int smallest ([CCode (array_length = false)] double[] dest, size_t k, [CCode (array_length = false)] double[] src, size_t stride, size_t n);
public static int smallest_index ([CCode (array_length = false)] size_t[] p, size_t k, [CCode (array_length = false)] double[] src, size_t stride, size_t n);
public static int largest ([CCode (array_length = false)] double[] dest, size_t k, [CCode (array_length = false)] double[] src, size_t stride, size_t n);
public static int largest_index ([CCode (array_length = false)] size_t[] p, size_t k, [CCode (array_length = false)] double[] src, size_t stride, size_t n);
}
[CCode (lower_case_cprefix="gsl_sort_vector_", cheader_filename="gsl/gsl_sort_vector_double.h")]
namespace SortVector
{
[CCode (cname="gsl_sort_vector")]
public static void sort (Vector v);
[CCode (cname="gsl_sort_vector_index")]
public static int sort_index (Permutation p, Vector v);
public static int smallest ([CCode (array_length = false)] double[] dest, size_t k, Vector v);
public static int smallest_index ([CCode (array_length = false)] size_t[] p, size_t k, Vector v);
public static int largest ([CCode (array_length = false)] double[] dest, size_t k, Vector v);
public static int largest_index ([CCode (array_length = false)] size_t[] p, size_t k, Vector v);
}
/*
* Linear Algebra
*/
[CCode (lower_case_cprefix="gsl_linalg_", cheader_filename="gsl/gsl_linalg.h")]
namespace LinAlg
{
public static int LU_decomp (Matrix A, Permutation p, out int signum);
public static int complex_LU_decomp (MatrixComplex A, Permutation p, out int signum);
public static int LU_solve (Matrix LU, Permutation p, Vector b, Vector x);
public static int complex_LU_solve (MatrixComplex LU, Permutation p, VectorComplex b, VectorComplex x);
public static int LU_svx (Matrix LU, Permutation p, Vector x);
public static int complex_LU_svx (MatrixComplex LU, Permutation p, VectorComplex x);
public static int LU_refine (Matrix A, Matrix LU, Permutation p, Vector b, Vector x, Vector residual);
public static int complex_LU_refine (MatrixComplex A, MatrixComplex LU, Permutation p, VectorComplex b, VectorComplex x, VectorComplex residual);
public static int LU_invert (Matrix LU, Permutation p, Matrix inverse);
public static int complex_LU_invert (MatrixComplex LU, Permutation p, Matrix inverse);
public static double LU_det (Matrix LU, int signum);
public static Complex complex_LU_det (MatrixComplex LU, int signum);
public static double LU_lndet (Matrix LU);
public static double complex_LU_lndet (MatrixComplex LU);
public static int LU_sgndet (Matrix LU, int signum);
public static Complex complex_LU_sgndet (MatrixComplex LU, int signum);
public static int QR_decomp (Matrix A, Vector tau);
public static int QR_solve (Matrix QR, Vector tau, Vector b, Vector x);
public static int QR_svx (Matrix QR, Vector tau, Vector x);
public static int QR_lssolve (Matrix QR, Vector tau, Vector b, Vector x, Vector residual);
public static int QR_QTvec (Matrix QR, Vector tau, Vector v);
public static int QR_Qvec (Matrix QR, Vector tau, Vector v);
public static int QR_QTmat (Matrix QR, Vector tau, Matrix A);
public static int QR_Rsolve (Matrix QR, Vector b, Vector x);
public static int QR_Rsvx (Matrix QR, Vector x);
public static int QR_unpack (Matrix QR, Vector tau, Matrix Q, Matrix R);
public static int QR_QRsolve (Matrix Q, Matrix R, Vector b, Vector x);
public static int QR_update (Matrix Q, Matrix R, Vector w, Vector v);
public static int R_solve (Matrix R, Vector b, Vector x);
public static int R_svx (Matrix R, Vector x);
public static int QRPT_decomp (Matrix A, Vector tau, Permutation p, out int signum, Vector norm);
public static int QRPT_decomp2 (Matrix A, Matrix q, Matrix r, Vector tau, Permutation p, out int signum, Vector norm);
public static int QRPT_solve (Matrix QR, Vector tau, Permutation p, Vector b, Vector x);
public static int QRPT_svx (Matrix QR, Vector tau, Permutation p, Vector x);
public static int QRPT_QRsolve (Matrix Q, Matrix R, Permutation p, Vector b, Vector x);
public static int QRPT_update (Matrix Q, Matrix R, Permutation p, Vector u, Vector v);
public static int QRPT_Rsolve (Matrix QR, Permutation p, Vector b, Vector x);
public static int QRPT_Rsvx (Matrix QR, Permutation p, Vector x);
public static int SV_decomp (Matrix A, Matrix V, Vector S, Vector work);
public static int SV_decomp_mod (Matrix A, Matrix X, Matrix V, Vector S, Vector work);
public static int SV_decomp_jacobi (Matrix A, Matrix V, Vector S);
public static int SV_solve (Matrix U, Matrix V, Vector S, Vector b, Vector x);
public static int cholesky_decomp (Matrix A);
public static int complex_cholesky_decomp (MatrixComplex A);
public static int cholesky_solve (Matrix cholesky, Vector b, Vector x);
public static int complex_cholesky_solve (MatrixComplex cholesky, VectorComplex b, VectorComplex x);
public static int cholesky_svx (Matrix cholesky, Vector x);
public static int complex_cholesky_svx (MatrixComplex cholesky, VectorComplex x);
public static int symmtd_decomp (Matrix A, Vector tau);
public static int symmtd_unpack (Matrix A, Vector tau, Matrix Q, Vector diag, Vector subdiag);
public static int symmtd_unpack_T (Matrix A, Vector diag, Vector subdiag);
public static int hermtd_decomp (MatrixComplex A, VectorComplex tau);
public static int hermtd_unpack (MatrixComplex A, VectorComplex tau, MatrixComplex Q, Vector diag, Vector subdiag);
public static int hermtd_unpack_T (MatrixComplex A, Vector diag, Vector subdiag);
public static int hessenberg_decomp (Matrix A, Vector tau);
public static int hessenberg_unpack (Matrix H, Vector tau, Matrix U);
public static int hessenberg_unpack_accum (Matrix H, Vector tau, Matrix V);
public static int hessenberg_set_zero (Matrix H);
public static int hesstri_decomp (Matrix A, Matrix B, Matrix U, Matrix V, Vector work);
public static int bidiag_decomp (Matrix A, Vector tau_U, Vector tau_V);
public static int bidiag_unpack (Matrix A, Vector tau_U, Matrix U, Vector tau_V, Matrix V, Vector diag, Vector superdiag);
public static int bidiag_unpack2 (Matrix A, Vector tau_U, Vector tau_V, Matrix V);
public static int bidiag_unpack_B (Matrix A, Vector diag, Vector superdiag);
public static int householder_tansform (Vector v);
public static Complex complex_householder_transform (VectorComplex V);
public static int householder_hm (double tau, Vector v, Matrix A);
public static int complex_householder_hm (Complex tau, VectorComplex V, MatrixComplex A);
public static int householder_mh (double tau, Vector v, Matrix A);
public static int complex_householder_mh (Complex tau, VectorComplex V, MatrixComplex A);
public static int householder_hv (double tau, Vector v, Vector w);
public static int complex_householder_hv (Complex tau, VectorComplex V, VectorComplex w);
public static int HH_solve (Matrix A, Vector b, Vector x);
public static int HH_svx (Matrix A, Vector x);
public static int solve_tridiag (Vector diag, Vector e, Vector f, Vector b, Vector x);
public static int solve_symm_tridiag (Vector diag, Vector e, Vector b, Vector x);
public static int solve_cyc_tridiag (Vector diag, Vector e, Vector f, Vector b, Vector x);
public static int solve_symm_cyc_tridiag (Vector diag, Vector e, Vector b, Vector x);
public static int balance_matrix (Matrix A, Vector D);
}
/*
* Eigensystems
*/
[CCode (cname="gsl_eigen_sort_t", cprefix="GSL_EIGEN_SORT_", cheader_filename="gsl/gsl_eigen.h")]
public enum EigenSortType
{
VAL_ASC,
VAL_DESC,
ABS_ASC,
ABS_DESC
}
[Compact]
[CCode (cname="gsl_eigen_symm_workspace", free_function="gsl_eigen_symm_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenSymmWorkspace
{
public size_t size;
public double* d;
public double* sd;
[CCode (cname="gsl_eigen_symm_alloc")]
public EigenSymmWorkspace (size_t n);
[CCode (cname="gsl_eigen_symm", instance_pos=-1)]
public int init (Matrix A, Vector eval);
}
[Compact]
[CCode (cname="gsl_eigen_symmv_workspace", free_function="gsl_eigen_symmv_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenSymmvWorkspace
{
public size_t size;
public double* d;
public double* sd;
public double* gc;
public double* gs;
[CCode (cname="gsl_eigen_symmv_alloc")]
public EigenSymmvWorkspace (size_t n);
[CCode (cname="gsl_eigen_symmv", instance_pos=-1)]
public int init (Matrix A, Vector eval, Matrix evec);
}
[Compact]
[CCode (cname="gsl_eigen_herm_workspace", free_function="gsl_eigen_herm_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenHermWorkspace
{
public size_t size;
public double* d;
public double* sd;
public double* tau;
[CCode (cname="gsl_eigen_herm_alloc")]
public EigenHermWorkspace (size_t n);
[CCode (cname="gsl_eigen_herm", instance_pos=-1)]
public int init (MatrixComplex A, VectorComplex eval);
}
[Compact]
[CCode (cname="gsl_eigen_hermv_workspace", free_function="gsl_eigen_hermv_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenHermvWorkspace
{
public size_t size;
public double* d;
public double* sd;
public double* tau;
public double* gc;
public double* gs;
[CCode (cname="gsl_eigen_hermv_alloc")]
public EigenHermvWorkspace (size_t n);
[CCode (cname="gsl_eigen_hermv", instance_pos=-1)]
public int init (MatrixComplex A, VectorComplex eval, MatrixComplex evec);
}
[Compact]
[CCode (cname="gsl_eigen_nonsymm_workspace", free_function="gsl_eigen_nonsymm_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenNonsymmWorkspace
{
public size_t size;
public Vector diag;
public Vector tau;
public Matrix Z;
public int do_balance;
size_t n_evals;
[CCode (cname="gsl_eigen_nonsymm_alloc")]
public EigenNonsymmWorkspace (size_t n);
[CCode (cname="gsl_eigen_nonsymm_params", instance_pos=-1)]
public void params (int compute_t, int balance);
[CCode (cname="gsl_eigen_nonsymm", instance_pos=-1)]
public int init (Matrix A, VectorComplex eval);
[CCode (cname="gsl_eigen_nonsymm_Z", instance_pos=-1)]
public int init_Z (Matrix A, VectorComplex eval, Matrix Z);
}
[Compact]
[CCode (cname="gsl_eigen_nonsymmv_workspace", free_function="gsl_eigen_nonsymmv_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenNonsymmvWorkspace
{
public size_t size;
public Vector work;
public Vector work2;
public Vector work3;
public Matrix Z;
public EigenNonsymmWorkspace nonsymm_workspace_p;
[CCode (cname="gsl_eigen_nonsymmv_alloc")]
public EigenNonsymmvWorkspace (size_t n);
[CCode (cname="gsl_eigen_nonsymmv", instance_pos=-1)]
public int init (Matrix A, VectorComplex eval, MatrixComplex evec);
[CCode (cname="gsl_eigen_nonsymmv_Z", instance_pos=-1)]
public int init_Z (Matrix A, VectorComplex eval, MatrixComplex evec, Matrix Z);
}
[Compact]
[CCode (cname="gsl_eigen_gensymm_workspace", free_function="gsl_eigen_gensymm_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenGensymmWorkspace
{
public size_t size;
public EigenSymmWorkspace symm_workspace_p;
[CCode (cname="gsl_eigen_gensymm_alloc")]
public EigenGensymmWorkspace (size_t n);
[CCode (cname="gsl_eigen_gensymm", instance_pos=-1)]
public int init (Matrix A, Matrix B, Vector eval);
}
[Compact]
[CCode (cname="gsl_eigen_gensymmv_workspace", free_function="gsl_eigen_gensymmv_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenGensymmvWorkspace
{
public size_t size;
public EigenSymmvWorkspace symmv_workspace_p;
[CCode (cname="gsl_eigen_gensymmv_alloc")]
public EigenGensymmvWorkspace (size_t n);
[CCode (cname="gsl_eigen_gensymmv", instance_pos=-1)]
public int init (Matrix A, Matrix B, Vector eval, Matrix evec);
}
[Compact]
[CCode (cname="gsl_eigen_genherm_workspace", free_function="gsl_eigen_genherm_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenGenhermWorkspace
{
public size_t size;
public EigenHermWorkspace herm_workspace_p;
[CCode (cname="gsl_eigen_genherm_alloc")]
public EigenGenhermWorkspace (size_t n);
[CCode (cname="gsl_eigen_genherm", instance_pos=-1)]
public int init (MatrixComplex A, MatrixComplex B, Vector eval);
}
[Compact]
[CCode (cname="gsl_eigen_genhermv_workspace", free_function="gsl_eigen_genhermv_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenGenhermvWorkspace
{
public size_t size;
public EigenHermvWorkspace hermv_workspace_p;
[CCode (cname="gsl_eigen_genhermv_alloc")]
public EigenGenhermvWorkspace (size_t n);
[CCode (cname="gsl_eigen_genhermv", instance_pos=-1)]
public int init (MatrixComplex A, MatrixComplex B, Vector eval, MatrixComplex evec);
}
[Compact]
[CCode (cname="gsl_eigen_gen_workspace", free_function="gsl_eigen_gen_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenGenWorkspace
{
public size_t size;
public Vector work;
public size_t n_evals;
public size_t max_iterations;
public size_t n_iter;
public double eshift;
public int needtop;
public double atol;
public double btol;
public double ascale;
public double bscale;
public Matrix H;
public Matrix R;
public int compute_s;
public int compute_t;
public Matrix Q;
public Matrix Z;
[CCode (cname="gsl_eigen_gen_alloc")]
public EigenGenWorkspace (size_t n);
[CCode (cname="gsl_eigen_gen_params", instance_pos=-1)]
public void params (int compute_s, int compute_t, int balance);
[CCode (cname="gsl_eigen_gen", instance_pos=-1)]
public int init (Matrix A, Matrix B, VectorComplex alpha, Vector beta);
[CCode (cname="gsl_eigen_gen_QZ", instance_pos=-1)]
public int init_QZ (Matrix A, Matrix B, VectorComplex alpha, Vector beta, Matrix Q, Matrix Z);
}
[Compact]
[CCode (cname="gsl_eigen_genv_workspace", free_function="gsl_eigen_genv_free", cheader_filename="gsl/gsl_eigen.h")]
public class EigenGenvWorkspace
{
public size_t size;
public Vector work1;
public Vector work2;
public Vector work3;
public Vector work4;
public Vector work5;
public Vector work6;
public Matrix Q;
public Matrix Z;
public EigenGenWorkspace gen_workspace_p;
[CCode (cname="gsl_eigen_genv_alloc")]
public EigenGenvWorkspace (size_t n);
[CCode (cname="gsl_eigen_genv", instance_pos=-1)]
public int init (Matrix A, Matrix B, VectorComplex alpha, Vector beta, MatrixComplex evec);
[CCode (cname="gsl_eigen_genv_QZ", instance_pos=-1)]
public int init_QZ (Matrix A, Matrix B, VectorComplex alpha, Vector beta, MatrixComplex evec, Matrix Q, Matrix Z);
}
[CCode (lower_case_cprefix="gsl_eigen_", cheader_filename="gsl/gsl_eigen.h")]
namespace EigenSort
{
public static int symmv_sort (Vector eval, Matrix evec, EigenSortType sort_type);
public static int hermv_sort (Vector eval, MatrixComplex evec, EigenSortType sort_type);
public static int nonsymmv_sort (VectorComplex eval, MatrixComplex evec, EigenSortType sort_type);
public static int gensymmv_sort (Vector eval, Matrix evec, EigenSortType sort_type);
public static int genhermv_sort (Vector eval, MatrixComplex evec, EigenSortType sort_type);
public static int genv_sort (VectorComplex alpha, Vector beta, MatrixComplex evec, EigenSortType sort_type);
}
/*
* Fast Fourier Transforms (FFTs)
*/
[CCode (cname="gsl_fft_direction", cheader_filename="gsl/gsl_fft.h")]
public enum FFTDirection
{
forward = -1,
backward = 1
}
[Compact]
[CCode (cname="gsl_fft_complex_wavetable", cheader_filename="gsl/gsl_fft_complex.h")]
public class FFTComplexWavetable
{
public size_t n;
public size_t nf;
public size_t factor[64];
public Complex twiddle[64];
public Complex trig;
[CCode (cname="gsl_fft_complex_wavetable_alloc")]
public FFTComplexWavetable (size_t n);
public int memcpy (FFTComplexWavetable src);
}
[Compact]
[CCode (cname="gsl_fft_complex_workspace", cheader_filename="gsl/gsl_fft_complex.h")]
public class FFTComplexWorkspace
{
size_t n;
double *scratch;
[CCode (cname="gsl_fft_complex_workspace_alloc")]
public FFTComplexWorkspace (size_t n);
}
[Compact]
[CCode (lower_case_cprefix="gsl_fft_complex_", cheader_filename="gsl/gsl_fft_complex.h")]
namespace FFTComplex
{
public static int radix2_forward ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTDirection sign);
public static int radix2_backward ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_inverse ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_dif_forward ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_dif_transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTDirection sign);
public static int radix2_dif_backward ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_dif_inverse ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int forward ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTComplexWavetable wavetable, FFTComplexWorkspace work);
public static int transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTComplexWavetable wavetable, FFTComplexWorkspace work, FFTDirection sign);
public static int backward ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTComplexWavetable wavetable, FFTComplexWorkspace work);
public static int inverse ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTComplexWavetable wavetable, FFTComplexWorkspace work);
}
[Compact]
[CCode (cname="gsl_fft_real_wavetable", cheader_filename="gsl/gsl_fft_real.h")]
public class FFTRealWavetable
{
public size_t n;
public size_t nf;
public size_t factor[64];
public Complex twiddle[64];
public Complex trig;
[CCode (cname="gsl_fft_real_wavetable_alloc")]
public FFTRealWavetable (size_t n);
}
[Compact]
[CCode (cname="gsl_fft_real_workspace", cheader_filename="gsl/gsl_fft_real.h")]
public class FFTRealWorkspace
{
size_t n;
double *scratch;
[CCode (cname="gsl_fft_real_workspace_alloc")]
public FFTRealWorkspace (size_t n);
}
[Compact]
[CCode (lower_case_cprefix="gsl_fft_real_", cheader_filename="gsl/gsl_fft_real.h")]
namespace FFTReal
{
public static int radix2_forward ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTRealWavetable wavetable, FFTRealWorkspace work);
public static int unpack ([CCode (array_length = false)] double[] real_coefficient, [CCode (array_length = false)] double[] complex_coeficient, size_t stride, size_t n);
}
[Compact]
[CCode (cname="gsl_fft_halfcomplex_wavetable", cheader_filename="gsl/gsl_fft_halfcomplex.h")]
public class FFTHalfcomplexWavetable
{
public size_t n;
public size_t nf;
public size_t factor[64];
public Complex twiddle[64];
public Complex trig;
[CCode (cname="gsl_fft_halfcomplex_wavetable_alloc")]
public FFTHalfcomplexWavetable (size_t n);
}
[CCode (lower_case_cprefix="gsl_fft_halfcomplex_", cheader_filename="gsl/gsl_fft_halfcomplex.h")]
namespace FFTHalfcomplex
{
public static int radix2_inverse ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_backward ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int radix2_transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static int backward ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTHalfcomplexWavetable wavetable, FFTRealWorkspace work);
public static int inverse ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTHalfcomplexWavetable wavetable, FFTRealWorkspace work);
public static int transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n, FFTHalfcomplexWavetable wavetable, FFTRealWorkspace work);
public static int unpack ([CCode (array_length = false)] double[] halfcomplex_coefficient, [CCode (array_length = false)] double[] complex_coefficient, size_t stride, size_t n);
public static int radix2_unpack ([CCode (array_length = false)] double[] halfcomplex_coefficient, [CCode (array_length = false)] double[] complex_coefficient, size_t stride, size_t n);
}
/*
* Numerical Integration
*/
[CCode (cprefix="GSL_INTEG_", cheader_filename="gsl/gsl_integration.h")]
public enum QAWO
{
COSINE,
SINE
}
[CCode (cprefix="GSL_INTEG_", cheader_filename="gsl/gsl_integration.h")]
public enum GaussRules
{
GAUSS15,
GAUSS21,
GAUSS31,
GAUSS41,
GAUSS51,
GAUSS61
}
[Compact]
[CCode (cname="gsl_integration_workspace", cheader_filename="gsl/gsl_integration.h")]
public class IntegrationWorkspace
{
public size_t limit;
public size_t size;
public size_t nrmax;
public size_t i;
public size_t maximum_level;
public double* alist;
public double* blist;
public double* rlist;
public double* elist;
public size_t* order;
public size_t* level;
[CCode (cname="gsl_integration_workspace_alloc")]
public IntegrationWorkspace (size_t n);
}
[Compact]
[CCode (cname="gsl_integration_qaws_table", cheader_filaname="gsl/gsl_integration.h")]
public class IntegrationQAWSTable
{
public double alpha;
public double beta;
public int mu;
public int nu;
public double ri[25];
public double rj[25];
public double rg[25];
public double rh[25];
[CCode (cname="gsl_integration_qaws_table_alloc")]
public IntegrationQAWSTable (double alpha, double beta, int mu, int nu);
public int @set (double alpha, double beta, int mu, int nu);
}
[Compact]
[CCode (cname="gsl_integration_qawo_table", unref="gsl_integration_qawo_table_free", cheader_filename="gsl/gsl_integration.h")]
public class IntegrationQAWOTable
{
public size_t n;
public double omega;
public double L;
public double par;
public QAWO sine;
public double* chebmo;
[CCode (cname="gsl_integration_qawo_table_alloc")]
public IntegrationQAWOTable (double omega, double L, QAWO sine, size_t n);
public int @set (double omega, double L, QAWO sine);
public int set_length (double L);
}
[CCode (cname="gsl_integration", cheader_filename="gsl/gsl_integration.h")]
namespace Integration
{
public static void qk15 (Function* f, double a, double b, out double result, out double abserr, out double resabs, out double resasc);
public static void qk21 (Function* f, double a, double b, out double result, out double abserr, out double resabs, out double resasc);
public static void qk31 (Function* f, double a, double b, out double result, out double abserr, out double resabs, out double resasc);
public static void qk41 (Function* f, double a, double b, out double result, out double abserr, out double resabs, out double resasc);
public static void qk51 (Function* f, double a, double b, out double result, out double abserr, out double resabs, out double resasc);
public static void qk61 (Function* f, double a, double b, out double result, out double abserr, out double resabs, out double resasc);
public static void qcheb (Function* f, double a, double b, out double cheb12, out double cheb24);
public static void qk (int n, [CCode (array_length = false)] double[] xgk, [CCode (array_length = false)] double[] wg, [CCode (array_length = false)] double[] wgk, [CCode (array_length = false)] double[] fv1, [CCode (array_length = false)] double[] fv2, Function* f, double a, double b, out double result, out double abserr, out double resabs, double resasc);
public static int qng (Function* f, double a, double b, double epsabs, double epsrel, out double result, out double abserr, out size_t neval);
public static int qag (Function* f, double a, double b, double epsabs, double epsrel, size_t limit, int key, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qagi (Function* f, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qagiu (Function* f, double a, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qagil (Function* f, double b, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qags (Function* f, double a, double b, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qagp (Function* f, [CCode (array_length = false)] double[] pts, size_t npts, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qawc (Function* f, double a, double b, double c, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qaws (Function* f, double a, double b, IntegrationQAWSTable t, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, out double result, out double abserr);
public static int qawo (Function* f, double a, double epsabs, double epsrel, size_t limit, IntegrationWorkspace workspace, IntegrationQAWOTable wf, out double result, out double abserr);
public static int qawf (Function* f, double a, double epsabs, size_t limit, IntegrationWorkspace workspace, IntegrationWorkspace cycle_workspace, IntegrationQAWOTable wf, out double result, out double abserr);
}
/*
* Random Number Generation
*/
[CCode (has_target = false)]
public delegate void RNGSetState (void *state, ulong seed);
[CCode (has_target = false)]
public delegate ulong RNGGetState (void* state);
[CCode (has_target = false)]
public delegate double RNGGetDouble (void* state);
[SimpleType]
[CCode (cname="gsl_rng_type", cheader_filename="gsl/gsl_rng.h")]
public struct RNGType
{
public string name;
public ulong max;
public ulong min;
public size_t size;
public RNGSetState @set;
public RNGGetState @get;
public RNGGetDouble get_double;
}
[CCode (lower_case_cprefix="gsl_rng_", cheader_filename="gsl/gsl_rng.h")]
namespace RNGTypes
{
public static RNGType* borosh13;
public static RNGType* coveyou;
public static RNGType* cmrg;
public static RNGType* fishman18;
public static RNGType* fishman20;
public static RNGType* fishman2x;
public static RNGType* gfsr4;
public static RNGType* knuthran;
public static RNGType* knuthran2;
public static RNGType* knuthran2002;
public static RNGType* lecuyer21;
public static RNGType* minstd;
public static RNGType* mrg;
public static RNGType* mt19937;
public static RNGType* mt19937_1999;
public static RNGType* mt19937_1998;
public static RNGType* r250;
public static RNGType* ran0;
public static RNGType* ran1;
public static RNGType* ran2;
public static RNGType* ran3;
public static RNGType* rand;
public static RNGType* rand48;
public static RNGType* random128_bsd;
public static RNGType* random128_glibc2;
public static RNGType* random128_libc5;
public static RNGType* random256_bsd;
public static RNGType* random256_glibc2;
public static RNGType* random256_libc5;
public static RNGType* random32_bsd;
public static RNGType* random32_glibc2;
public static RNGType* random32_libc5;
public static RNGType* random64_bsd;
public static RNGType* random64_glibc2;
public static RNGType* random64_libc5;
public static RNGType* random8_bsd;
public static RNGType* random8_glibc2;
public static RNGType* random8_libc5;
public static RNGType* random_bsd;
public static RNGType* random_glibc2;
public static RNGType* random_libc5;
public static RNGType* randu;
public static RNGType* ranf;
public static RNGType* ranlux;
public static RNGType* ranlux389;
public static RNGType* ranlxd1;
public static RNGType* ranlxd2;
public static RNGType* ranlxs0;
public static RNGType* ranlxs1;
public static RNGType* ranlxs2;
public static RNGType* ranmar;
public static RNGType* slatec;
public static RNGType* taus;
public static RNGType* taus2;
public static RNGType* taus113;
public static RNGType* transputer;
public static RNGType* tt800;
public static RNGType* uni;
public static RNGType* uni32;
public static RNGType* vax;
public static RNGType* waterman14;
public static RNGType* zuf;
public static RNGType* @default;
public static ulong default_seed;
}
[Compact]
[CCode (cname="gsl_rng", cheader_filename="gsl/gsl_rng.h")]
public class RNG
{
public RNGType* type;
public void* state;
[CCode (cname="gsl_rng_alloc")]
public RNG (RNGType* T);
public void @set (ulong s);
public ulong @get ();
public double uniform ();
public double uniform_pos ();
public ulong uniform_int (ulong n);
public string name ();
public ulong max ();
public ulong min ();
public size_t size ();
public static RNGType* env_setup ();
public int memcpy (RNG src);
public RNG clone ();
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public void print_state ();
}
[CCode (lower_case_cprefix="gsl_cdf_", cheader_filename="gsl/gsl_cdf.h")]
namespace CDF
{
public static double ugaussian_P (double x);
public static double ugaussian_Q (double x);
public static double ugaussian_Pinv (double P);
public static double ugaussian_Qinv (double Q);
public static double gaussian_P (double x, double sigma);
public static double gaussian_Q (double x, double sigma);
public static double gaussian_Pinv (double P, double sigma);
public static double gaussian_Qinv (double Q, double sigma);
public static double gamma_P (double x, double a, double b);
public static double gamma_Q (double x, double a, double b);
public static double gamma_Pinv (double P, double a, double b);
public static double gamma_Qinv (double Q, double a, double b);
public static double cauchy_P (double x, double a);
public static double cauchy_Q (double x, double a);
public static double cauchy_Pinv (double P, double a);
public static double cauchy_Qinv (double Q, double a);
public static double laplace_P (double x, double a);
public static double laplace_Q (double x, double a);
public static double laplace_Pinv (double P, double a);
public static double laplace_Qinv (double Q, double a);
public static double rayleigh_P (double x, double sigma);
public static double rayleigh_Q (double x, double sigma);
public static double rayleigh_Pinv (double P, double sigma);
public static double rayleigh_Qinv (double Q, double sigma);
public static double chisq_P (double x, double nu);
public static double chisq_Q (double x, double nu);
public static double chisq_Pinv (double P, double nu);
public static double chisq_Qinv (double Q, double nu);
public static double exponential_P (double x, double mu);
public static double exponential_Q (double x, double mu);
public static double exponential_Pinv (double P, double mu);
public static double exponential_Qinv (double Q, double mu);
public static double exppow_P (double x, double a, double b);
public static double exppow_Q (double x, double a, double b);
public static double tdist_P (double x, double nu);
public static double tdist_Q (double x, double nu);
public static double tdist_Pinv (double P, double nu);
public static double tdist_Qinv (double Q, double nu);
public static double fdist_P (double x, double nu1, double nu2);
public static double fdist_Q (double x, double nu1, double nu2);
public static double fdist_Pinv (double P, double nu1, double nu2);
public static double fdist_Qinv (double Q, double nu1, double nu2);
public static double beta_P (double x, double a, double b);
public static double beta_Q (double x, double a, double b);
public static double beta_Pinv (double P, double a, double b);
public static double beta_Qinv (double Q, double a, double b);
public static double flat_P (double x, double a, double b);
public static double flat_Q (double x, double a, double b);
public static double flat_Pinv (double P, double a, double b);
public static double flat_Qinv (double Q, double a, double b);
public static double lognormal_P (double x, double zeta, double sigma);
public static double lognormal_Q (double x, double zeta, double sigma);
public static double lognormal_Pinv (double P, double zeta, double sigma);
public static double lognormal_Qinv (double Q, double zeta, double sigma);
public static double gumbel1_P (double x, double a, double b);
public static double gumbel1_Q (double x, double a, double b);
public static double gumbel1_Pinv (double P, double a, double b);
public static double gumbel1_Qinv (double Q, double a, double b);
public static double gumbel2_P (double x, double a, double b);
public static double gumbel2_Q (double x, double a, double b);
public static double gumbel2_Pinv (double P, double a, double b);
public static double gumbel2_Qinv (double Q, double a, double b);
public static double weibull_P (double x, double a, double b);
public static double weibull_Q (double x, double a, double b);
public static double weibull_Pinv (double P, double a, double b);
public static double weibull_Qinv (double Q, double a, double b);
public static double pareto_P (double x, double a, double b);
public static double pareto_Q (double x, double a, double b);
public static double pareto_Pinv (double P, double a, double b);
public static double pareto_Qinv (double Q, double a, double b);
public static double logistic_P (double x, double a);
public static double logistic_Q (double x, double a);
public static double logistic_Pinv (double P, double a);
public static double logistic_Qinv (double Q, double a);
public static double binomial_P (uint k, double p, uint n);
public static double binomial_Q (uint k, double p, uint n);
public static double poisson_P (uint k, double mu);
public static double poisson_Q (uint k, double mu);
public static double geometric_P (uint k, double p);
public static double geometric_Q (uint k, double p);
public static double negative_binomial_P (uint k, double p, double n);
public static double negative_binomial_Q (uint k, double p, double n);
public static double pascal_P (uint k, double p, uint n);
public static double pascal_Q (uint k, double p, uint n);
public static double hypergeometric_P (uint k, uint n1, uint n2, uint t);
public static double hypergeometric_Q (uint k, uint n1, uint n2, uint t);
}
/*
* Quasi-Random Sequences
*/
[CCode (has_target = false)]
public delegate size_t QRNGStateSize (uint dimension);
[CCode (has_target = false)]
public delegate int QRNGInitState (void* state, uint dimension);
[CCode (has_target = false)]
public delegate int QRNGGetState2 (void* state, uint dimension, out double x);
[SimpleType]
[CCode (cname="gsl_qrng_type", cheader_filename="gsl/gsl_qrng.h")]
public struct QRNGType
{
public string name;
public uint max_dimension;
public QRNGStateSize state_size;
public QRNGInitState init_state;
public QRNGGetState2 @get;
}
[CCode (lower_case_cprefix="gsl_qrng_", cheader_filename="gsl/gsl_qrng.h")]
namespace QRNGAlgorithms
{
public static QRNGType* niederreiter_2;
public static QRNGType* sobol;
public static QRNGType* halton;
public static QRNGType* reversehalton;
}
[Compact]
[CCode (cname="gsl_qrng", cheader_filename="gsl/gsl_qrng.h")]
public class QRNG
{
public QRNGType* type;
public uint dimension;
size_t state_size;
void* state;
[CCode (cname="gsl_qrng_alloc")]
public QRNG (QRNGType* T, uint d);
public void init ();
public int memcpy (QRNG src);
public QRNG clone ();
public string name ();
public size_t size ();
public int @get ([CCode (array_length = false)] double[] x);
}
/*
* Random Number Distributions
*/
[CCode (lower_case_cprefix="gsl_ran_", cheader_filename="gsl/gsl_randist.h")]
namespace Randist
{
public static uint bernoulli (RNG r, double p);
public static double bernoulli_pdf (uint k, double p);
public static double beta (RNG r, double a, double b);
public static double beta_pdf (double x, double a, double b);
public static uint binomial (RNG r, double p, uint n);
public static uint binomial_knuth (RNG r, double p, uint n);
public static uint binomial_tpe (RNG r, double p, uint n);
public static double binomial_pdf (uint k, double p, uint n);
public static double exponential (RNG r, double mu);
public static double exponential_pdf (double x, double mu);
public static double exppow (RNG r, double a, double b);
public static double exppow_pdf (double x, double a, double b);
public static double cauchy (RNG r, double a);
public static double cauchy_pdf (double x, double a);
public static double chisq (RNG r, double nu);
public static double chisq_pdf (double x, double nu);
public static void dirichlet (RNG r, size_t K, out double alpha, out double theta);
public static double dirichlet_pdf (size_t K, out double alpha, out double theta);
public static double dirichlet_lnpdf (size_t K, out double alpha, out double theta);
public static double erlang (RNG r, double a, double n);
public static double erlang_pdf (double x, double a, double n);
public static double fdist (RNG r, double nu1, double nu2);
public static double fdist_pdf (double x, double nu1, double nu2);
public static double flat (RNG r, double a, double b);
public static double flat_pdf (double x, double a, double b);
public static double gamma (RNG r, double a, double b);
public static double gamma_int (RNG r, uint a);
public static double gamma_pdf (double x, double a, double b);
public static double gamma_mt (RNG r, double a, double b);
public static double gamma_knuth (RNG r, double a, double b);
public static double gaussian (RNG r, double sigma);
public static double gaussian_ratio_method (RNG r, double sigma);
public static double gaussian_ziggurat (RNG r, double sigma);
public static double gaussian_pdf (double x, double sigma);
public static double ugaussian (RNG r);
public static double ugaussian_ratio_method (RNG r);
public static double ugaussian_pdf (double x);
public static double gaussian_tail (RNG r, double a, double sigma);
public static double gaussian_tail_pdf (double x, double a, double sigma);
public static double ugaussian_tail (RNG r, double a);
public static double ugaussian_tail_pdf (double x, double a);
public static void bivariate_gaussian (RNG r, double sigma_x, double sigma_y, double rho, out double x, out double y);
public static double bivariate_gaussian_pdf (double x, double y, double sigma_x, double sigma_y, double rho);
public static double landau (RNG r);
public static double landau_pdf (double x);
public static uint geometric (RNG r, double p);
public static double geometric_pdf (uint k, double p);
public static uint hypergeometric (RNG r, uint n1, uint n2, uint t);
public static double hypergeometric_pdf (uint k, uint n1, uint n2, uint t);
public static double gumbel1 (RNG r, double a, double b);
public static double gumbel1_pdf (double x, double a, double b);
public static double gumbel2 (RNG r, double a, double b);
public static double gumbel2_pdf (double x, double a, double b);
public static double logistic (RNG r, double a);
public static double logistic_pdf (double x, double a);
public static double lognormal (RNG r, double zeta, double sigma);
public static double lognormal_pdf (double x, double zeta, double sigma);
public static uint logarithmic (RNG r, double p);
public static double logarithmic_pdf (uint k, double p);
public static void multinomial (RNG r, size_t K, uint N, [CCode (array_length = false)] double[] p, [CCode (array_length = false)] uint[] n);
public static double multinomial_pdf (size_t K, [CCode (array_length = false)] double[] p, [CCode (array_length = false)] uint[] n);
public static double multinomial_lnpdf (size_t K, [CCode (array_length = false)] double[] p, [CCode (array_length = false)] uint[] n);
public static uint negative_binomial (RNG r, double p, double n);
public static double negative_binomial_pdf (uint k, double p, double n);
public static uint pascal (RNG r, double p, uint n);
public static double pascal_pdf (uint k, double p, uint n);
public static double pareto (RNG r, double a, double b);
public static double pareto_pdf (double x, double a, double b);
public static uint poisson (RNG r, double mu);
public static void poisson_array (RNG r, size_t n, [CCode (array_length = false)] uint[] array, double mu);
public static double poisson_pdf (uint k, double mu);
public static double rayleigh (RNG r, double sigma);
public static double rayleigh_pdf (double x, double sigma);
public static double rayleigh_tail (RNG r, double a, double sigma);
public static double rayleigh_tail_pdf (double x, double a, double sigma);
public static double tdist (RNG r, double nu);
public static double tdist_pdf (double x, double nu);
public static double laplace (RNG r, double a);
public static double laplace_pdf (double x, double a);
public static double levy (RNG r, double c, double alpha);
public static double levy_skew (RNG r, double c, double alpha, double beta);
public static double weibull (RNG r, double a, double b);
public static double weibull_pdf (double x, double a, double b);
public static void dir_2d (RNG r, out double x, out double y);
public static void dir_2d_trig_method (RNG r, out double x, out double y);
public static void dir_3d (RNG r, out double x, out double y, out double z);
public static void dir_nd (RNG r, size_t n, out double x);
public static void shuffle (RNG r, void* b, size_t nmembm, size_t size);
public static int choose (RNG r, void* dest, size_t k, void* src, size_t n, size_t size);
public static void sample (RNG r, void* dest, size_t k, void* src, size_t n, size_t size);
}
[Compact]
[CCode (cname="gsl_ran_discrete_t", cprefix="gsl_ran_discrete_", cheader_filename="gsl/gsl_randist.h")]
public class RanDiscrete
{
public size_t K;
public size_t* A;
public double* F;
[CCode (cname="gsl_ran_discrete_preproc")]
public RanDiscrete (size_t K, double* P);
[CCode (cname="gsl_ran_discrete")]
public size_t discrete (RNG g);
[CCode (instance_pos=-1)]
public double pdf (size_t k);
}
/*
* Statistics
*/
[CCode (lower_case_cprefix="gsl_stats_", cheader_filename="gsl/gsl_statistics.h")]
namespace Stats
{
public static double mean ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double variance ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double variance_m ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double sd ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double sd_m ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double tss ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double tss_m ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double variance_with_fixed_mean ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double sd_with_fixed_mean ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double absdev ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double absdev_m ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double skew ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double skew_m_sd ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean, double sd);
public static double kurtosis ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double kurtosis_m_sd ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean, double sd);
public static double lag1_autocorrelation ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double lag1_autocorrelation_m ([CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double covariance ([CCode (array_length = false)] double[] data1, size_t stride1, [CCode (array_length = false)] double[] data2, size_t stride2, size_t n);
public static double covariance_m ([CCode (array_length = false)] double[] data1, size_t stride1, [CCode (array_length = false)] double[] data2, size_t stride2, size_t n, double mean1, double mean2);
public static double correlation ([CCode (array_length = false)] double[] data1, size_t stride1, [CCode (array_length = false)] double[] data2, size_t stride2, size_t n);
public static double wmean ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wvariance ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wvariance_m ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean);
public static double wsd ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wsd_m ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean);
public static double wtss ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wtss_m ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double mean);
public static double wvariance_with_fixed_mean ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean);
public static double wsd_with_fixed_mean ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean);
public static double wabsdev ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wabsdev_m ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean);
public static double wskew ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wskew_m_sd ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean, double wsd);
public static double wkurtosis ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double wkurtosis_m_sd ([CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] data, size_t stride, size_t n, double wmean, double wsd);
public static double max ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double min ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static void minmax (out double min, out double max, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static size_t max_index ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static size_t min_index ([CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static void minmax_index (out size_t min, out size_t max, [CCode (array_length = false)] double[] data, size_t stride, size_t n);
public static double median_from_sorted_data ([CCode (array_length = false)] double[] sorted_data, size_t stride, size_t n);
public static double quantile_from_sorted_data ([CCode (array_length = false)] double[] sorted_data, size_t stride, size_t n, double f);
}
/*
* Histograms
*/
[Compact]
[CCode (cname="gsl_histogram", cheader_filename="gsl/gsl_histogram.h")]
public class Histogram
{
public size_t n;
public double* range;
public double* bin;
[CCode (cname="gsl_histogram_alloc")]
public Histogram (size_t n);
[CCode (cname="gsl_histogram_calloc")]
public Histogram.with_zeros (size_t n);
[CCode (cname="gsl_histogram_calloc_uniform")]
public Histogram.uniform (size_t n, double xmin, double xmax);
[CCode (cname="gsl_histogram_calloc_range")]
public Histogram.with_range (size_t n, [CCode (array_length = false)] double[] range);
public int increment (double x);
public int accumulate (double x, double weight);
public int find (double x, out size_t i);
public double @get (size_t i);
public int get_range (size_t i, out double lower, out double upper);
public double max ();
public double min ();
public size_t bins ();
public void reset ();
public int set_ranges (double[] range);
public int set_ranges_uniform (double xmin, double xmax);
public int memcpy (Histogram source);
public Histogram clone();
public double max_val ();
public size_t max_bin ();
public double min_val ();
public size_t min_bin ();
public int equal_bins_p (Histogram h2);
public int add (Histogram h2);
public int sub (Histogram h2);
public int mul (Histogram h2);
public int div (Histogram h2);
public int scale (double scale);
public int shift (double shift);
public double sigma ();
public double mean ();
public double sum ();
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Histogram h, string range_format, string bin_format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
}
[Compact]
[CCode (cname="gsl_histogram_pdf", cheader_filename="gsl/gsl_histogram.h")]
public class HistogramPDF
{
public size_t n;
public double* range;
public double* sum ;
[CCode (cname="gsl_histogram_pdf_alloc")]
public HistogramPDF (size_t n);
public int init (Histogram h);
public double sample (double r);
}
[Compact]
[CCode (cname="gsl_histogram2d", cheader_filename="gsl/gsl_histogram2d.h")]
public class Histogram2d
{
public size_t nx;
public size_t ny;
public double* xrange;
public double* yrange;
public double* bin;
[CCode (cname="gsl_histogram2d_alloc")]
public Histogram2d (size_t nx, size_t ny);
[CCode (cname="gsl_histogram2d_calloc")]
public Histogram2d.with_zeros (size_t nx, size_t ny);
[CCode (cname="gsl_histogram2d_calloc_uniform")]
public Histogram2d.uniform (size_t nx, size_t ny, double xmin, double xmax, double ymin, double ymax);
[CCode (cname="gsl_histogram2d_calloc_range")]
public Histogram2d.range (size_t nx, size_t ny, out double xrange, out double yrange);
public int increment (double x, double y);
public int accumulate (double x, double y, double weight);
public int find (double x, double y, out size_t i, out size_t j);
public double @get (size_t i, size_t j);
public int get_xrange (size_t i, out double xlower, out double xupper);
public int get_yrange (size_t j, out double ylower, out double yupper);
public double xmax ();
public double xmin ();
public double ymax ();
public double ymin ();
public void reset ();
public int set_ranges_uniform (double xmin, double xmax, double ymin, double ymax);
public int set_ranges (double[] xrange, double[] yrange);
public int memcpy (Histogram2d source);
public Histogram2d clone ();
public double max_val();
public void max_bin (out size_t i, out size_t j);
public double min_val();
public void min_bin (out size_t i, out size_t j);
public double xmean ();
public double ymean ();
public double xsigma ();
public double ysigma ();
public double cov ();
public double sum ();
public int equal_bins_p (Histogram h2) ;
public int add (Histogram h2);
public int sub (Histogram h2);
public int mul (Histogram2d h2);
public int div (Histogram2d h2);
public int scale (double scale);
public int shift (double shift);
[CCode (instance_pos=-1)]
public int fwrite (GLib.FileStream stream);
[CCode (instance_pos=-1)]
public int fread (GLib.FileStream stream);
public static int fprintf (GLib.FileStream stream, Histogram h, string range_format, string bin_format);
[CCode (instance_pos=-1)]
public int fscanf (GLib.FileStream stream);
}
[Compact]
[CCode (cname="gsl_histogram2d_pdf", cheader_filename="gsl/gsl_histogram2d.h")]
public class Histogram2dPDF
{
public size_t nx;
public size_t ny;
public double* xrange;
public double* yrange;
public double* sum;
[CCode (cname="gsl_histogram2d_pdf_alloc")]
public Histogram2dPDF (size_t nx, size_t ny);
public int init (Histogram2d h);
public int sample (double r1, double r2, out double x, out double y);
}
/*
* N-Tuples
*/
[CCode (has_target = false)]
public delegate int NTupleFunc (void* ntuple_data, void* params);
[SimpleType]
[CCode (cname="gsl_ntuple_select_fn", cheader_filename="gsl/gsl_ntuple.h")]
public struct NTupleSelectFn
{
public NTupleFunc function;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_ntuple_value_fn", cheader_filename="gsl/gsl_ntuple.h")]
public struct NTupleValueFn
{
public NTupleFunc function;
public void* params;
}
[Compact]
[CCode (cname="gsl_ntuple", free_function="gsl_ntuple_close", cheader_filename="gsl/gsl_ntuple.h")]
public class NTuple
{
public GLib.FileStream file;
public void* ntrupel_data;
public size_t size;
public static NTuple open (string filename, void* ntuple_data, size_t size);
public static NTuple create (string filename, void* ntuple_data, size_t size);
public int write ();
public int read ();
public int bookdata ();
public static int project (Histogram h, NTuple ntuple, NTupleValueFn* value_func, NTupleSelectFn* select_func);
}
/*
* Monte Carlo Integration
*/
[CCode (cprefix="GSL_VEGAS_MODE_", cheader_filename="gsl/gsl_monte_vegas.h")]
public enum MonteVegasMode
{
IMPORTANCE,
IMPORTANCE_ONLY,
STRATIFIED
}
[CCode (has_target = false)]
public delegate double MonteFunc ([CCode (array_length = false)] double[] x_array, size_t dim, void* params);
[SimpleType]
[CCode (cname="gsl_monte_function", cheader_filanema="gsl/gsl_monte.h")]
public struct MonteFunction
{
public MonteFunc f;
public size_t dim;
public void* params;
}
[Compact]
[CCode (cname="gsl_monte_plain_state", cprefix="gsl_monte_plain_", cheader_filename="gsl/gsl_monte_plain.h")]
public class MontePlainState
{
public size_t dim;
public double* x;
[CCode (cname="gsl_monte_plain_alloc")]
public MontePlainState (size_t dim);
public int init ();
public static int integrate (MonteFunction* f, [CCode (array_length = false)] double[] xl, [CCode (array_length = false)] double[] xu, size_t dim, size_t calls, RNG r, MontePlainState state, out double result, out double abserr);
}
[Compact]
[CCode (cname="gsl_monte_miser_state", cprefix="gsl_monte_miser_", cheader_filename="gsl/gsl_monte_miser.h")]
public class MonteMiserState
{
public size_t min_calls;
public size_t min_calls_per_bisection;
public double dither;
public double estimate_frac;
public double alpha;
public size_t dim;
public int estimate_style;
public int depth;
public int verbose;
public double* x;
public double* xmid;
public double* sigma_l;
public double* sigma_r;
public double* fmax_l;
public double* fmax_r;
public double* fmin_l;
public double* fmin_r;
public double* fsum_l;
public double* fsum_r;
public double* fsum2_l;
public double* fsum2_r;
public size_t* hits_l;
public size_t* hits_r;
[CCode (cname="gsl_monte_miser_alloc")]
public MonteMiserState (size_t dim);
public int init ();
public static int integrate (MonteFunction* f, [CCode (array_length = false)] double[] xl, [CCode (array_length = false)] double[] xh, size_t dim, size_t calls, RNG r, MonteMiserState state, out double result, out double abserr);
}
[Compact]
[CCode (cname="gsl_monte_vegas_state", cprefix="gsl_monte_vegas_", cheader_filename="gsl/gsl_monte_vegas.h")]
public class MonteVegasState
{
public size_t dim;
public size_t bins_max;
public uint bins;
public uint boxes;
public double* xi;
public double* xin;
public double* delx;
public double* weight;
public double vol;
public double* x;
public int* bin;
public int* box;
public double* d;
public double alpha;
public int mode;
public int verbose;
public uint iterations;
public int stage;
public double jac;
public double wtd_int_sum;
public double sum_wgts;
public double chi_sum;
public double chisq;
public double result;
public double sigma;
public uint it_start;
public uint it_num;
public uint samples;
public uint calls_per_box;
public GLib.FileStream ostream;
[CCode (cname="gsl_monte_vegas_alloc")]
public MonteVegasState (size_t dim);
public int init ();
public static int integrate (MonteFunction* f, [CCode (array_length = false)] double[] xl, [CCode (array_length = false)] double[] xu, size_t dim, size_t calls, RNG r, MonteVegasState state, out double result, out double abserr);
}
/*
* Simulated Annealing
*/
[SimpleType]
[CCode (cname="gsl_siman_params_t", cheader_filename="gsl/gsl_siman.h")]
public struct SimanParams
{
public int n_tries;
public int iters_fixed_T;
public double step_size;
public double k;
public double t_initial;
public double mu_t;
public double t_min;
}
[CCode (lower_case_cprefix="gsl_siman_", cheader_filename="gsl/gsl_siman.h")]
namespace Siman
{
[CCode (has_target = false)]
public delegate double Efunc_t (void *xp);
[CCode (has_target = false)]
public delegate void step_t (RNG r, void *xp, double step_size);
[CCode (has_target = false)]
public delegate double metric_t (void *xp, void* yp);
[CCode (has_target = false)]
public delegate void print_t (void* xp);
[CCode (has_target = false)]
public delegate void copy_t (void* source, void* dest);
[CCode (has_target = false)]
public delegate void copy_construct_t (void* xp);
[CCode (has_target = false)]
public delegate void destroy_t (void* xp);
public static void solve(RNG r, void *x0_p, Efunc_t Ef, step_t take_step, metric_t distance, print_t print_position, copy_t copyfunc, copy_construct_t copy_constructor, destroy_t destructor, size_t element_size, SimanParams params);
public static void solve_many (RNG r, void *x0_p, Efunc_t Ef, step_t take_step, metric_t distance, print_t print_position, size_t element_size, SimanParams params);
}
/*
* Ordinary Differential Equations
*/
[CCode (cprefix="GSL_ODEIV_HADJ_", cheader_filename="gsl/gsl_odeiv.h")]
public enum OdeivHadjustTypes
{
INC,
NIL,
DEC
}
[CCode (has_target = false)]
public delegate int OdeivFunction (double t, [CCode (array_length = false)] double[] y, [CCode (array_length = false)] double[] dydt, void* params);
[CCode (has_target = false)]
public delegate int OdeivJacobian (double t, [CCode (array_length = false)] double[] y, [CCode (array_length = false)] double[] dfdy, [CCode (array_length = false)] double[] dfdt, void* params);
[CCode (has_target = false)]
public delegate void* OdeivStepAlloc (size_t dim);
[CCode (has_target = false)]
public delegate int OdeivStepApply (void* state, size_t dim, double t, double h, [CCode (array_length = false)] double[] y, [CCode (array_length = false)] double[] yerr, [CCode (array_length = false)] double[] dydt_in, [CCode (array_length = false)] double[] dydt_out, OdeivSystem* dydt);
[CCode (has_target = false)]
public delegate int OdeivStepReset (void* state, size_t dim);
[CCode (has_target = false)]
public delegate uint OdeivStepOrder (void* state);
[CCode (has_target = false)]
public delegate void OdeivStepFree (void* state);
[CCode (has_target = false)]
public delegate void* OdeivControlAlloc ();
[CCode (has_target = false)]
public delegate int OdeivControlInit (void* state, double eps_abs, double eps_rel, double a_y, double a_dydt);
[CCode (has_target = false)]
public delegate int OdeivControlHadjust (void* state, size_t dim, uint ord, [CCode (array_length = false)] double[] y, [CCode (array_length = false)] double[] yerr, [CCode (array_length = false)] double[] yp, [CCode (array_length = false)] double[] h);
[CCode (has_target = false)]
public delegate void OdeivControlFree (void* state);
[SimpleType]
[CCode (cname="gsl_odeiv_system", cheader_filename="gsl/gsl_odeiv.h")]
public struct OdeivSystem
{
public OdeivFunction function;
public OdeivJacobian jacobian;
public size_t dimension;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_odeiv_step_type", cheader_filename="gsl/gsl_odeiv.h")]
public struct OdeivStepType
{
public string name;
public int can_use_dydt_in;
public int gives_exact_dydt_out;
public OdeivStepAlloc alloc;
public OdeivStepApply apply;
public OdeivStepReset reset;
public OdeivStepOrder order;
public OdeivStepFree free;
}
[CCode (lower_case_cprefix="gsl_odeiv_step_", cheader_filename="gsl/gsl_odeiv.h")]
namespace OdeivStepTypes
{
public static OdeivStepType* rk2;
public static OdeivStepType* rk4;
public static OdeivStepType* rkf45;
public static OdeivStepType* rkck;
public static OdeivStepType* rk8pd;
public static OdeivStepType* rk2imp;
public static OdeivStepType* rk2simp;
public static OdeivStepType* rk4imp;
public static OdeivStepType* bsimp;
public static OdeivStepType* gear1;
public static OdeivStepType* gear2;
}
[Compact]
[CCode (cname="gsl_odeiv_step", cheader_filename="gsl/gsl_odeiv.h")]
public class OdeivStep
{
public OdeivStepType* type;
public size_t dimension;
public void* state;
[CCode (cname="gsl_odeiv_step_alloc")]
public OdeivStep (OdeivStepType* T, size_t dim);
public int reset ();
public string name ();
public uint order ();
public int apply (double t, double h, [CCode (array_length = false)] double[] y, [CCode (array_length = false)] double[] yerr, [CCode (array_length = false)] double[] dydt_in, [CCode (array_length = false)] double[] dydt_out, OdeivSystem* dydt);
}
[SimpleType]
[CCode (cname="gsl_odeiv_control_type", cheader_filename="gsl/gsl_odeiv.h")]
public struct OdeivControlType
{
public string name;
public OdeivControlAlloc alloc;
public OdeivControlInit init;
public OdeivControlHadjust hadjust;
public OdeivControlFree free;
}
[Compact]
[CCode (cname="gsl_odeiv_control", cheader_filename="gsl/gsl_odeiv.h")]
public class OdeivControl
{
public OdeivControlType* type;
public void* state;
[CCode (cname="gsl_odeiv_control_alloc")]
public OdeivControl (OdeivControlType* T);
[CCode (cname="gsl_odeiv_control_standard_new")]
public OdeivControl.standard (double eps_abs, double eps_rel, double a_y, double a_dydt);
[CCode (cname="gsl_odeiv_control_y_new")]
public OdeivControl.y (double eps_abs, double eps_rel);
[CCode (cname="gsl_odeiv_control_yp_new")]
public OdeivControl.yp (double eps_abs, double eps_rel);
[CCode (cname="gsl_odeiv_control_scaled_new")]
public OdeivControl.scaled (double eps_abs, double eps_rel, double a_y, double a_dydt, double[] scale_abs);
public int init (double eps_abs, double eps_rel, double a_y, double a_dydt);
public int hadjust (OdeivStep s, out double y, out double yerr, out double dydt, out double h);
public string name ();
}
[Compact]
[CCode (cname="gsl_odeiv_evolve", cheader_filename="gsl/gsl_odeiv.h")]
public class OdeivEvolve
{
public size_t dimension;
public double* y0;
public double* yerr;
public double* dydt_in;
public double* dydt_out;
public double last_step;
public ulong count;
public ulong failed_steps;
[CCode (cname="gsl_odeiv_evolve_alloc")]
public OdeivEvolve (size_t dim);
public int apply (OdeivControl con, OdeivStep step, OdeivSystem* dydt, [CCode (array_length = false)] double[] t, double t1, [CCode (array_length = false)] double[] h, [CCode (array_length = false)] double[] y);
public int reset ();
}
/*
* Interpolation
*/
[CCode (has_target = false)]
public delegate void* InterpAlloc (size_t size);
[CCode (has_target = false)]
public delegate int InterpInit (void* t, [CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size);
[CCode (has_target = false)]
public delegate int InterpEval (void* t, [CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size, double x, InterpAccel* i, out double y);
[CCode (has_target = false)]
public delegate int InterpEvalDeriv (void* t, [CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size, double x, InterpAccel* i, out double y_p);
[CCode (has_target = false)]
public delegate int InterpEvalDeriv2 (void* t, [CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size, double x, InterpAccel* i, out double y_pp);
[CCode (has_target = false)]
public delegate int InterpEvalInteg (void* t, [CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size, InterpAccel* i, double a, double b, out double result);
[CCode (has_target = false)]
public delegate void InterpFree (void* t);
[Compact]
[CCode (cname="gsl_interp_accel", cheader_filname="gsl/gsl_interp.h")]
public class InterpAccel
{
public size_t cache;
public size_t miss_count;
public size_t hit_count;
[CCode (cname="gsl_interp_accel_alloc")]
public InterpAccel ();
public size_t find (double[] x_array, double x);
public int reset ();
}
[SimpleType]
[CCode (cname="gsl_interp_type", cheader_filename="gsl/gsl_interp.h")]
public struct InterpType
{
public string name;
public uint min_size;
public InterpAlloc alloc;
public InterpInit init;
public InterpEval eval;
public InterpEvalDeriv eval_deriv;
public InterpEvalDeriv2 eval_deriv2;
public InterpEvalInteg eval_integ;
public InterpFree free;
}
[CCode (lower_case_cprefix="gsl_interp_", cheader_filename="gsl/gsl_interp.h")]
namespace InterpTypes
{
public static InterpType* linear;
public static InterpType* polynomial;
public static InterpType* cspline;
public static InterpType* cspline_periodic;
public static InterpType* akima;
public static InterpType* akima_periodic;
}
[Compact]
[CCode (cname="gsl_interp", cheader_filename="gsl/gsl_interp.h")]
public class Interp
{
InterpType* type;
public double xmin;
public double xmax;
public size_t size;
public void* state;
[CCode (cname="gsl_interp_alloc")]
public Interp (InterpType T, size_t n);
public int init ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size);
public string name ();
public uint min_size ();
public int eval_e ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double x, InterpAccel a, out double y);
public double eval ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double x, InterpAccel a);
public int eval_deriv_e ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double x, InterpAccel a, out double d);
public double eval_deriv ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double x, InterpAccel a);
public int eval_deriv2_e ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double x, InterpAccel a, out double d2);
public double eval_deriv2 ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double x, InterpAccel a);
public int eval_integ_e ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double a, double b, InterpAccel acc, out double result);
public double eval_integ ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, double a, double b, InterpAccel acc);
public static size_t bsearch([CCode (array_length = false)] double[] x_array, double x, size_t index_lo, size_t index_hi);
}
[Compact]
[CCode (cname="gsl_spline", cheader_filename="gsl/gsl_spline.h")]
public class Spline
{
public Interp interp;
public double* x;
public double* y;
public size_t size;
[CCode (cname="gsl_spline_alloc")]
public Spline (InterpType* T, size_t size);
public int init ([CCode (array_length = false)] double[] xa, [CCode (array_length = false)] double[] ya, size_t size);
public string name ();
public uint min_size ();
public int eval_e (double x, InterpAccel a, out double y);
public double eval (double x, InterpAccel a);
public int eval_deriv_e (double x, InterpAccel a, out double y);
public double eval_deriv (double x, InterpAccel a);
public int eval_deriv2_e (double x, InterpAccel a, out double y);
public double eval_deriv2 (double x, InterpAccel a);
public int eval_integ_e (double a, double b, InterpAccel acc, out double y);
public double eval_integ (double a, double b, InterpAccel acc);
}
/*
* Numerical Differentiation
*/
[CCode (lower_case_cprefix="gsl_deriv_", cheader_fileame="gsl/gsl_deriv.h")]
namespace Deriv
{
public static int central (Function* f, double x, double h, out double result, out double abserr);
public static int backward (Function* f, double x, double h, out double result, out double abserr);
public static int forward (Function* f, double x, double h, out double result, out double abserr);
}
/*
* Chebyshev Approximations
*/
[Compact]
[CCode (cname="gsl_cheb_series", cprefix="gsl_cheb_", cheader_filename="gsl/gsl_chebyshev.h")]
public class ChebSeries
{
public double* c;
public size_t order;
public double a;
public double b;
public size_t order_sp;
public double *f;
[CCode (cname="gsl_cheb_alloc")]
public ChebSeries (size_t order);
public int init (Function* func, double a, double b);
public double eval (double x);
public int eval_err (double x, out double result, out double abserr);
public double eval_n (size_t order, double x);
public int eval_n_err (size_t order, double x, out double result, out double abserr);
public double eval_mode (double x, Mode mode);
public int eval_mode_e (double x, Mode mode, out double result, out double abserr);
public int calc_deriv (ChebSeries cs);
public int calc_integ (ChebSeries cs);
}
/*
* Series Acceleration
*/
[Compact]
[CCode (cname="gsl_sum_levin_u_workspace", free_function="gsl_sum_levin_u_free", cheader_filename="gsl/gsl_sum.h")]
public class SumLevinUWorkspace
{
public size_t size;
public size_t i;
public size_t terms_used;
public double sum_plain;
public double* q_num;
public double* q_den;
public double* dq_num;
public double* dq_den;
public double* dsum;
[CCode (cname="gsl_sum_levin_u_alloc")]
public SumLevinUWorkspace (size_t n);
}
[CCode (lower_case_cprefix="gsl_sum_levin_u_", cheader_filename="gsl/gsl_sum.h")]
namespace SumLevinU
{
public static int accel (double[] array, SumLevinUWorkspace w, out double sum_accel, out double abserr);
public static int minmax (double[] array, size_t min_terms, size_t max_terms, SumLevinUWorkspace w, out double sum_accel, out double abserr);
public static int step (double term, size_t n, size_t nmax, SumLevinUWorkspace w, out double sum_accel);
}
[Compact]
[CCode (cname="gsl_sum_levin_utrunc_workspace", free_function="gsl_sum_levin_utrunc_free", cheader_filename="gsl/gsl_sum.h")]
public class SumLevinUtruncWorkspace
{
public size_t size;
public size_t i;
public size_t terms_used;
public double sum_plain;
public double* q_num;
public double* q_den;
public double* dsum;
[CCode (cname="gsl_sum_levin_utrunc_alloc")]
public SumLevinUtruncWorkspace (size_t n);
}
[CCode (lower_case_cprefix="gsl_sum_levin_utrunc_", cheader_filename="gsl/gsl_sum.h")]
namespace SumLevinUtrunc
{
public static int accel (double[] array, SumLevinUtruncWorkspace w, out double sum_accel, out double abserr_trunc);
public static int minmax (double[] array, size_t min_terms, size_t max_terms, SumLevinUtruncWorkspace w, out double sum_accel, out double abserr_trunc);
public static int step (double term, size_t n, SumLevinUtruncWorkspace w, out double sum_accel);
}
/*
* Wavelet Transforms
*/
public enum WaveletDirection
{
forward = 1,
backward = -1
}
[CCode (has_target = false)]
public delegate int WaveletInit (double** h1, double** g1, double** h2, double** g2, size_t* nc, size_t* offset, size_t member);
[SimpleType]
[CCode (cname="gsl_wavelet_type", cheader_filename="gsl/gsl_wavelet.h")]
public struct WaveletType
{
public string name;
public WaveletInit init;
}
[CCode (lower_case_cprefix="gsl_wavelet_", cheader_filename="gsl/gsl_wavelet.h")]
namespace WaveletTypes
{
public static WaveletType* daubechies;
public static WaveletType* daubechies_centered;
public static WaveletType* haar;
public static WaveletType* haar_centered;
public static WaveletType* bspline;
public static WaveletType* bspline_centered;
}
[Compact]
[CCode (cname="gsl_wavelet_workspace", cheader_filename="gsl/gsl_wavelet.h")]
public class WaveletWorkspace
{
public double* scratch;
public size_t n;
[CCode (cname="gsl_wavelet_workspace_alloc")]
public WaveletWorkspace (size_t n);
}
[Compact]
[CCode (cname="gsl_wavelet", cheader_filename="gsl/gsl_wavelet.h,gsl/gsl_wavelet2d.h")]
public class Wavelet
{
public WaveletType* type;
public double* h1;
public double* g1;
public double* h2;
public double* g2;
public size_t nc;
public size_t offset;
[CCode (cname="gsl_wavelet_alloc")]
public Wavelet (WaveletType* T, size_t k);
public string name ();
public int transform ([CCode (array_length = false)] double[] data, size_t stride, size_t n, WaveletDirection dir, WaveletWorkspace work);
public int transform_forward ([CCode (array_length = false)] double[] data, size_t stride, size_t n, WaveletWorkspace work);
public int transform_inverse ([CCode (array_length = false)] double[] data, size_t stride, size_t n, WaveletWorkspace work);
[CCode (cname="gsl_wavelet2d_transform")]
public int transform_2d ([CCode (array_length = false)] double[] data, size_t tda, size_t size1, size_t size2, WaveletDirection dir, WaveletWorkspace work);
[CCode (cname="gsl_wavelet2d_transform_forward")]
public int transform_forward_2d ([CCode (array_length = false)] double[] data, size_t tda, size_t size1, size_t size2, WaveletWorkspace work);
[CCode (cname="gsl_wavelet2d__transform_inverse")]
public int transform_inverse_2d ([CCode (array_length = false)] double[] data, size_t tda, size_t size1, size_t size2, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int nstransform ([CCode (array_length = false)] double[] data, size_t tda, size_t size1, size_t size2, WaveletDirection dir,WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int nstransform_forward ([CCode (array_length = false)] double[] data, size_t tda, size_t size1, size_t size2, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int nstransform_inverse ([CCode (array_length = false)] double[] data, size_t tda, size_t size1, size_t size2, WaveletWorkspace * work);
[CCode (cprefix="gsl_wavelet2d_")]
public int transform_matrix (Matrix a, WaveletDirection dir, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int transform_matrix_forward (Matrix a, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int transform_matrix_inverse (Matrix a, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int nstransform_matrix (Matrix a, WaveletDirection dir, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int nstransform_matrix_forward (Matrix a, WaveletWorkspace work);
[CCode (cprefix="gsl_wavelet2d_")]
public int nstransform_matrix_inverse (Matrix a, WaveletWorkspace work);
}
/*
* Discrete Hankel Transforms
*/
[Compact]
[CCode (cname="gsl_dht", cheader_filename="gsl/gsl_dht.h")]
public class DHT
{
public size_t size;
public double nu;
public double xmax;
public double kmax;
public double* j;
public double* Jjj;
public double* J2;
[CCode (cname="gsl_dht_alloc")]
public DHT (size_t size);
[CCode (cname="gsl_dht_new")]
public DHT.recalc (size_t size, double nu, double xmax);
public int init (double nu, double xmax);
public double x_sample (int n);
public double k_sample (int n);
public int apply ([CCode (array_length = false)] double[] f_in, [CCode (array_length = false)] double[] f_out);
}
/*
* One dimensional Root-Finding
*/
[CCode (has_target = false)]
public delegate int RootFsolverSet (void* state, Function* f, double* root, double x_lower, double x_upper);
[CCode (has_target = false)]
public delegate int RootFsolverIterate (void* state, Function* f, double* root, double* x_lower, double* x_upper);
[CCode (has_target = false)]
public delegate int RootFdfsolverSet (void* state, FunctionFdf* f, double* root);
[CCode (has_target = false)]
public delegate int RootFdfsolverIterate (void* state, FunctionFdf* d, double* root);
[SimpleType]
[CCode (cname="gsl_root_fsolver_type", cheader_filename="gsl/gsl_roots.h")]
public struct RootFsolverType
{
public string name;
public size_t size;
public RootFsolverSet @set;
public RootFsolverIterate iterate;
}
[Compact]
[CCode (cname="gsl_root_fsolver", cheader_filename="gsl/gsl_roots.h")]
public class RootFsolver
{
public RootFsolverType* type;
public Function* function;
public double root;
public double x_lower;
public double x_upper;
public void* state;
[CCode (cname="gsl_root_fsolver_alloc")]
public RootFsolver (RootFsolverType* T);
public int @set (Function* f, double x_lower, double x_upper);
public int iterate ();
public unowned string name ();
}
[SimpleType]
[CCode (cname="gsl_root_fdfsolver_type", cheader_filename="gsl/gsl_roots.h")]
public struct RootFdfsolverType
{
public string name;
public size_t size;
public RootFdfsolverSet @set;
public RootFdfsolverIterate iterate;
}
[Compact]
[CCode (cname="gsl_root_fdfsolver", cheader_filename="gsl/gsl_roots.h")]
public class RootFdfsolver
{
public RootFdfsolverType* type;
public FunctionFdf* fdf;
public double root;
public void* state;
[CCode (cname="gsl_root_fdfsolver_alloc")]
public RootFdfsolver (RootFdfsolverType* T);
public int @set (FunctionFdf* fdf, double root);
public int iterate ();
public unowned string name ();
}
[CCode (lower_case_cprefix="gsl_root_test_", cheader_filename="gsl/gsl_roots.h")]
namespace RootTest
{
public static int interval (double x_lower, double x_upper, double epsabs, double epsrel);
public static int residual (double f, double epsabs);
public static int delta (double x1, double x0, double epsabs, double epsrel);
}
[CCode (lower_case_cprefix="gsl_root_fsolver_", cheader_filename="gsl/gsl_roots.h")]
namespace RootFsolverTypes
{
public static RootFsolverType* bisection;
public static RootFsolverType* brent;
public static RootFsolverType* falsepos;
}
[CCode (lower_case_cprefix="gsl_root_fdfsolver_", cheader_filename="gsl/gsl_roots.h")]
namespace RootFdfsolverTypes
{
public static RootFdfsolverType* newton;
public static RootFdfsolverType* secant;
public static RootFdfsolverType* steffenson;
}
/*
* One dimensional Minimization
*/
[CCode (has_target = false)]
public delegate int MinSet (void* state, Function* f, double xminimun, double f_minimum, double x_lower, double f_lower, double x_upper, double f_upper);
[CCode (has_target = false)]
public delegate int MinIterate (void *state, Function* f, double* x_minimum, double* f_minimum, double* x_lower, double* f_lower, double* x_upper, double* f_upper);
[CCode (has_target = false)]
public delegate int MinBracketingFunction (Function* f, double* x_minimum, double* f_minimum, double* x_lower, double* f_lower, double* x_upper, double* f_upper, size_t eval_max);
[SimpleType]
[CCode (cname="gsl_min_fminimizer_type", cheader_filename="gsl/gsl_min.h")]
public struct MinFminimizerType
{
public string name;
public size_t size;
public MinSet @set;
public MinIterate iterate;
}
[Compact]
[CCode (cname="gsl_min_fminimizer", cheader_filename="gsl/gsl_min.h")]
public class MinFminimizer
{
public MinFminimizerType* type;
public Function* function;
public double x_minimum;
public double x_lower;
public double x_upper;
public double f_minimum;
public double f_lower;
public double f_upper;
public void* state;
[CCode (cname="gsl_min_fminimizer_alloc")]
public MinFminimizer (MinFminimizerType* T) ;
public int @set (Function* f, double x_minimum, double x_lower, double x_upper);
public int set_with_values (Function* f, double x_minimum, double f_minimum, double x_lower, double f_lower, double x_upper, double f_upper);
public int iterate ();
public unowned string name ();
}
[CCode (lower_case_cprefix="gsl_min_test_", cheader_filename="gsl/gsl_min.h")]
namespace MinTest
{
public static int interval (double x_lower, double x_upper, double epsabs, double epsrel);
}
[CCode (lower_case_cprefix="gsl_min_fminimizer_", cheader_filename="gsl/gsl_min.h")]
namespace MinFminimizerTypes
{
public static MinFminimizerType* goldensection;
public static MinFminimizerType* brent;
}
[CCode (cname="gsl_min_find_bracket", cheader_filename="gsl/gsl_min.h")]
public static int find_bracket (Function* f, double* x_minimum, double* f_minimum, double* x_lower, double* f_lower, double* x_upper, double* f_upper, size_t eval_max);
/*
* Multidimensional Root-Finding
*/
[CCode (has_target = false)]
public delegate int MultirootF (Vector x, void* params, Vector f);
[CCode (has_target = false)]
public delegate int MultirootFAlloc (void* state, size_t n);
[CCode (has_target = false)]
public delegate int MultirootFSet (void* state, MultirootFunction* function, Vector x, Vector f, Vector dx);
[CCode (has_target = false)]
public delegate int MultirootFIterate (void* state, MultirootFunction* function, Vector x, Vector f, Vector dx);
[CCode (has_target = false)]
public delegate void MultirootFFree (void* state);
[CCode (has_target = false)]
public delegate int MultirootDF (Vector x, void* params, Matrix df);
[CCode (has_target = false)]
public delegate int MultirootFDF (Vector x, void* params, Vector f, Matrix df);
[CCode (has_target = false)]
public delegate int MultirootFdfAlloc (void* state, size_t n);
[CCode (has_target = false)]
public delegate int MultirootFdfSet (void* state, MultirootFunctionFdf* fdf, Vector x, Vector f, Matrix J, Vector dx);
[CCode (has_target = false)]
public delegate int MultirootFdfIterate (void* state, MultirootFunctionFdf* fdf, Vector x, Vector f, Matrix J, Vector dx);
[CCode (has_target = false)]
public delegate int MultirootFdfFree (void* state);
[SimpleType]
[CCode (cname="gsl_multiroot_function", cheader_filename="gsl/gsl_multiroots.h")]
public struct MultirootFunction
{
public MultirootF f;
public size_t n;
public void* params;
}
[CCode (cname="gsl_multiroot_fdjacobian", cheader_filename="gsl/gsl_multiroots.h")]
public static int multiroot_fdjacobian (MultirootFunction* F, Vector x, Vector f, double epsrel, Matrix jacobian);
[SimpleType]
[CCode (cname="gsl_multiroot_fsolver_type", cheader_filename="gsl/gsl_multiroots.h")]
public struct MultirootFsolverType
{
public string name;
public size_t size;
public MultirootFAlloc alloc;
public MultirootFSet @set;
public MultirootFIterate iterate;
public MultirootFFree free;
}
[Compact]
[CCode (cname="gsl_multiroot_fsolver", cheader_filename="gsl/gsl_multiroots.h")]
public class MultirootFsolver
{
public MultirootFsolverType* type;
public MultirootFunction* function;
public Vector x;
public Vector f;
public Vector dx;
public void* state;
[CCode (cname="gsl_multiroot_fsolver_alloc")]
public MultirootFsolver (MultirootFsolverType* T, size_t n);
public int @set (MultirootFunction* f, Vector x);
public int iterate ();
public unowned string name ();
public Vector root ();
}
[SimpleType]
[CCode (cname="gsl_multiroot_function_fdf", cheader_filename="gsl/gsl_multiroots.h")]
public struct MultirootFunctionFdf
{
public MultirootF f;
public MultirootDF df;
public MultirootFDF fdf;
public size_t n;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_multiroot_fdfsolver_type", cheader_filename="gsl/gsl_multiroots.h")]
public struct MultirootFdfsolverType
{
public string name;
public size_t size;
public MultirootFdfAlloc alloc;
public MultirootFdfSet @set;
public MultirootFdfIterate iterate;
public MultirootFdfFree free;
}
[Compact]
[CCode (cname="gsl_multiroot_fdfsolver", cheader_filename="gsl/gsl_multiroots.h")]
public class MultirootFdfsolver
{
public MultirootFdfsolverType* type;
public MultirootFunctionFdf* fdf;
public Vector x;
public Vector f;
public Matrix J;
public Vector dx;
public void* state;
[CCode (cname="gsl_multiroot_fdfsolver_alloc")]
public MultirootFdfsolver (MultirootFdfsolverType* T, size_t n);
public int @set (MultirootFunctionFdf* fdf, Vector x);
public int iterate ();
public unowned string name ();
public Vector root ();
}
[CCode (lower_case_cprefix="gsl_multiroot_test_", cheader_filename="gsl/gsl_multiroots.h")]
namespace MultirootTest
{
public static int delta (Vector dx, Vector x, double epsabs, double epsrel);
public static int residual (Vector f, double epsabs);
}
[CCode (lower_case_cprefix="gsl_multiroot_fsolver_", cheader_filename="gsl/gsl_multiroots.h")]
namespace MultirootFsolverTypes
{
public static MultirootFsolverType* dnewton;
public static MultirootFsolverType* broyden;
public static MultirootFsolverType* hybrid;
public static MultirootFsolverType* hybrids;
}
[CCode (lower_case_cprefix="gsl_multiroot_fdfsolver_", cheader_filename="gsl/gsl_multiroots.h")]
namespace MultirootFdfsolverTypes
{
public static MultirootFdfsolverType* newton;
public static MultirootFdfsolverType* gnewton;
public static MultirootFdfsolverType* hybridj;
public static MultirootFdfsolverType* hybridsj;
}
/*
* Multidimensional Minimization
*/
[CCode (has_target = false)]
public delegate double MultiminF (Vector x, void* params);
[CCode (has_target = false)]
public delegate void MultiminDf (Vector x, void* params, Vector df);
[CCode (has_target = false)]
public delegate void MultiminFdf (Vector x, void* params, double* f, Vector df);
[CCode (has_target = false)]
public delegate int MultiminFAlloc (void *state, size_t n);
[CCode (has_target = false)]
public delegate int MultiminFSet (void* state, MultiminFunction* f, Vector x, double* size);
[CCode (has_target = false)]
public delegate int MultiminFIterate (void* state, MultiminFunction* f, Vector x, double* size, double* fval);
[CCode (has_target = false)]
public delegate int MultiminFFree (void* state);
[SimpleType]
[CCode (cname="gsl_multimin_function", cheader_filename="gsl/gsl_multimin.h")]
public struct MultiminFunction
{
public MultiminF f;
public size_t n;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_multimin_function_fdf", cheader_filename="gsl/gsl_multimin.h")]
public struct MultiminFunctionFdf
{
public MultiminF f;
public MultiminDf df;
public MultiminFdf fdf;
public size_t n;
public void* params;
}
[CCode (cname="gsl_multimin_diff", cheader_filename="gsl/gsl_multimin.h")]
public static int multimin_diff (MultiminFunction* f, Vector x, Vector g);
[SimpleType]
[CCode (cname="gsl_multimin_fminimizer_type", cheader_filename="gsl/gsl_multimin.h")]
public struct MultiminFminimizerType
{
public string name;
public size_t size;
public MultiminFAlloc alloc;
public MultiminFSet @set;
public MultiminFIterate iterate;
public MultiminFFree free;
}
[Compact]
[CCode (cname="gsl_multimin_fminimizer", cheader_filename="gsl/gsl_multimin.h")]
public class MultiminFminimizer
{
public MultiminFminimizerType* type;
public MultiminFunction* f;
public double fval;
public Vector x;
public double size;
public void* state;
[CCode (cname="gsl_multimin_fminimizer_alloc")]
public MultiminFminimizer (MultiminFminimizerType* T, size_t n);
public int @set (MultiminFunction* f, Vector x, Vector step_size);
public unowned string name ();
public int iterate ();
public double minimum ();
}
[CCode (lower_case_cprefix="gsl_multimin_test_", cheader_filename="gsl/gsl_multimin.h")]
namespace MultiminTest
{
public static int gradient(Vector g, double epsabs);
public static int size (double size, double epsabs);
}
[CCode (has_target = false)]
public delegate int MultiminFdfAlloc (void *state, size_t n);
[CCode (has_target = false)]
public delegate int MultiminFdfSet (void* state, MultiminFunctionFdf* fdf, Vector x, double* f, Vector gradient, double step_size, double tol);
[CCode (has_target = false)]
public delegate int MultiminFdfIterate (void* state, MultiminFunctionFdf* fdf, Vector x, double* f, Vector gradient, Vector dx);
[CCode (has_target = false)]
public delegate int MultiminFdfRestart (void* state);
[CCode (has_target = false)]
public delegate int MultiminFdfFree (void* state);
[SimpleType]
[CCode (cname="gsl_multimin_fdfminimizer_type", cheader_filename="gsl/gsl_multimin.h")]
public struct MultiminFdfminimizerType
{
public string name;
public size_t size;
public MultiminFdfAlloc alloc;
public MultiminFdfSet @set;
public MultiminFdfIterate iterate;
public MultiminFdfRestart restart;
public MultiminFdfFree free;
}
[Compact]
[CCode (cname="gsl_multimin_fdfminimizer", cheader_filename="gsl/gsl_multimin.h")]
public class MultiminFdfminimizer
{
public MultiminFdfminimizerType* type;
public MultiminFunctionFdf* fdf;
public double f;
public Vector x;
public Vector gradient;
public Vector dx;
public void* state;
[CCode (cname="gsl_multimin_fdfminimizer_alloc")]
public MultiminFdfminimizer (MultiminFdfminimizerType* T, size_t n);
public int @set (MultiminFunctionFdf* fdf, Vector x, double step_size, double tol);
public unowned string name ();
public int iterate ();
public int restart ();
public double minimum ();
}
[CCode (lower_case_cprefix="gsl_multimin_fdfminimizer_", cheader_filename="gsl/gsl_multimin.h")]
namespace MultiminFdfminimizerTypes
{
public static MultiminFdfminimizerType* steepest_descent;
public static MultiminFdfminimizerType* conjugate_pr;
public static MultiminFdfminimizerType* conjugate_fr;
public static MultiminFdfminimizerType* vector_bfgs;
public static MultiminFdfminimizerType* vector_bfgs2;
}
[CCode (lower_case_cprefix="gsl_multimin_fminimizer_", cheader_filename="gsl/gsl_multimin.h")]
namespace MultiminFminimizerTypes
{
public static MultiminFminimizerType* nmsimplex;
}
/*
* Least-Squares Fitting
*/
[CCode (lower_case_cprefix="gsl_fit_", cheader_filename="gsl/gsl_fit.h")]
namespace Fit
{
public static int linear ([CCode (array_length = false)] double[] x, size_t xstride, [CCode (array_length = false)] double[] y, size_t ystride, size_t n, out double c0, out double c1, out double cov00, out double cov01, out double cov11, out double sumsq);
public static int wlinear ([CCode (array_length = false)] double[] x, size_t xstride, [CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] y, size_t ystride, size_t n, out double c0, out double c1, out double cov00, out double cov01, out double cov11, double chisq);
public static int linear_est (double x, double c0, double c1, double cov00, double cov01, double cov11, out double y, out double y_err);
public static int mul ([CCode (array_length = false)] double[] x, size_t xstride, [CCode (array_length = false)] double[] y, size_t ystride, size_t n, out double c1, out double cov11, out double sumsq);
public static int wmul ([CCode (array_length = false)] double[] x, size_t xstride, [CCode (array_length = false)] double[] w, size_t wstride, [CCode (array_length = false)] double[] y, size_t ystride, size_t n, out double c1, out double cov11, out double sumsq);
public static int mul_est (double x, double c1, double cov11, out double y, out double y_err);
}
[Compact]
[CCode (cname="gsl_multifit_linear_workspace", cheader_filename="gsl/gsl_multifit.h")]
public class MultifitLinearWorkspace
{
public size_t n;
public size_t p;
public Matrix A;
public Matrix Q;
public Matrix QSI;
public Vector S;
public Vector t;
public Vector xt;
public Vector D;
[CCode (cname="gsl_multifit_linear_workspace_alloc")]
public MultifitLinearWorkspace (size_t n, size_t p);
}
[CCode (lower_case_cprefix="gsl_multifit_", cheader_filename="gsl/gsl_multifit.h")]
namespace Multifit
{
public static int linear (Matrix X, Vector y, Vector c, Matrix cov, out double chisq, MultifitLinearWorkspace work);
public static int linear_svd (Matrix X, Vector y, double tol, out size_t rank, Vector c, Matrix cov, out double chisq, MultifitLinearWorkspace work);
public static int wlinear (Matrix X, Vector w, Vector y, Vector c, Matrix cov, out double chisq, MultifitLinearWorkspace work);
public static int wlinear_svd (Matrix X, Vector w, Vector y, double tol, out size_t rank, Vector c, Matrix cov, out double chisq, MultifitLinearWorkspace work);
public static int linear_est (Vector x, Vector c, Matrix cov, out double y, out double y_err);
public int linear_residuals (Matrix X, Vector y, Vector c, Vector r);
}
/*
* Nonlinear Least-Squares Fitting
*/
[CCode (has_target = false)]
public delegate int MultifitF (Vector x, void* params, Vector f);
[CCode (has_target = false)]
public delegate int MultifitFAlloc (void* state, size_t n, size_t p);
[CCode (has_target = false)]
public delegate int MultifitFSet (void* state, MultifitFunction* function, Vector x, Vector f, Vector dx);
[CCode (has_target = false)]
public delegate int MultifitFIterate (void* state, MultifitFunction* function, Vector x, Vector f, Vector dx);
[CCode (has_target = false)]
public delegate void MultifitFFree (void* state);
[CCode (has_target = false)]
public delegate int MultifitDf (Vector x, void* params, Matrix df);
[CCode (has_target = false)]
public delegate int MultifitFdf (Vector x, void* params, Vector f, Matrix df);
[CCode (has_target = false)]
public delegate int MultifitFdfAlloc (void* state, size_t n, size_t p);
[CCode (has_target = false)]
public delegate int MultifitFdfSet (void* state, MultifitFunctionFdf fdf, Vector x, Vector f, Matrix J, Vector dx);
[CCode (has_target = false)]
public delegate int MultifitFdfIterate (void* state, MultifitFunctionFdf fdf, Vector x, Vector f, Matrix J, Vector dx);
[CCode (has_target = false)]
public delegate void MultifitFdfFree (void* state);
[CCode (lower_case_cprefix="gsl_multifit_", cheader_filename="gsl/gsl_multifit_nlin.h")]
namespace Multifit
{
public static int gradient (Matrix J, Vector f, Vector g);
public static int covar (Matrix J, double epsrel, Matrix covar);
}
[SimpleType]
[CCode (cname="gsl_multifit_function", cheader_filename="gls/gsl_multifit_nlin.h")]
public struct MultifitFunction
{
public MultifitF f;
public size_t n;
public size_t p;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_multifit_fsolver_type", cheader_filename="gsl/gsl_multifit_nlin.h")]
public struct MultifitFsolverType
{
public string name;
public size_t size;
public MultifitFAlloc alloc;
public MultifitFSet @set;
public MultifitFIterate iterate;
public MultifitFFree free;
}
[Compact]
[CCode (cname="gsl_multifit_fsolver", cheader_filename="gsl/gsl_multifit_nlin.h")]
public class MultifitFsolver
{
public MultifitFsolverType* type;
public MultifitFunction* function;
public Vector x;
public Vector f;
public Vector dx;
public void* state;
[CCode (cname="gsl_multifit_fsolver_alloc")]
public MultifitFsolver (MultifitFsolverType* T, size_t n, size_t p);
public int @set (MultifitFunction* f, Vector x);
public int iterate ();
public unowned string name ();
public Vector position ();
}
[SimpleType]
[CCode (cname="gsl_multifit_function_fdf", cheader_filename="gsl/gsl_multifit_nlin.h")]
public struct MultifitFunctionFdf
{
public MultifitF f;
public MultifitDf df;
public MultifitFdf fdf;
public size_t n;
public size_t p;
public void* params;
}
[SimpleType]
[CCode (cname="gsl_multifit_fdfsolver_type", cheader_filename="gsl/gsl_multifit_nlin.h")]
public struct MultifitFdfsolverType
{
public string name;
public size_t size;
public MultifitFdfAlloc alloc;
public MultifitFdfSet @set;
public MultifitFdfIterate iterate;
public MultifitFdfFree free;
}
[Compact]
[CCode (cname="gsl_multifit_fdfsolver", cheader_filename="gsl/gsl_multifit_nlin.h")]
public class MultifitFdfsolver
{
public MultifitFdfsolverType* type;
public MultifitFunctionFdf* fdf;
public Vector x;
public Vector f;
public Vector J;
public Vector dx;
public void* state;
[CCode (cname="gsl_multifit_fdfsolver_alloc")]
public MultifitFdfsolver (MultifitFdfsolverType* T, size_t n, size_t p);
public int @set (MultifitFunctionFdf* fdf, Vector x);
public int iterate ();
public unowned string name ();
public Vector position ();
}
[CCode (lower_case_cprefix="gsl_multifit_test_", cheader_filename="gsl/gsl_multifit_nlin.h")]
namespace MultifitTest
{
public static int delta (Vector dx, Vector x, double epsabs, double epsrel);
public static int gradient (Vector g, double epsabs);
}
[CCode (lower_case_cprefix="gsl_multifit_fdfsolver_", cheader_filename="gsl/gsl_multifit_nlin.h")]
namespace MultifitFdfsolverTypes
{
public static MultifitFdfsolverType* lmder;
public static MultifitFdfsolverType* lmsder;
}
/*
* Basis Splines
*/
[Compact]
[CCode (cname="gsl_bspline_workspace", cprefix="gsl_bspline_", cheader_filename="gsl/gsl_bspline.h")]
public class BsplineWorkspace
{
public size_t k;
public size_t km1;
public size_t l;
public size_t nbreak;
public size_t n;
public Vector knots;
public Vector deltal;
public Vector deltar;
public Vector B;
[CCode (cname="gsl_bspline_alloc")]
public BsplineWorkspace (size_t k, size_t nbreak);
public size_t ncoeffs ();
public size_t order ();
[CCode (instance_pos=-1)]
public double breakpoint (size_t i);
[CCode (instance_pos=-1)]
public int knots_uniform (double a, double b);
[CCode (instance_pos=-1)]
public int eval (double x, Vector B);
}
}
|