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
|
/* Generated by Cython 0.12 on Sat Feb 13 15:44:34 2010 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#else
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
#if PY_VERSION_HEX < 0x02040000
#define METH_COEXIST 0
#define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
#define PyDict_Contains(d,o) PySequence_Contains(d,o)
#endif
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#define PY_FORMAT_SIZE_T ""
#define PyInt_FromSsize_t(z) PyInt_FromLong(z)
#define PyInt_AsSsize_t(o) PyInt_AsLong(o)
#define PyNumber_Index(o) PyNumber_Int(o)
#define PyIndex_Check(o) PyNumber_Check(o)
#endif
#if PY_VERSION_HEX < 0x02060000
#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
#define PyVarObject_HEAD_INIT(type, size) \
PyObject_HEAD_INIT(type) size,
#define PyType_Modified(t)
typedef struct {
void *buf;
PyObject *obj;
Py_ssize_t len;
Py_ssize_t itemsize;
int readonly;
int ndim;
char *format;
Py_ssize_t *shape;
Py_ssize_t *strides;
Py_ssize_t *suboffsets;
void *internal;
} Py_buffer;
#define PyBUF_SIMPLE 0
#define PyBUF_WRITABLE 0x0001
#define PyBUF_FORMAT 0x0004
#define PyBUF_ND 0x0008
#define PyBUF_STRIDES (0x0010 | PyBUF_ND)
#define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
#define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
#define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
#define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
#endif
#if PY_MAJOR_VERSION < 3
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#else
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#endif
#if PY_MAJOR_VERSION >= 3
#define Py_TPFLAGS_CHECKTYPES 0
#define Py_TPFLAGS_HAVE_INDEX 0
#endif
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#if PY_MAJOR_VERSION >= 3
#define PyBaseString_Type PyUnicode_Type
#define PyString_Type PyUnicode_Type
#define PyString_CheckExact PyUnicode_CheckExact
#else
#define PyBytes_Type PyString_Type
#define PyBytes_CheckExact PyString_CheckExact
#endif
#if PY_MAJOR_VERSION >= 3
#define PyInt_Type PyLong_Type
#define PyInt_Check(op) PyLong_Check(op)
#define PyInt_CheckExact(op) PyLong_CheckExact(op)
#define PyInt_FromString PyLong_FromString
#define PyInt_FromUnicode PyLong_FromUnicode
#define PyInt_FromLong PyLong_FromLong
#define PyInt_FromSize_t PyLong_FromSize_t
#define PyInt_FromSsize_t PyLong_FromSsize_t
#define PyInt_AsLong PyLong_AsLong
#define PyInt_AS_LONG PyLong_AS_LONG
#define PyInt_AsSsize_t PyLong_AsSsize_t
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
#else
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
#endif
#if PY_MAJOR_VERSION >= 3
#define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall
#define __stdcall
#endif
#ifndef __cdecl
#define __cdecl
#endif
#ifndef __fastcall
#define __fastcall
#endif
#else
#define _USE_MATH_DEFINES
#endif
#if PY_VERSION_HEX < 0x02050000
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n)))
#else
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n))
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
#endif
#if PY_VERSION_HEX < 0x02050000
#define __Pyx_NAMESTR(n) ((char *)(n))
#define __Pyx_DOCSTR(n) ((char *)(n))
#else
#define __Pyx_NAMESTR(n) (n)
#define __Pyx_DOCSTR(n) (n)
#endif
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
#include <math.h>
#define __PYX_HAVE_API__sage_link
#include "stdsage.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"
#include "math.h"
#include "gmp.h"
#include "factory.h"
#include "libsingular.h"
#include "prCopy.h"
#include "stairc.h"
#include "lists.h"
#include "intvec.h"
#include "syz.h"
#include "polynomial.h"
#include "singularconversion.h"
#ifdef __GNUC__
#define INLINE __inline__
#elif _WIN32
#define INLINE __inline
#else
#define INLINE
#endif
typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
/* Type Conversion Predeclarations */
#if PY_MAJOR_VERSION < 3
#define __Pyx_PyBytes_FromString PyString_FromString
#define __Pyx_PyBytes_FromStringAndSize PyString_FromStringAndSize
#define __Pyx_PyBytes_AsString PyString_AsString
#else
#define __Pyx_PyBytes_FromString PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
#define __Pyx_PyBytes_AsString PyBytes_AsString
#endif
#define __Pyx_PyBytes_FromUString(s) __Pyx_PyBytes_FromString((char*)s)
#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) __Pyx_PyBytes_AsString(s))
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
#if !defined(T_PYSSIZET)
#if PY_VERSION_HEX < 0x02050000
#define T_PYSSIZET T_INT
#elif !defined(T_LONGLONG)
#define T_PYSSIZET \
((sizeof(Py_ssize_t) == sizeof(int)) ? T_INT : \
((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : -1))
#else
#define T_PYSSIZET \
((sizeof(Py_ssize_t) == sizeof(int)) ? T_INT : \
((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : \
((sizeof(Py_ssize_t) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))
#endif
#endif
#if !defined(T_ULONGLONG)
#define __Pyx_T_UNSIGNED_INT(x) \
((sizeof(x) == sizeof(unsigned char)) ? T_UBYTE : \
((sizeof(x) == sizeof(unsigned short)) ? T_USHORT : \
((sizeof(x) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(x) == sizeof(unsigned long)) ? T_ULONG : -1))))
#else
#define __Pyx_T_UNSIGNED_INT(x) \
((sizeof(x) == sizeof(unsigned char)) ? T_UBYTE : \
((sizeof(x) == sizeof(unsigned short)) ? T_USHORT : \
((sizeof(x) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(x) == sizeof(unsigned long)) ? T_ULONG : \
((sizeof(x) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))))
#endif
#if !defined(T_LONGLONG)
#define __Pyx_T_SIGNED_INT(x) \
((sizeof(x) == sizeof(char)) ? T_BYTE : \
((sizeof(x) == sizeof(short)) ? T_SHORT : \
((sizeof(x) == sizeof(int)) ? T_INT : \
((sizeof(x) == sizeof(long)) ? T_LONG : -1))))
#else
#define __Pyx_T_SIGNED_INT(x) \
((sizeof(x) == sizeof(char)) ? T_BYTE : \
((sizeof(x) == sizeof(short)) ? T_SHORT : \
((sizeof(x) == sizeof(int)) ? T_INT : \
((sizeof(x) == sizeof(long)) ? T_LONG : \
((sizeof(x) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))))
#endif
#define __Pyx_T_FLOATING(x) \
((sizeof(x) == sizeof(float)) ? T_FLOAT : \
((sizeof(x) == sizeof(double)) ? T_DOUBLE : -1))
#if !defined(T_SIZET)
#if !defined(T_ULONGLONG)
#define T_SIZET \
((sizeof(size_t) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : -1))
#else
#define T_SIZET \
((sizeof(size_t) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : \
((sizeof(size_t) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))
#endif
#endif
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#ifdef __GNUC__
/* Test for GCC > 2.95 */
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#else /* __GNUC__ > 2 ... */
#define likely(x) (x)
#define unlikely(x) (x)
#endif /* __GNUC__ > 2 ... */
#else /* __GNUC__ */
#define likely(x) (x)
#define unlikely(x) (x)
#endif /* __GNUC__ */
static PyObject *__pyx_m;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;
static const char **__pyx_f;
/* Type declarations */
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent.pxd":32
*
* # Called from the __init__ method to set up coercion.
* cdef int init_coerce(self, bint warn=*) except -1 # <<<<<<<<<<<<<<
*
* # returns whether or not there is a Morphism from S to self
*/
struct __pyx_opt_args_4sage_9structure_6parent_6Parent_init_coerce {
int __pyx_n;
int warn;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent.pxd":47
* # returns the Action by/on self on/by S
* # corresponding to op and self_on_left
* cpdef get_action(self, other, op=*, bint self_on_left=*) # <<<<<<<<<<<<<<
* cpdef _get_action_(self, other, op, bint self_on_left)
*
*/
struct __pyx_opt_args_4sage_9structure_6parent_6Parent_get_action {
int __pyx_n;
PyObject *op;
int self_on_left;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/sage_object.pxd":1
* cdef class SageObject: # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_11sage_object_SageObject {
PyObject_HEAD
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":12
* import sage_object
*
* cdef class Element(sage_object.SageObject): # <<<<<<<<<<<<<<
* cdef Parent _parent
* cdef _richcmp_c_impl(left, Element right, int op)
*/
struct __pyx_obj_4sage_9structure_7element_Element {
struct __pyx_obj_4sage_9structure_11sage_object_SageObject __pyx_base;
struct __pyx_vtabstruct_4sage_9structure_7element_Element *__pyx_vtab;
struct __pyx_obj_4sage_9structure_6parent_Parent *_parent;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":27
*
*
* cdef class ModuleElement(Element) # forward declaration # <<<<<<<<<<<<<<
*
* cdef class RingElement(ModuleElement) # forward declaration
*/
struct __pyx_obj_4sage_9structure_7element_ModuleElement {
struct __pyx_obj_4sage_9structure_7element_Element __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":29
* cdef class ModuleElement(Element) # forward declaration
*
* cdef class RingElement(ModuleElement) # forward declaration # <<<<<<<<<<<<<<
*
* cdef class ModuleElement(Element):
*/
struct __pyx_obj_4sage_9structure_7element_RingElement {
struct __pyx_obj_4sage_9structure_7element_ModuleElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":67
* cpdef RingElement _idiv_(self, RingElement right)
*
* cdef class CommutativeRingElement(RingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_CommutativeRingElement {
struct __pyx_obj_4sage_9structure_7element_RingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial.pxd":3
* from sage.structure.element cimport CommutativeRingElement
*
* cdef class MPolynomial(CommutativeRingElement): # <<<<<<<<<<<<<<
* cdef long _hash_c(self)
*/
struct __pyx_obj_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial {
struct __pyx_obj_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial_libsingular.pxd":7
* from sage.structure.parent cimport Parent
*
* cdef class MPolynomial_libsingular(MPolynomial): # <<<<<<<<<<<<<<
* cdef poly *_poly
* cpdef _repr_short_(self)
*/
struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular {
struct __pyx_obj_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial __pyx_base;
polyrec *_poly;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/category_object.pxd":17
* # from sage.structure.parent cimport class Parent
*
* cdef class CategoryObject(sage_object.SageObject): # <<<<<<<<<<<<<<
*
* cdef _generators
*/
struct __pyx_obj_4sage_9structure_15category_object_CategoryObject {
struct __pyx_obj_4sage_9structure_11sage_object_SageObject __pyx_base;
PyObject *_generators;
PyObject *_category;
PyObject *_base;
PyObject *_cdata;
PyObject *_names;
PyObject *_factory_data;
PyObject *__weakref__;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent.pxd":13
*
*
* cdef class Parent(category_object.CategoryObject): # <<<<<<<<<<<<<<
*
* cdef public _element_constructor
*/
struct __pyx_obj_4sage_9structure_6parent_Parent {
struct __pyx_obj_4sage_9structure_15category_object_CategoryObject __pyx_base;
struct __pyx_vtabstruct_4sage_9structure_6parent_Parent *__pyx_vtab;
PyObject *_element_constructor;
PyObject *_convert_method_name;
int _element_init_pass_parent;
PyObject *_initial_coerce_list;
PyObject *_initial_action_list;
PyObject *_initial_convert_list;
int _coercions_used;
PyObject *__an_element;
PyObject *_coerce_from_list;
PyObject *_coerce_from_hash;
PyObject *_action_list;
PyObject *_action_hash;
PyObject *_convert_from_list;
PyObject *_convert_from_hash;
PyObject *_embedding;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_old.pxd":10
*
* cimport parent
* cdef class Parent(parent.Parent): # <<<<<<<<<<<<<<
*
* # returns a Morphism from S to self, or None
*/
struct __pyx_obj_4sage_9structure_10parent_old_Parent {
struct __pyx_obj_4sage_9structure_6parent_Parent __pyx_base;
PyObject *_has_coerce_map_from;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_base.pxd":11
* cimport parent_old
*
* cdef class ParentWithBase(parent_old.Parent): # <<<<<<<<<<<<<<
* pass
*/
struct __pyx_obj_4sage_9structure_11parent_base_ParentWithBase {
struct __pyx_obj_4sage_9structure_10parent_old_Parent __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_gens.pxd":15
* cimport parent_base
*
* cdef class ParentWithGens(parent_base.ParentWithBase): # <<<<<<<<<<<<<<
* cdef public object _gens
* cdef public object _gens_dict
*/
struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithGens {
struct __pyx_obj_4sage_9structure_11parent_base_ParentWithBase __pyx_base;
PyObject *_gens;
PyObject *_gens_dict;
PyObject *_latex_names;
PyObject *_list;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_gens.pxd":25
* cdef public object _generator_orders
*
* cdef class ParentWithAdditiveAbelianGens(ParentWithGens): # <<<<<<<<<<<<<<
* cdef public object _generator_orders
*/
struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens {
struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithGens __pyx_base;
PyObject *_generator_orders;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":3
* from sage.structure.parent_gens cimport ParentWithGens
*
* cdef class Ring(ParentWithGens): # <<<<<<<<<<<<<<
* cdef public object _zero_element
* cdef public object _one_element
*/
struct __pyx_obj_4sage_5rings_4ring_Ring {
struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithGens __pyx_base;
PyObject *_zero_element;
PyObject *_one_element;
PyObject *_zero_ideal;
PyObject *_unit_ideal;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":10
* cdef _an_element_c_impl(self)
*
* cdef class CommutativeRing(Ring): # <<<<<<<<<<<<<<
* cdef public object __fraction_field
* cdef public object __ideal_monoid
*/
struct __pyx_obj_4sage_5rings_4ring_CommutativeRing {
struct __pyx_obj_4sage_5rings_4ring_Ring __pyx_base;
PyObject *__fraction_field;
PyObject *__ideal_monoid;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":14
* cdef public object __ideal_monoid
*
* cdef class IntegralDomain(CommutativeRing): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_5rings_4ring_IntegralDomain {
struct __pyx_obj_4sage_5rings_4ring_CommutativeRing __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":21
*
*
* cdef class PrincipalIdealDomain(IntegralDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_5rings_4ring_PrincipalIdealDomain {
struct __pyx_obj_4sage_5rings_4ring_IntegralDomain __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":27
* pass
*
* cdef class Field(PrincipalIdealDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_5rings_4ring_Field {
struct __pyx_obj_4sage_5rings_4ring_PrincipalIdealDomain __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":30
* pass
*
* cdef class FiniteField(Field): # <<<<<<<<<<<<<<
* cdef public object __multiplicative_generator
* cdef public object __polynomial_ring
*/
struct __pyx_obj_4sage_5rings_4ring_FiniteField {
struct __pyx_obj_4sage_5rings_4ring_Field __pyx_base;
PyObject *__multiplicative_generator;
PyObject *__polynomial_ring;
PyObject *__vector_space;
PyObject *__interface;
PyObject *_kwargs;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":88
* pass
*
* cdef class AlgebraElement(RingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_AlgebraElement {
struct __pyx_obj_4sage_9structure_7element_RingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":113
*
*
* cdef class Matrix(AlgebraElement): # <<<<<<<<<<<<<<
* # All matrix classes must be written in Cython
* cdef Py_ssize_t _nrows
*/
struct __pyx_obj_4sage_9structure_7element_Matrix {
struct __pyx_obj_4sage_9structure_7element_AlgebraElement __pyx_base;
Py_ssize_t _nrows;
Py_ssize_t _ncols;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":3
* from sage.structure.sage_object cimport SageObject
*
* cdef class Generators(SageObject): # <<<<<<<<<<<<<<
*
* cdef readonly _obj
*/
struct __pyx_obj_4sage_9structure_10generators_Generators {
struct __pyx_obj_4sage_9structure_11sage_object_SageObject __pyx_base;
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators *__pyx_vtab;
PyObject *_obj;
PyObject *_index_set;
PyObject *_category;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":16
* cpdef list(self)
*
* cdef class Generators_finite(Generators): # <<<<<<<<<<<<<<
* cdef Py_ssize_t _n
*
*/
struct __pyx_obj_4sage_9structure_10generators_Generators_finite {
struct __pyx_obj_4sage_9structure_10generators_Generators __pyx_base;
Py_ssize_t _n;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":19
* cdef Py_ssize_t _n
*
* cdef class Generators_list(Generators_finite): # <<<<<<<<<<<<<<
* cdef _List
*
*/
struct __pyx_obj_4sage_9structure_10generators_Generators_list {
struct __pyx_obj_4sage_9structure_10generators_Generators_finite __pyx_base;
PyObject *_List;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":82
* pass
*
* cdef class FieldElement(CommutativeRingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_FieldElement {
struct __pyx_obj_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":49
* cdef RingElement coerce_to_base_ring(self, x)
*
* cdef class MonoidElement(Element): # <<<<<<<<<<<<<<
* cpdef MonoidElement _mul_(self, MonoidElement right)
*
*/
struct __pyx_obj_4sage_9structure_7element_MonoidElement {
struct __pyx_obj_4sage_9structure_7element_Element __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":52
* cpdef MonoidElement _mul_(self, MonoidElement right)
*
* cdef class MultiplicativeGroupElement(MonoidElement): # <<<<<<<<<<<<<<
* cpdef MultiplicativeGroupElement _div_(self, MultiplicativeGroupElement right)
*
*/
struct __pyx_obj_4sage_9structure_7element_MultiplicativeGroupElement {
struct __pyx_obj_4sage_9structure_7element_MonoidElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":37
* cdef public object _kwargs
*
* cdef class Algebra(Ring): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_5rings_4ring_Algebra {
struct __pyx_obj_4sage_5rings_4ring_Ring __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":56
*
*
* cdef class AdditiveGroupElement(ModuleElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_AdditiveGroupElement {
struct __pyx_obj_4sage_9structure_7element_ModuleElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":22
* cdef _List
*
* cdef class Generators_naturals(Generators): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_10generators_Generators_naturals {
struct __pyx_obj_4sage_9structure_10generators_Generators __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":91
* pass
*
* cdef class CommutativeAlgebraElement(CommutativeRingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_CommutativeAlgebraElement {
struct __pyx_obj_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":24
* pass
*
* cdef class EuclideanDomain(PrincipalIdealDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_5rings_4ring_EuclideanDomain {
struct __pyx_obj_4sage_5rings_4ring_PrincipalIdealDomain __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":17
* pass
*
* cdef class DedekindDomain(IntegralDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_5rings_4ring_DedekindDomain {
struct __pyx_obj_4sage_5rings_4ring_IntegralDomain __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":101
*
*
* cdef class Vector(ModuleElement): # <<<<<<<<<<<<<<
* cdef Py_ssize_t _degree
*
*/
struct __pyx_obj_4sage_9structure_7element_Vector {
struct __pyx_obj_4sage_9structure_7element_ModuleElement __pyx_base;
Py_ssize_t _degree;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":40
* pass
*
* cdef class CommutativeAlgebra(CommutativeRing): # <<<<<<<<<<<<<<
* pass
*/
struct __pyx_obj_4sage_5rings_4ring_CommutativeAlgebra {
struct __pyx_obj_4sage_5rings_4ring_CommutativeRing __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":25
* pass
*
* cdef class Generators_none(Generators): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_10generators_Generators_none {
struct __pyx_obj_4sage_9structure_10generators_Generators __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":70
* pass
*
* cdef class IntegralDomainElement(CommutativeRingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_IntegralDomainElement {
struct __pyx_obj_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":73
* pass
*
* cdef class DedekindDomainElement(IntegralDomainElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_DedekindDomainElement {
struct __pyx_obj_4sage_9structure_7element_IntegralDomainElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":76
* pass
*
* cdef class PrincipalIdealDomainElement(DedekindDomainElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_PrincipalIdealDomainElement {
struct __pyx_obj_4sage_9structure_7element_DedekindDomainElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":79
* pass
*
* cdef class EuclideanDomainElement(PrincipalIdealDomainElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_EuclideanDomainElement {
struct __pyx_obj_4sage_9structure_7element_PrincipalIdealDomainElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_gens.pxd":22
*
*
* cdef class ParentWithMultiplicativeAbelianGens(ParentWithGens): # <<<<<<<<<<<<<<
* cdef public object _generator_orders
*
*/
struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens {
struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithGens __pyx_base;
PyObject *_generator_orders;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial_ring_generic.pxd":6
* from sage.structure.parent cimport Parent
*
* cdef class MPolynomialRing_generic(sage.rings.ring.CommutativeRing): # <<<<<<<<<<<<<<
* cdef object __ngens
* cdef object __term_order
*/
struct __pyx_obj_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic {
struct __pyx_obj_4sage_5rings_4ring_CommutativeRing __pyx_base;
PyObject *__pyx___ngens;
PyObject *__pyx___term_order;
PyObject *_has_singular;
PyObject *_magma_gens;
PyObject *_magma_cache;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":94
* pass
*
* cdef class CommutativeAlgebra(AlgebraElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_CommutativeAlgebra {
struct __pyx_obj_4sage_9structure_7element_AlgebraElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":28
* pass
*
* cdef class Generators_lazy_all(Generators): # <<<<<<<<<<<<<<
* cdef _f
* cdef int _compute_gens(self) except -1
*/
struct __pyx_obj_4sage_9structure_10generators_Generators_lazy_all {
struct __pyx_obj_4sage_9structure_10generators_Generators __pyx_base;
PyObject *_f;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":128
*
*
* cdef class CoercionModel: # <<<<<<<<<<<<<<
* cpdef canonical_coercion(self, x, y)
* cpdef bin_op(self, x, y, op)
*/
struct __pyx_obj_4sage_9structure_7element_CoercionModel {
PyObject_HEAD
struct __pyx_vtabstruct_4sage_9structure_7element_CoercionModel *__pyx_vtab;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":97
* pass
*
* cdef class InfinityElement(RingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_InfinityElement {
struct __pyx_obj_4sage_9structure_7element_RingElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":85
* pass
*
* cdef class FiniteFieldElement(FieldElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4sage_9structure_7element_FiniteFieldElement {
struct __pyx_obj_4sage_9structure_7element_FieldElement __pyx_base;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial_libsingular.pxd":13
* cpdef _homogenize(self, int var)
*
* cdef class MPolynomialRing_libsingular(MPolynomialRing_generic): # <<<<<<<<<<<<<<
* cdef object __singular
* cdef object __macaulay2
*/
struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular {
struct __pyx_obj_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic __pyx_base;
PyObject *__pyx___singular;
PyObject *__pyx___macaulay2;
PyObject *__pyx___m2_set_ring_cache;
PyObject *__pyx___minpoly;
ip_sring *_ring;
};
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":12
* import sage_object
*
* cdef class Element(sage_object.SageObject): # <<<<<<<<<<<<<<
* cdef Parent _parent
* cdef _richcmp_c_impl(left, Element right, int op)
*/
struct __pyx_vtabstruct_4sage_9structure_7element_Element {
PyObject *(*_richcmp_c_impl)(struct __pyx_obj_4sage_9structure_7element_Element *, struct __pyx_obj_4sage_9structure_7element_Element *, int);
int (*_cmp_c_impl)(struct __pyx_obj_4sage_9structure_7element_Element *, struct __pyx_obj_4sage_9structure_7element_Element *);
PyObject *(*_richcmp)(struct __pyx_obj_4sage_9structure_7element_Element *, PyObject *, int);
PyObject *(*_cmp)(struct __pyx_obj_4sage_9structure_7element_Element *, PyObject *);
PyObject *(*_set_parent_c)(struct __pyx_obj_4sage_9structure_7element_Element *, struct __pyx_obj_4sage_9structure_6parent_Parent *);
PyObject *(*base_extend_c)(struct __pyx_obj_4sage_9structure_7element_Element *, struct __pyx_obj_4sage_9structure_6parent_Parent *);
PyObject *(*base_extend_c_impl)(struct __pyx_obj_4sage_9structure_7element_Element *, struct __pyx_obj_4sage_9structure_6parent_Parent *);
PyObject *(*_rich_to_bool)(struct __pyx_obj_4sage_9structure_7element_Element *, int, int);
PyObject *(*_act_on_)(struct __pyx_obj_4sage_9structure_7element_Element *, PyObject *, int, int __pyx_skip_dispatch);
PyObject *(*_acted_upon_)(struct __pyx_obj_4sage_9structure_7element_Element *, PyObject *, int, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_Element *__pyx_vtabptr_4sage_9structure_7element_Element;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":27
*
*
* cdef class ModuleElement(Element) # forward declaration # <<<<<<<<<<<<<<
*
* cdef class RingElement(ModuleElement) # forward declaration
*/
struct __pyx_vtabstruct_4sage_9structure_7element_ModuleElement {
struct __pyx_vtabstruct_4sage_9structure_7element_Element __pyx_base;
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_add_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_ModuleElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_sub_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_ModuleElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_neg_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_lmul_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_rmul_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_iadd_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_ModuleElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_isub_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_ModuleElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_ModuleElement *(*_ilmul_)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_RingElement *(*coerce_to_base_ring)(struct __pyx_obj_4sage_9structure_7element_ModuleElement *, PyObject *);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_ModuleElement *__pyx_vtabptr_4sage_9structure_7element_ModuleElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":29
* cdef class ModuleElement(Element) # forward declaration
*
* cdef class RingElement(ModuleElement) # forward declaration # <<<<<<<<<<<<<<
*
* cdef class ModuleElement(Element):
*/
struct __pyx_vtabstruct_4sage_9structure_7element_RingElement {
struct __pyx_vtabstruct_4sage_9structure_7element_ModuleElement __pyx_base;
struct __pyx_obj_4sage_9structure_7element_RingElement *(*_mul_)(struct __pyx_obj_4sage_9structure_7element_RingElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_RingElement *(*_div_)(struct __pyx_obj_4sage_9structure_7element_RingElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_RingElement *(*_imul_)(struct __pyx_obj_4sage_9structure_7element_RingElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_RingElement *(*_idiv_)(struct __pyx_obj_4sage_9structure_7element_RingElement *, struct __pyx_obj_4sage_9structure_7element_RingElement *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_RingElement *__pyx_vtabptr_4sage_9structure_7element_RingElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":97
* pass
*
* cdef class InfinityElement(RingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_InfinityElement {
struct __pyx_vtabstruct_4sage_9structure_7element_RingElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_InfinityElement *__pyx_vtabptr_4sage_9structure_7element_InfinityElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent.pxd":13
*
*
* cdef class Parent(category_object.CategoryObject): # <<<<<<<<<<<<<<
*
* cdef public _element_constructor
*/
struct __pyx_vtabstruct_4sage_9structure_6parent_Parent {
PyObject *(*register_coercion)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*register_action)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*register_conversion)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*register_embedding)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
int (*_richcmp_helper)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int, int __pyx_skip_dispatch);
int (*is_exact)(struct __pyx_obj_4sage_9structure_6parent_Parent *, int __pyx_skip_dispatch);
int (*init_coerce)(struct __pyx_obj_4sage_9structure_6parent_Parent *, struct __pyx_opt_args_4sage_9structure_6parent_6Parent_init_coerce *__pyx_optional_args);
int (*has_coerce_map_from)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*coerce_map_from)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*_coerce_map_from_)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*convert_map_from)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*_convert_map_from_)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*get_action)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4sage_9structure_6parent_6Parent_get_action *__pyx_optional_args);
PyObject *(*_get_action_)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, PyObject *, int, int __pyx_skip_dispatch);
PyObject *(*coerce)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*an_element)(struct __pyx_obj_4sage_9structure_6parent_Parent *, int __pyx_skip_dispatch);
PyObject *(*_an_element_)(struct __pyx_obj_4sage_9structure_6parent_Parent *, int __pyx_skip_dispatch);
PyObject *(*_generic_convert_map)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*discover_coerce_map_from)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *);
PyObject *(*discover_convert_map_from)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *);
PyObject *(*discover_action)(struct __pyx_obj_4sage_9structure_6parent_Parent *, PyObject *, PyObject *, int);
};
static struct __pyx_vtabstruct_4sage_9structure_6parent_Parent *__pyx_vtabptr_4sage_9structure_6parent_Parent;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_old.pxd":10
*
* cimport parent
* cdef class Parent(parent.Parent): # <<<<<<<<<<<<<<
*
* # returns a Morphism from S to self, or None
*/
struct __pyx_vtabstruct_4sage_9structure_10parent_old_Parent {
struct __pyx_vtabstruct_4sage_9structure_6parent_Parent __pyx_base;
PyObject *(*coerce_map_from_c)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*coerce_map_from_c_impl)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *);
PyObject *(*get_action_c)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *, PyObject *, int, int __pyx_skip_dispatch);
PyObject *(*get_action_c_impl)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *, PyObject *, int);
PyObject *(*has_coerce_map_from_c)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*has_coerce_map_from_c_impl)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *);
PyObject *(*_coerce_c)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*_coerce_c_impl)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *);
PyObject *(*_coerce_self_c)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *);
PyObject *(*_an_element_c_impl)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *);
PyObject *(*_an_element_c)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, int __pyx_skip_dispatch);
PyObject *(*_richcmp)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, PyObject *, int);
int (*_cmp_c_impl)(struct __pyx_obj_4sage_9structure_10parent_old_Parent *, struct __pyx_obj_4sage_9structure_6parent_Parent *);
};
static struct __pyx_vtabstruct_4sage_9structure_10parent_old_Parent *__pyx_vtabptr_4sage_9structure_10parent_old_Parent;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_base.pxd":11
* cimport parent_old
*
* cdef class ParentWithBase(parent_old.Parent): # <<<<<<<<<<<<<<
* pass
*/
struct __pyx_vtabstruct_4sage_9structure_11parent_base_ParentWithBase {
struct __pyx_vtabstruct_4sage_9structure_10parent_old_Parent __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_11parent_base_ParentWithBase *__pyx_vtabptr_4sage_9structure_11parent_base_ParentWithBase;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_gens.pxd":15
* cimport parent_base
*
* cdef class ParentWithGens(parent_base.ParentWithBase): # <<<<<<<<<<<<<<
* cdef public object _gens
* cdef public object _gens_dict
*/
struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithGens {
struct __pyx_vtabstruct_4sage_9structure_11parent_base_ParentWithBase __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithGens *__pyx_vtabptr_4sage_9structure_11parent_gens_ParentWithGens;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":3
* from sage.structure.parent_gens cimport ParentWithGens
*
* cdef class Ring(ParentWithGens): # <<<<<<<<<<<<<<
* cdef public object _zero_element
* cdef public object _one_element
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_Ring {
struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithGens __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_Ring *__pyx_vtabptr_4sage_5rings_4ring_Ring;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":10
* cdef _an_element_c_impl(self)
*
* cdef class CommutativeRing(Ring): # <<<<<<<<<<<<<<
* cdef public object __fraction_field
* cdef public object __ideal_monoid
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeRing {
struct __pyx_vtabstruct_4sage_5rings_4ring_Ring __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeRing *__pyx_vtabptr_4sage_5rings_4ring_CommutativeRing;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":14
* cdef public object __ideal_monoid
*
* cdef class IntegralDomain(CommutativeRing): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_IntegralDomain {
struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeRing __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_IntegralDomain *__pyx_vtabptr_4sage_5rings_4ring_IntegralDomain;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":67
* cpdef RingElement _idiv_(self, RingElement right)
*
* cdef class CommutativeRingElement(RingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeRingElement {
struct __pyx_vtabstruct_4sage_9structure_7element_RingElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeRingElement *__pyx_vtabptr_4sage_9structure_7element_CommutativeRingElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial.pxd":3
* from sage.structure.element cimport CommutativeRingElement
*
* cdef class MPolynomial(CommutativeRingElement): # <<<<<<<<<<<<<<
* cdef long _hash_c(self)
*/
struct __pyx_vtabstruct_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial {
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeRingElement __pyx_base;
long (*_hash_c)(struct __pyx_obj_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial *);
};
static struct __pyx_vtabstruct_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial *__pyx_vtabptr_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial_libsingular.pxd":7
* from sage.structure.parent cimport Parent
*
* cdef class MPolynomial_libsingular(MPolynomial): # <<<<<<<<<<<<<<
* cdef poly *_poly
* cpdef _repr_short_(self)
*/
struct __pyx_vtabstruct_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular {
struct __pyx_vtabstruct_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial __pyx_base;
PyObject *(*_repr_short_)(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *, int __pyx_skip_dispatch);
PyObject *(*is_constant)(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *, int __pyx_skip_dispatch);
PyObject *(*_homogenize)(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *, int, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *__pyx_vtabptr_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":56
*
*
* cdef class AdditiveGroupElement(ModuleElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_AdditiveGroupElement {
struct __pyx_vtabstruct_4sage_9structure_7element_ModuleElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_AdditiveGroupElement *__pyx_vtabptr_4sage_9structure_7element_AdditiveGroupElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":3
* from sage.structure.sage_object cimport SageObject
*
* cdef class Generators(SageObject): # <<<<<<<<<<<<<<
*
* cdef readonly _obj
*/
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators {
PyObject *(*get_from_index)(struct __pyx_obj_4sage_9structure_10generators_Generators *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*index_set)(struct __pyx_obj_4sage_9structure_10generators_Generators *, int __pyx_skip_dispatch);
PyObject *(*category)(struct __pyx_obj_4sage_9structure_10generators_Generators *, int __pyx_skip_dispatch);
PyObject *(*obj)(struct __pyx_obj_4sage_9structure_10generators_Generators *, int __pyx_skip_dispatch);
PyObject *(*count)(struct __pyx_obj_4sage_9structure_10generators_Generators *, int __pyx_skip_dispatch);
PyObject *(*list)(struct __pyx_obj_4sage_9structure_10generators_Generators *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_9structure_10generators_Generators *__pyx_vtabptr_4sage_9structure_10generators_Generators;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":28
* pass
*
* cdef class Generators_lazy_all(Generators): # <<<<<<<<<<<<<<
* cdef _f
* cdef int _compute_gens(self) except -1
*/
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_lazy_all {
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators __pyx_base;
int (*_compute_gens)(struct __pyx_obj_4sage_9structure_10generators_Generators_lazy_all *);
};
static struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_lazy_all *__pyx_vtabptr_4sage_9structure_10generators_Generators_lazy_all;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":82
* pass
*
* cdef class FieldElement(CommutativeRingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_FieldElement {
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_FieldElement *__pyx_vtabptr_4sage_9structure_7element_FieldElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":85
* pass
*
* cdef class FiniteFieldElement(FieldElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_FiniteFieldElement {
struct __pyx_vtabstruct_4sage_9structure_7element_FieldElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_FiniteFieldElement *__pyx_vtabptr_4sage_9structure_7element_FiniteFieldElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_gens.pxd":22
*
*
* cdef class ParentWithMultiplicativeAbelianGens(ParentWithGens): # <<<<<<<<<<<<<<
* cdef public object _generator_orders
*
*/
struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens {
struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithGens __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens *__pyx_vtabptr_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":70
* pass
*
* cdef class IntegralDomainElement(CommutativeRingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_IntegralDomainElement {
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_IntegralDomainElement *__pyx_vtabptr_4sage_9structure_7element_IntegralDomainElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":73
* pass
*
* cdef class DedekindDomainElement(IntegralDomainElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_DedekindDomainElement {
struct __pyx_vtabstruct_4sage_9structure_7element_IntegralDomainElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_DedekindDomainElement *__pyx_vtabptr_4sage_9structure_7element_DedekindDomainElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":76
* pass
*
* cdef class PrincipalIdealDomainElement(DedekindDomainElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_PrincipalIdealDomainElement {
struct __pyx_vtabstruct_4sage_9structure_7element_DedekindDomainElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_PrincipalIdealDomainElement *__pyx_vtabptr_4sage_9structure_7element_PrincipalIdealDomainElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":91
* pass
*
* cdef class CommutativeAlgebraElement(CommutativeRingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeAlgebraElement {
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeRingElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeAlgebraElement *__pyx_vtabptr_4sage_9structure_7element_CommutativeAlgebraElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":79
* pass
*
* cdef class EuclideanDomainElement(PrincipalIdealDomainElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_EuclideanDomainElement {
struct __pyx_vtabstruct_4sage_9structure_7element_PrincipalIdealDomainElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_EuclideanDomainElement *__pyx_vtabptr_4sage_9structure_7element_EuclideanDomainElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":49
* cdef RingElement coerce_to_base_ring(self, x)
*
* cdef class MonoidElement(Element): # <<<<<<<<<<<<<<
* cpdef MonoidElement _mul_(self, MonoidElement right)
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_MonoidElement {
struct __pyx_vtabstruct_4sage_9structure_7element_Element __pyx_base;
struct __pyx_obj_4sage_9structure_7element_MonoidElement *(*_mul_)(struct __pyx_obj_4sage_9structure_7element_MonoidElement *, struct __pyx_obj_4sage_9structure_7element_MonoidElement *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_MonoidElement *__pyx_vtabptr_4sage_9structure_7element_MonoidElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":52
* cpdef MonoidElement _mul_(self, MonoidElement right)
*
* cdef class MultiplicativeGroupElement(MonoidElement): # <<<<<<<<<<<<<<
* cpdef MultiplicativeGroupElement _div_(self, MultiplicativeGroupElement right)
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_MultiplicativeGroupElement {
struct __pyx_vtabstruct_4sage_9structure_7element_MonoidElement __pyx_base;
struct __pyx_obj_4sage_9structure_7element_MultiplicativeGroupElement *(*_div_)(struct __pyx_obj_4sage_9structure_7element_MultiplicativeGroupElement *, struct __pyx_obj_4sage_9structure_7element_MultiplicativeGroupElement *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_MultiplicativeGroupElement *__pyx_vtabptr_4sage_9structure_7element_MultiplicativeGroupElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":21
*
*
* cdef class PrincipalIdealDomain(IntegralDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_PrincipalIdealDomain {
struct __pyx_vtabstruct_4sage_5rings_4ring_IntegralDomain __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_PrincipalIdealDomain *__pyx_vtabptr_4sage_5rings_4ring_PrincipalIdealDomain;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":24
* pass
*
* cdef class EuclideanDomain(PrincipalIdealDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_EuclideanDomain {
struct __pyx_vtabstruct_4sage_5rings_4ring_PrincipalIdealDomain __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_EuclideanDomain *__pyx_vtabptr_4sage_5rings_4ring_EuclideanDomain;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":25
* pass
*
* cdef class Generators_none(Generators): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_none {
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_none *__pyx_vtabptr_4sage_9structure_10generators_Generators_none;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":40
* pass
*
* cdef class CommutativeAlgebra(CommutativeRing): # <<<<<<<<<<<<<<
* pass
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeAlgebra {
struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeRing __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeAlgebra *__pyx_vtabptr_4sage_5rings_4ring_CommutativeAlgebra;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":27
* pass
*
* cdef class Field(PrincipalIdealDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_Field {
struct __pyx_vtabstruct_4sage_5rings_4ring_PrincipalIdealDomain __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_Field *__pyx_vtabptr_4sage_5rings_4ring_Field;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":30
* pass
*
* cdef class FiniteField(Field): # <<<<<<<<<<<<<<
* cdef public object __multiplicative_generator
* cdef public object __polynomial_ring
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_FiniteField {
struct __pyx_vtabstruct_4sage_5rings_4ring_Field __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_FiniteField *__pyx_vtabptr_4sage_5rings_4ring_FiniteField;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":101
*
*
* cdef class Vector(ModuleElement): # <<<<<<<<<<<<<<
* cdef Py_ssize_t _degree
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_Vector {
struct __pyx_vtabstruct_4sage_9structure_7element_ModuleElement __pyx_base;
struct __pyx_obj_4sage_9structure_7element_Element *(*_dot_product_)(struct __pyx_obj_4sage_9structure_7element_Vector *, struct __pyx_obj_4sage_9structure_7element_Vector *, int __pyx_skip_dispatch);
struct __pyx_obj_4sage_9structure_7element_Vector *(*_pairwise_product_)(struct __pyx_obj_4sage_9structure_7element_Vector *, struct __pyx_obj_4sage_9structure_7element_Vector *, int __pyx_skip_dispatch);
int (*is_sparse_c)(struct __pyx_obj_4sage_9structure_7element_Vector *);
int (*is_dense_c)(struct __pyx_obj_4sage_9structure_7element_Vector *);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_Vector *__pyx_vtabptr_4sage_9structure_7element_Vector;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":16
* cpdef list(self)
*
* cdef class Generators_finite(Generators): # <<<<<<<<<<<<<<
* cdef Py_ssize_t _n
*
*/
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_finite {
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_finite *__pyx_vtabptr_4sage_9structure_10generators_Generators_finite;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":19
* cdef Py_ssize_t _n
*
* cdef class Generators_list(Generators_finite): # <<<<<<<<<<<<<<
* cdef _List
*
*/
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_list {
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_finite __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_list *__pyx_vtabptr_4sage_9structure_10generators_Generators_list;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":128
*
*
* cdef class CoercionModel: # <<<<<<<<<<<<<<
* cpdef canonical_coercion(self, x, y)
* cpdef bin_op(self, x, y, op)
*/
struct __pyx_vtabstruct_4sage_9structure_7element_CoercionModel {
PyObject *(*canonical_coercion)(struct __pyx_obj_4sage_9structure_7element_CoercionModel *, PyObject *, PyObject *, int __pyx_skip_dispatch);
PyObject *(*bin_op)(struct __pyx_obj_4sage_9structure_7element_CoercionModel *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_CoercionModel *__pyx_vtabptr_4sage_9structure_7element_CoercionModel;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial_ring_generic.pxd":6
* from sage.structure.parent cimport Parent
*
* cdef class MPolynomialRing_generic(sage.rings.ring.CommutativeRing): # <<<<<<<<<<<<<<
* cdef object __ngens
* cdef object __term_order
*/
struct __pyx_vtabstruct_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic {
struct __pyx_vtabstruct_4sage_5rings_4ring_CommutativeRing __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic *__pyx_vtabptr_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/polynomial/multi_polynomial_libsingular.pxd":13
* cpdef _homogenize(self, int var)
*
* cdef class MPolynomialRing_libsingular(MPolynomialRing_generic): # <<<<<<<<<<<<<<
* cdef object __singular
* cdef object __macaulay2
*/
struct __pyx_vtabstruct_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular {
struct __pyx_vtabstruct_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular *__pyx_vtabptr_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":37
* cdef public object _kwargs
*
* cdef class Algebra(Ring): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_Algebra {
struct __pyx_vtabstruct_4sage_5rings_4ring_Ring __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_Algebra *__pyx_vtabptr_4sage_5rings_4ring_Algebra;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":88
* pass
*
* cdef class AlgebraElement(RingElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_AlgebraElement {
struct __pyx_vtabstruct_4sage_9structure_7element_RingElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_AlgebraElement *__pyx_vtabptr_4sage_9structure_7element_AlgebraElement;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":113
*
*
* cdef class Matrix(AlgebraElement): # <<<<<<<<<<<<<<
* # All matrix classes must be written in Cython
* cdef Py_ssize_t _nrows
*/
struct __pyx_vtabstruct_4sage_9structure_7element_Matrix {
struct __pyx_vtabstruct_4sage_9structure_7element_AlgebraElement __pyx_base;
struct __pyx_obj_4sage_9structure_7element_Vector *(*_vector_times_matrix_)(struct __pyx_obj_4sage_9structure_7element_Matrix *, struct __pyx_obj_4sage_9structure_7element_Vector *);
struct __pyx_obj_4sage_9structure_7element_Vector *(*_matrix_times_vector_)(struct __pyx_obj_4sage_9structure_7element_Matrix *, struct __pyx_obj_4sage_9structure_7element_Vector *);
struct __pyx_obj_4sage_9structure_7element_Matrix *(*_matrix_times_matrix_)(struct __pyx_obj_4sage_9structure_7element_Matrix *, struct __pyx_obj_4sage_9structure_7element_Matrix *);
int (*is_sparse_c)(struct __pyx_obj_4sage_9structure_7element_Matrix *);
int (*is_dense_c)(struct __pyx_obj_4sage_9structure_7element_Matrix *);
};
static struct __pyx_vtabstruct_4sage_9structure_7element_Matrix *__pyx_vtabptr_4sage_9structure_7element_Matrix;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":94
* pass
*
* cdef class CommutativeAlgebra(AlgebraElement): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeAlgebra {
struct __pyx_vtabstruct_4sage_9structure_7element_AlgebraElement __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_7element_CommutativeAlgebra *__pyx_vtabptr_4sage_9structure_7element_CommutativeAlgebra;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/generators.pxd":22
* cdef _List
*
* cdef class Generators_naturals(Generators): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_naturals {
struct __pyx_vtabstruct_4sage_9structure_10generators_Generators __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_10generators_Generators_naturals *__pyx_vtabptr_4sage_9structure_10generators_Generators_naturals;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/rings/ring.pxd":17
* pass
*
* cdef class DedekindDomain(IntegralDomain): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4sage_5rings_4ring_DedekindDomain {
struct __pyx_vtabstruct_4sage_5rings_4ring_IntegralDomain __pyx_base;
};
static struct __pyx_vtabstruct_4sage_5rings_4ring_DedekindDomain *__pyx_vtabptr_4sage_5rings_4ring_DedekindDomain;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/parent_gens.pxd":25
* cdef public object _generator_orders
*
* cdef class ParentWithAdditiveAbelianGens(ParentWithGens): # <<<<<<<<<<<<<<
* cdef public object _generator_orders
*/
struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens {
struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithGens __pyx_base;
};
static struct __pyx_vtabstruct_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens *__pyx_vtabptr_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens;
#ifndef CYTHON_REFNANNY
#define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
typedef struct {
void (*INCREF)(void*, PyObject*, int);
void (*DECREF)(void*, PyObject*, int);
void (*GOTREF)(void*, PyObject*, int);
void (*GIVEREF)(void*, PyObject*, int);
void* (*SetupContext)(const char*, int, const char*);
void (*FinishContext)(void**);
} __Pyx_RefNannyAPIStruct;
static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
static __Pyx_RefNannyAPIStruct * __Pyx_RefNannyImportAPI(const char *modname) {
PyObject *m = NULL, *p = NULL;
void *r = NULL;
m = PyImport_ImportModule((char *)modname);
if (!m) goto end;
p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
if (!p) goto end;
r = PyLong_AsVoidPtr(p);
end:
Py_XDECREF(p);
Py_XDECREF(m);
return (__Pyx_RefNannyAPIStruct *)r;
}
#define __Pyx_RefNannySetupContext(name) void *__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#define __Pyx_RefNannyFinishContext() __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
#define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r);} } while(0)
#else
#define __Pyx_RefNannySetupContext(name)
#define __Pyx_RefNannyFinishContext()
#define __Pyx_INCREF(r) Py_INCREF(r)
#define __Pyx_DECREF(r) Py_DECREF(r)
#define __Pyx_GOTREF(r)
#define __Pyx_GIVEREF(r)
#define __Pyx_XDECREF(r) Py_XDECREF(r)
#endif /* CYTHON_REFNANNY */
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)
static INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
static INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
if (likely(PyList_CheckExact(L))) {
if (PyList_Append(L, x) < 0) return NULL;
Py_INCREF(Py_None);
return Py_None; /* this is just to have an accurate signature */
}
else {
PyObject *r, *m;
m = __Pyx_GetAttrString(L, "append");
if (!m) return NULL;
r = PyObject_CallFunctionObjArgs(m, x, NULL);
Py_DECREF(m);
return r;
}
}
static int __Pyx_Print(PyObject *, int); /*proto*/
#if PY_MAJOR_VERSION >= 3
static PyObject* __pyx_print = 0;
static PyObject* __pyx_print_kwargs = 0;
#endif
static int __Pyx_PrintOne(PyObject *o); /*proto*/
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
static INLINE char __Pyx_PyInt_AsChar(PyObject *);
static INLINE short __Pyx_PyInt_AsShort(PyObject *);
static INLINE int __Pyx_PyInt_AsInt(PyObject *);
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
static INLINE long __Pyx_PyInt_AsLong(PyObject *);
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
static void __Pyx_WriteUnraisable(const char *name); /*proto*/
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size); /*proto*/
static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /*proto*/
static void __Pyx_AddTraceback(const char *funcname); /*proto*/
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
/* Module declarations from sage.libs.gmp.types */
/* Module declarations from sage.libs.gmp.random */
/* Module declarations from sage.libs.gmp.mpz */
/* Module declarations from sage.libs.gmp.mpq */
/* Module declarations from sage.libs.gmp.all */
/* Module declarations from sage.libs.singular.decl */
/* Module declarations from sage.structure.sage_object */
static PyTypeObject *__pyx_ptype_4sage_9structure_11sage_object_SageObject = 0;
/* Module declarations from sage.structure.generators */
static PyTypeObject *__pyx_ptype_4sage_9structure_10generators_Generators = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_10generators_Generators_finite = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_10generators_Generators_list = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_10generators_Generators_naturals = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_10generators_Generators_none = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_10generators_Generators_lazy_all = 0;
/* Module declarations from sage.structure.category_object */
static PyTypeObject *__pyx_ptype_4sage_9structure_15category_object_CategoryObject = 0;
/* Module declarations from sage.structure */
/* Module declarations from sage.structure.parent */
static PyTypeObject *__pyx_ptype_4sage_9structure_6parent_Parent = 0;
/* Module declarations from sage.structure.parent_old */
static PyTypeObject *__pyx_ptype_4sage_9structure_10parent_old_Parent = 0;
/* Module declarations from sage.structure.parent_base */
static PyTypeObject *__pyx_ptype_4sage_9structure_11parent_base_ParentWithBase = 0;
/* Module declarations from sage.structure.parent_gens */
static PyTypeObject *__pyx_ptype_4sage_9structure_11parent_gens_ParentWithGens = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens = 0;
/* Module declarations from sage.rings.ring */
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_Ring = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_CommutativeRing = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_IntegralDomain = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_DedekindDomain = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_PrincipalIdealDomain = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_EuclideanDomain = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_Field = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_FiniteField = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_Algebra = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_4ring_CommutativeAlgebra = 0;
/* Module declarations from sage.rings */
/* Module declarations from sage */
/* Module declarations from sage.structure.element */
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_Element = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_ModuleElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_RingElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_MonoidElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_MultiplicativeGroupElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_AdditiveGroupElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_CommutativeRingElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_IntegralDomainElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_DedekindDomainElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_PrincipalIdealDomainElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_EuclideanDomainElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_FieldElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_FiniteFieldElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_AlgebraElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_CommutativeAlgebraElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_CommutativeAlgebra = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_InfinityElement = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_Vector = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_Matrix = 0;
static PyTypeObject *__pyx_ptype_4sage_9structure_7element_CoercionModel = 0;
static PyObject *(*__pyx_f_4sage_9structure_7element_generic_power_c)(PyObject *, PyObject *, PyObject *); /*proto*/
/* Module declarations from sage.rings.polynomial.multi_polynomial */
static PyTypeObject *__pyx_ptype_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial = 0;
/* Module declarations from sage.rings.polynomial.multi_polynomial_ring_generic */
static PyTypeObject *__pyx_ptype_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic = 0;
/* Module declarations from sage.rings.polynomial.multi_polynomial_libsingular */
static PyTypeObject *__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular = 0;
static PyTypeObject *__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular = 0;
static struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *(*__pyx_f_4sage_5rings_10polynomial_28multi_polynomial_libsingular_new_MP)(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular *, polyrec *); /*proto*/
/* Module declarations from sage.rings.polynomial.multi_polynomial_ideal_libsingular */
static PyObject *(*__pyx_f_4sage_5rings_10polynomial_34multi_polynomial_ideal_libsingular_singular_ideal_to_sage_sequence)(ip_sideal *, ip_sring *, PyObject *); /*proto*/
static ip_sideal *(*__pyx_f_4sage_5rings_10polynomial_34multi_polynomial_ideal_libsingular_sage_ideal_to_singular_ideal)(PyObject *); /*proto*/
/* Module declarations from sage_link */
#define __Pyx_MODULE_NAME "sage_link"
int __pyx_module_is_main_sage_link = 0;
/* Implementation of sage_link */
static PyObject *__pyx_builtin_NotImplementedError;
static char __pyx_k_1[] = "called python!";
static char __pyx_k_2[] = "only polynomials over the rationals are supported for now";
static char __pyx_k_3[] = "getNumberOfVariables";
static char __pyx_k_4[] = "ring is:";
static char __pyx_k_5[] = "converting polynomial";
static char __pyx_k_6[] = "converted polynomials to:";
static char __pyx_k_7[] = "Result from singular:";
static char __pyx_k_8[] = "loading module";
static char __pyx_k_9[] = "sage.rings.polynomial.polynomial_ring_constructor";
static char __pyx_k_10[] = "sage.rings.rational_field";
static char __pyx_k_11[] = "sage.libs.singular";
static char __pyx_k__x[] = "x";
static char __pyx_k__QQ[] = "QQ";
static char __pyx_k__ff[] = "ff";
static char __pyx_k__end[] = "end";
static char __pyx_k__inc[] = "inc";
static char __pyx_k__obj[] = "obj";
static char __pyx_k__libs[] = "libs";
static char __pyx_k__sage[] = "sage";
static char __pyx_k___poly[] = "_poly";
static char __pyx_k__begin[] = "begin";
static char __pyx_k__ideal[] = "ideal";
static char __pyx_k___parent[] = "_parent";
static char __pyx_k____main__[] = "__main__";
static char __pyx_k____test__[] = "__test__";
static char __pyx_k__getField[] = "getField";
static char __pyx_k__singular[] = "singular";
static char __pyx_k__minAssGTZ[] = "minAssGTZ";
static char __pyx_k__push_back[] = "push_back";
static char __pyx_k__isRationals[] = "isRationals";
static char __pyx_k__is_not_equal[] = "is_not_equal";
static char __pyx_k__primdec__lib[] = "primdec__lib";
static char __pyx_k__PolynomialRing[] = "PolynomialRing";
static char __pyx_k__NotImplementedError[] = "NotImplementedError";
static PyObject *__pyx_kp_s_1;
static PyObject *__pyx_n_s_10;
static PyObject *__pyx_n_s_11;
static PyObject *__pyx_kp_s_2;
static PyObject *__pyx_n_s_3;
static PyObject *__pyx_kp_s_4;
static PyObject *__pyx_kp_s_5;
static PyObject *__pyx_kp_s_6;
static PyObject *__pyx_kp_s_7;
static PyObject *__pyx_kp_s_8;
static PyObject *__pyx_n_s_9;
static PyObject *__pyx_n_s__NotImplementedError;
static PyObject *__pyx_n_s__PolynomialRing;
static PyObject *__pyx_n_s__QQ;
static PyObject *__pyx_n_s____main__;
static PyObject *__pyx_n_s____test__;
static PyObject *__pyx_n_s___parent;
static PyObject *__pyx_n_s___poly;
static PyObject *__pyx_n_s__begin;
static PyObject *__pyx_n_s__end;
static PyObject *__pyx_n_s__ff;
static PyObject *__pyx_n_s__getField;
static PyObject *__pyx_n_s__ideal;
static PyObject *__pyx_n_s__inc;
static PyObject *__pyx_n_s__isRationals;
static PyObject *__pyx_n_s__is_not_equal;
static PyObject *__pyx_n_s__libs;
static PyObject *__pyx_n_s__minAssGTZ;
static PyObject *__pyx_n_s__obj;
static PyObject *__pyx_n_s__primdec__lib;
static PyObject *__pyx_n_s__push_back;
static PyObject *__pyx_n_s__sage;
static PyObject *__pyx_n_s__singular;
static PyObject *__pyx_n_s__x;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":64
* minAssGTZ = sage.libs.singular.ff.primdec__lib.minAssGTZ
*
* cdef public void minimal_associated_primes(GFanPolynomialSetList* res, # <<<<<<<<<<<<<<
* GFanPolynomialRing* gf_ring,
* GFanPolynomialSet* ideal_generators):
*/
__PYX_EXTERN_C void minimal_associated_primes(std::list<PolynomialSet> *__pyx_v_res, PolynomialRing *__pyx_v_gf_ring, std::list<Polynomial> *__pyx_v_ideal_generators) {
PyObject *__pyx_v_R;
PyObject *__pyx_v_l;
std::list<Polynomial>::const_iterator __pyx_v_itr;
std::list<Polynomial>::const_iterator __pyx_v_gens_end;
struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *__pyx_v_c_sage_poly;
PyObject *__pyx_v_py_res;
PyObject *__pyx_v_i;
PyObject *__pyx_v_I;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
Py_ssize_t __pyx_t_6;
ip_sideal *__pyx_t_7;
__Pyx_RefNannySetupContext("minimal_associated_primes");
__pyx_v_R = Py_None; __Pyx_INCREF(Py_None);
__pyx_v_l = Py_None; __Pyx_INCREF(Py_None);
__pyx_v_c_sage_poly = ((struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *)Py_None); __Pyx_INCREF(Py_None);
__pyx_v_py_res = Py_None; __Pyx_INCREF(Py_None);
__pyx_v_i = Py_None; __Pyx_INCREF(Py_None);
__pyx_v_I = Py_None; __Pyx_INCREF(Py_None);
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":67
* GFanPolynomialRing* gf_ring,
* GFanPolynomialSet* ideal_generators):
* print "called python!" # <<<<<<<<<<<<<<
*
* if not gf_ring.getField().isRationals():
*/
if (__Pyx_PrintOne(((PyObject *)__pyx_kp_s_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":69
* print "called python!"
*
* if not gf_ring.getField().isRationals(): # <<<<<<<<<<<<<<
* raise NotImplementedError, "only polynomials over the rationals are supported for now"
*
*/
__pyx_t_1 = (!__pyx_v_gf_ring->getField().isRationals());
if (__pyx_t_1) {
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":70
*
* if not gf_ring.getField().isRationals():
* raise NotImplementedError, "only polynomials over the rationals are supported for now" # <<<<<<<<<<<<<<
*
* # create a Sage ring
*/
__Pyx_Raise(__pyx_builtin_NotImplementedError, ((PyObject *)__pyx_kp_s_2), 0);
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L3;
}
__pyx_L3:;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":73
*
* # create a Sage ring
* R = PolynomialRing(QQ, 'x', gf_ring[0].getNumberOfVariables()) # <<<<<<<<<<<<<<
* print "ring is:",R
* l = []
*/
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__PolynomialRing); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__QQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyInt_FromLong((__pyx_v_gf_ring[0]).getNumberOfVariables()); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
__Pyx_INCREF(((PyObject *)__pyx_n_s__x));
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_n_s__x));
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__x));
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
__pyx_t_3 = 0;
__pyx_t_4 = 0;
__pyx_t_4 = PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_v_R);
__pyx_v_R = __pyx_t_4;
__pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":74
* # create a Sage ring
* R = PolynomialRing(QQ, 'x', gf_ring[0].getNumberOfVariables())
* print "ring is:",R # <<<<<<<<<<<<<<
* l = []
*
*/
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_kp_s_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_4));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_4));
__Pyx_INCREF(__pyx_v_R);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_R);
__Pyx_GIVEREF(__pyx_v_R);
if (__Pyx_Print(__pyx_t_4, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":75
* R = PolynomialRing(QQ, 'x', gf_ring[0].getNumberOfVariables())
* print "ring is:",R
* l = [] # <<<<<<<<<<<<<<
*
* # convert the polynomials
*/
__pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
__Pyx_DECREF(__pyx_v_l);
__pyx_v_l = ((PyObject *)__pyx_t_4);
__pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":78
*
* # convert the polynomials
* cdef GFanPolynomialSetIter itr = ideal_generators[0].begin() # <<<<<<<<<<<<<<
* cdef GFanPolynomialSetIter gens_end = ideal_generators[0].end()
* cdef MPolynomial_libsingular c_sage_poly
*/
__pyx_v_itr = (__pyx_v_ideal_generators[0]).begin();
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":79
* # convert the polynomials
* cdef GFanPolynomialSetIter itr = ideal_generators[0].begin()
* cdef GFanPolynomialSetIter gens_end = ideal_generators[0].end() # <<<<<<<<<<<<<<
* cdef MPolynomial_libsingular c_sage_poly
* while itr.is_not_equal(gens_end):
*/
__pyx_v_gens_end = (__pyx_v_ideal_generators[0]).end();
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":81
* cdef GFanPolynomialSetIter gens_end = ideal_generators[0].end()
* cdef MPolynomial_libsingular c_sage_poly
* while itr.is_not_equal(gens_end): # <<<<<<<<<<<<<<
* print "converting polynomial"
* c_sage_poly = PY_NEW(MPolynomial_libsingular)
*/
while (1) {
__pyx_t_1 = __pyx_v_itr.operator!=(__pyx_v_gens_end);
if (!__pyx_t_1) break;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":82
* cdef MPolynomial_libsingular c_sage_poly
* while itr.is_not_equal(gens_end):
* print "converting polynomial" # <<<<<<<<<<<<<<
* c_sage_poly = PY_NEW(MPolynomial_libsingular)
* c_sage_poly._parent = <ParentWithBase>R
*/
if (__Pyx_PrintOne(((PyObject *)__pyx_kp_s_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":83
* while itr.is_not_equal(gens_end):
* print "converting polynomial"
* c_sage_poly = PY_NEW(MPolynomial_libsingular) # <<<<<<<<<<<<<<
* c_sage_poly._parent = <ParentWithBase>R
* c_sage_poly._poly = singularPolynomial(itr.obj()) # FIXME
*/
__pyx_t_4 = PY_NEW(((PyObject *)((PyObject*)__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular))); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(((PyObject *)__pyx_v_c_sage_poly));
__pyx_v_c_sage_poly = ((struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *)__pyx_t_4);
__pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":84
* print "converting polynomial"
* c_sage_poly = PY_NEW(MPolynomial_libsingular)
* c_sage_poly._parent = <ParentWithBase>R # <<<<<<<<<<<<<<
* c_sage_poly._poly = singularPolynomial(itr.obj()) # FIXME
* l.append(c_sage_poly)
*/
__Pyx_INCREF(((PyObject *)((struct __pyx_obj_4sage_9structure_11parent_base_ParentWithBase *)__pyx_v_R)));
__Pyx_GIVEREF(__pyx_v_R);
__Pyx_GOTREF(__pyx_v_c_sage_poly->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._parent);
__Pyx_DECREF(((PyObject *)__pyx_v_c_sage_poly->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._parent));
__pyx_v_c_sage_poly->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._parent = ((struct __pyx_obj_4sage_9structure_6parent_Parent *)__pyx_v_R);
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":85
* c_sage_poly = PY_NEW(MPolynomial_libsingular)
* c_sage_poly._parent = <ParentWithBase>R
* c_sage_poly._poly = singularPolynomial(itr.obj()) # FIXME # <<<<<<<<<<<<<<
* l.append(c_sage_poly)
* itr.inc()
*/
__pyx_v_c_sage_poly->_poly = singularPolynomial(__pyx_v_itr.operator*());
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":86
* c_sage_poly._parent = <ParentWithBase>R
* c_sage_poly._poly = singularPolynomial(itr.obj()) # FIXME
* l.append(c_sage_poly) # <<<<<<<<<<<<<<
* itr.inc()
*
*/
__pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_l, ((PyObject *)__pyx_v_c_sage_poly)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":87
* c_sage_poly._poly = singularPolynomial(itr.obj()) # FIXME
* l.append(c_sage_poly)
* itr.inc() # <<<<<<<<<<<<<<
*
*
*/
__pyx_v_itr.operator++();
}
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":90
*
*
* print "converted polynomials to:",l # <<<<<<<<<<<<<<
* py_res = minAssGTZ(R.ideal(l))
* print "Result from singular:",py_res
*/
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_kp_s_6));
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_6));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_6));
__Pyx_INCREF(__pyx_v_l);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_l);
__Pyx_GIVEREF(__pyx_v_l);
if (__Pyx_Print(__pyx_t_4, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":91
*
* print "converted polynomials to:",l
* py_res = minAssGTZ(R.ideal(l)) # <<<<<<<<<<<<<<
* print "Result from singular:",py_res
*
*/
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__minAssGTZ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = PyObject_GetAttr(__pyx_v_R, __pyx_n_s__ideal); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_l);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_l);
__Pyx_GIVEREF(__pyx_v_l);
__pyx_t_3 = PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
__pyx_t_3 = 0;
__pyx_t_3 = PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_v_py_res);
__pyx_v_py_res = __pyx_t_3;
__pyx_t_3 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":92
* print "converted polynomials to:",l
* py_res = minAssGTZ(R.ideal(l))
* print "Result from singular:",py_res # <<<<<<<<<<<<<<
*
* for i in py_res:
*/
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(((PyObject *)__pyx_kp_s_7));
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_7));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7));
__Pyx_INCREF(__pyx_v_py_res);
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_py_res);
__Pyx_GIVEREF(__pyx_v_py_res);
if (__Pyx_Print(__pyx_t_3, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":94
* print "Result from singular:",py_res
*
* for i in py_res: # <<<<<<<<<<<<<<
* I = R.ideal(i)
* res.push_back(fromSingularIdeal(gf_ring[0],
*/
if (PyList_CheckExact(__pyx_v_py_res) || PyTuple_CheckExact(__pyx_v_py_res)) {
__pyx_t_6 = 0; __pyx_t_3 = __pyx_v_py_res; __Pyx_INCREF(__pyx_t_3);
} else {
__pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_py_res); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
}
for (;;) {
if (likely(PyList_CheckExact(__pyx_t_3))) {
if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_3)) break;
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++;
} else if (likely(PyTuple_CheckExact(__pyx_t_3))) {
if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
__pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++;
} else {
__pyx_t_2 = PyIter_Next(__pyx_t_3);
if (!__pyx_t_2) {
if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
break;
}
__Pyx_GOTREF(__pyx_t_2);
}
__Pyx_DECREF(__pyx_v_i);
__pyx_v_i = __pyx_t_2;
__pyx_t_2 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":95
*
* for i in py_res:
* I = R.ideal(i) # <<<<<<<<<<<<<<
* res.push_back(fromSingularIdeal(gf_ring[0],
* sage_ideal_to_singular_ideal(I)))
*/
__pyx_t_2 = PyObject_GetAttr(__pyx_v_R, __pyx_n_s__ideal); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_v_i);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
__Pyx_GIVEREF(__pyx_v_i);
__pyx_t_5 = PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_v_I);
__pyx_v_I = __pyx_t_5;
__pyx_t_5 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":97
* I = R.ideal(i)
* res.push_back(fromSingularIdeal(gf_ring[0],
* sage_ideal_to_singular_ideal(I))) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_7 = __pyx_f_4sage_5rings_10polynomial_34multi_polynomial_ideal_libsingular_sage_ideal_to_singular_ideal(__pyx_v_I); if (unlikely(__pyx_t_7 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_res->push_back(fromSingularIdeal((__pyx_v_gf_ring[0]), __pyx_t_7));
}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_WriteUnraisable("sage_link.minimal_associated_primes");
__pyx_L0:;
__Pyx_DECREF(__pyx_v_R);
__Pyx_DECREF(__pyx_v_l);
__Pyx_DECREF((PyObject *)__pyx_v_c_sage_poly);
__Pyx_DECREF(__pyx_v_py_res);
__Pyx_DECREF(__pyx_v_i);
__Pyx_DECREF(__pyx_v_I);
__Pyx_RefNannyFinishContext();
}
static struct PyMethodDef __pyx_methods[] = {
{0, 0, 0, 0}
};
static void __pyx_init_filenames(void); /*proto*/
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
PyModuleDef_HEAD_INIT,
__Pyx_NAMESTR("sage_link"),
0, /* m_doc */
-1, /* m_size */
__pyx_methods /* m_methods */,
NULL, /* m_reload */
NULL, /* m_traverse */
NULL, /* m_clear */
NULL /* m_free */
};
#endif
static __Pyx_StringTabEntry __pyx_string_tab[] = {
{&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
{&__pyx_n_s_10, __pyx_k_10, sizeof(__pyx_k_10), 0, 0, 1, 1},
{&__pyx_n_s_11, __pyx_k_11, sizeof(__pyx_k_11), 0, 0, 1, 1},
{&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
{&__pyx_n_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 1},
{&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
{&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
{&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
{&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
{&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
{&__pyx_n_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 1},
{&__pyx_n_s__NotImplementedError, __pyx_k__NotImplementedError, sizeof(__pyx_k__NotImplementedError), 0, 0, 1, 1},
{&__pyx_n_s__PolynomialRing, __pyx_k__PolynomialRing, sizeof(__pyx_k__PolynomialRing), 0, 0, 1, 1},
{&__pyx_n_s__QQ, __pyx_k__QQ, sizeof(__pyx_k__QQ), 0, 0, 1, 1},
{&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
{&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
{&__pyx_n_s___parent, __pyx_k___parent, sizeof(__pyx_k___parent), 0, 0, 1, 1},
{&__pyx_n_s___poly, __pyx_k___poly, sizeof(__pyx_k___poly), 0, 0, 1, 1},
{&__pyx_n_s__begin, __pyx_k__begin, sizeof(__pyx_k__begin), 0, 0, 1, 1},
{&__pyx_n_s__end, __pyx_k__end, sizeof(__pyx_k__end), 0, 0, 1, 1},
{&__pyx_n_s__ff, __pyx_k__ff, sizeof(__pyx_k__ff), 0, 0, 1, 1},
{&__pyx_n_s__getField, __pyx_k__getField, sizeof(__pyx_k__getField), 0, 0, 1, 1},
{&__pyx_n_s__ideal, __pyx_k__ideal, sizeof(__pyx_k__ideal), 0, 0, 1, 1},
{&__pyx_n_s__inc, __pyx_k__inc, sizeof(__pyx_k__inc), 0, 0, 1, 1},
{&__pyx_n_s__isRationals, __pyx_k__isRationals, sizeof(__pyx_k__isRationals), 0, 0, 1, 1},
{&__pyx_n_s__is_not_equal, __pyx_k__is_not_equal, sizeof(__pyx_k__is_not_equal), 0, 0, 1, 1},
{&__pyx_n_s__libs, __pyx_k__libs, sizeof(__pyx_k__libs), 0, 0, 1, 1},
{&__pyx_n_s__minAssGTZ, __pyx_k__minAssGTZ, sizeof(__pyx_k__minAssGTZ), 0, 0, 1, 1},
{&__pyx_n_s__obj, __pyx_k__obj, sizeof(__pyx_k__obj), 0, 0, 1, 1},
{&__pyx_n_s__primdec__lib, __pyx_k__primdec__lib, sizeof(__pyx_k__primdec__lib), 0, 0, 1, 1},
{&__pyx_n_s__push_back, __pyx_k__push_back, sizeof(__pyx_k__push_back), 0, 0, 1, 1},
{&__pyx_n_s__sage, __pyx_k__sage, sizeof(__pyx_k__sage), 0, 0, 1, 1},
{&__pyx_n_s__singular, __pyx_k__singular, sizeof(__pyx_k__singular), 0, 0, 1, 1},
{&__pyx_n_s__x, __pyx_k__x, sizeof(__pyx_k__x), 0, 0, 1, 1},
{0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
__pyx_builtin_NotImplementedError = __Pyx_GetName(__pyx_b, __pyx_n_s__NotImplementedError); if (!__pyx_builtin_NotImplementedError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
return 0;
__pyx_L1_error:;
return -1;
}
static int __Pyx_InitGlobals(void) {
if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
return 0;
__pyx_L1_error:;
return -1;
}
#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initsage_link(void); /*proto*/
PyMODINIT_FUNC initsage_link(void)
#else
PyMODINIT_FUNC PyInit_sage_link(void); /*proto*/
PyMODINIT_FUNC PyInit_sage_link(void)
#endif
{
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
#if CYTHON_REFNANNY
void* __pyx_refnanny = NULL;
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
PyErr_Clear();
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
if (!__Pyx_RefNanny)
Py_FatalError("failed to import 'refnanny' module");
}
__pyx_refnanny = __Pyx_RefNanny->SetupContext("PyMODINIT_FUNC PyInit_sage_link(void)", __LINE__, __FILE__);
#endif
__pyx_init_filenames();
__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#if PY_MAJOR_VERSION < 3
__pyx_empty_bytes = PyString_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#else
__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#endif
/*--- Library function declarations ---*/
/*--- Threads initialization code ---*/
#if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
#ifdef WITH_THREAD /* Python build with threading support? */
PyEval_InitThreads();
#endif
#endif
/*--- Module creation code ---*/
#if PY_MAJOR_VERSION < 3
__pyx_m = Py_InitModule4(__Pyx_NAMESTR("sage_link"), __pyx_methods, 0, 0, PYTHON_API_VERSION);
#else
__pyx_m = PyModule_Create(&__pyx_moduledef);
#endif
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
#if PY_MAJOR_VERSION < 3
Py_INCREF(__pyx_m);
#endif
__pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
/*--- Initialize various global constants etc. ---*/
if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_module_is_main_sage_link) {
if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
}
/*--- Builtin init code ---*/
if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Global init code ---*/
/*--- Function export code ---*/
/*--- Type init code ---*/
/*--- Type import code ---*/
__pyx_ptype_4sage_9structure_11sage_object_SageObject = __Pyx_ImportType("sage.structure.sage_object", "SageObject", sizeof(struct __pyx_obj_4sage_9structure_11sage_object_SageObject)); if (unlikely(!__pyx_ptype_4sage_9structure_11sage_object_SageObject)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10generators_Generators = __Pyx_ImportType("sage.structure.generators", "Generators", sizeof(struct __pyx_obj_4sage_9structure_10generators_Generators)); if (unlikely(!__pyx_ptype_4sage_9structure_10generators_Generators)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10generators_Generators->tp_dict, &__pyx_vtabptr_4sage_9structure_10generators_Generators) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10generators_Generators_finite = __Pyx_ImportType("sage.structure.generators", "Generators_finite", sizeof(struct __pyx_obj_4sage_9structure_10generators_Generators_finite)); if (unlikely(!__pyx_ptype_4sage_9structure_10generators_Generators_finite)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10generators_Generators_finite->tp_dict, &__pyx_vtabptr_4sage_9structure_10generators_Generators_finite) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10generators_Generators_list = __Pyx_ImportType("sage.structure.generators", "Generators_list", sizeof(struct __pyx_obj_4sage_9structure_10generators_Generators_list)); if (unlikely(!__pyx_ptype_4sage_9structure_10generators_Generators_list)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10generators_Generators_list->tp_dict, &__pyx_vtabptr_4sage_9structure_10generators_Generators_list) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10generators_Generators_naturals = __Pyx_ImportType("sage.structure.generators", "Generators_naturals", sizeof(struct __pyx_obj_4sage_9structure_10generators_Generators_naturals)); if (unlikely(!__pyx_ptype_4sage_9structure_10generators_Generators_naturals)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10generators_Generators_naturals->tp_dict, &__pyx_vtabptr_4sage_9structure_10generators_Generators_naturals) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10generators_Generators_none = __Pyx_ImportType("sage.structure.generators", "Generators_none", sizeof(struct __pyx_obj_4sage_9structure_10generators_Generators_none)); if (unlikely(!__pyx_ptype_4sage_9structure_10generators_Generators_none)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10generators_Generators_none->tp_dict, &__pyx_vtabptr_4sage_9structure_10generators_Generators_none) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10generators_Generators_lazy_all = __Pyx_ImportType("sage.structure.generators", "Generators_lazy_all", sizeof(struct __pyx_obj_4sage_9structure_10generators_Generators_lazy_all)); if (unlikely(!__pyx_ptype_4sage_9structure_10generators_Generators_lazy_all)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10generators_Generators_lazy_all->tp_dict, &__pyx_vtabptr_4sage_9structure_10generators_Generators_lazy_all) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_15category_object_CategoryObject = __Pyx_ImportType("sage.structure.category_object", "CategoryObject", sizeof(struct __pyx_obj_4sage_9structure_15category_object_CategoryObject)); if (unlikely(!__pyx_ptype_4sage_9structure_15category_object_CategoryObject)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_6parent_Parent = __Pyx_ImportType("sage.structure.parent", "Parent", sizeof(struct __pyx_obj_4sage_9structure_6parent_Parent)); if (unlikely(!__pyx_ptype_4sage_9structure_6parent_Parent)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_6parent_Parent->tp_dict, &__pyx_vtabptr_4sage_9structure_6parent_Parent) < 0) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_10parent_old_Parent = __Pyx_ImportType("sage.structure.parent_old", "Parent", sizeof(struct __pyx_obj_4sage_9structure_10parent_old_Parent)); if (unlikely(!__pyx_ptype_4sage_9structure_10parent_old_Parent)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_10parent_old_Parent->tp_dict, &__pyx_vtabptr_4sage_9structure_10parent_old_Parent) < 0) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_11parent_base_ParentWithBase = __Pyx_ImportType("sage.structure.parent_base", "ParentWithBase", sizeof(struct __pyx_obj_4sage_9structure_11parent_base_ParentWithBase)); if (unlikely(!__pyx_ptype_4sage_9structure_11parent_base_ParentWithBase)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_11parent_base_ParentWithBase->tp_dict, &__pyx_vtabptr_4sage_9structure_11parent_base_ParentWithBase) < 0) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_11parent_gens_ParentWithGens = __Pyx_ImportType("sage.structure.parent_gens", "ParentWithGens", sizeof(struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithGens)); if (unlikely(!__pyx_ptype_4sage_9structure_11parent_gens_ParentWithGens)) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_11parent_gens_ParentWithGens->tp_dict, &__pyx_vtabptr_4sage_9structure_11parent_gens_ParentWithGens) < 0) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens = __Pyx_ImportType("sage.structure.parent_gens", "ParentWithMultiplicativeAbelianGens", sizeof(struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens)); if (unlikely(!__pyx_ptype_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens)) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens->tp_dict, &__pyx_vtabptr_4sage_9structure_11parent_gens_ParentWithMultiplicativeAbelianGens) < 0) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens = __Pyx_ImportType("sage.structure.parent_gens", "ParentWithAdditiveAbelianGens", sizeof(struct __pyx_obj_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens)); if (unlikely(!__pyx_ptype_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens)) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens->tp_dict, &__pyx_vtabptr_4sage_9structure_11parent_gens_ParentWithAdditiveAbelianGens) < 0) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_Ring = __Pyx_ImportType("sage.rings.ring", "Ring", sizeof(struct __pyx_obj_4sage_5rings_4ring_Ring)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_Ring)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_Ring->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_Ring) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_CommutativeRing = __Pyx_ImportType("sage.rings.ring", "CommutativeRing", sizeof(struct __pyx_obj_4sage_5rings_4ring_CommutativeRing)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_CommutativeRing)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_CommutativeRing->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_CommutativeRing) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_IntegralDomain = __Pyx_ImportType("sage.rings.ring", "IntegralDomain", sizeof(struct __pyx_obj_4sage_5rings_4ring_IntegralDomain)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_IntegralDomain)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_IntegralDomain->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_IntegralDomain) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_DedekindDomain = __Pyx_ImportType("sage.rings.ring", "DedekindDomain", sizeof(struct __pyx_obj_4sage_5rings_4ring_DedekindDomain)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_DedekindDomain)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_DedekindDomain->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_DedekindDomain) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_PrincipalIdealDomain = __Pyx_ImportType("sage.rings.ring", "PrincipalIdealDomain", sizeof(struct __pyx_obj_4sage_5rings_4ring_PrincipalIdealDomain)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_PrincipalIdealDomain)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_PrincipalIdealDomain->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_PrincipalIdealDomain) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_EuclideanDomain = __Pyx_ImportType("sage.rings.ring", "EuclideanDomain", sizeof(struct __pyx_obj_4sage_5rings_4ring_EuclideanDomain)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_EuclideanDomain)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_EuclideanDomain->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_EuclideanDomain) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_Field = __Pyx_ImportType("sage.rings.ring", "Field", sizeof(struct __pyx_obj_4sage_5rings_4ring_Field)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_Field)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_Field->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_Field) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_FiniteField = __Pyx_ImportType("sage.rings.ring", "FiniteField", sizeof(struct __pyx_obj_4sage_5rings_4ring_FiniteField)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_FiniteField)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_FiniteField->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_FiniteField) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_Algebra = __Pyx_ImportType("sage.rings.ring", "Algebra", sizeof(struct __pyx_obj_4sage_5rings_4ring_Algebra)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_Algebra)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_Algebra->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_Algebra) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_4ring_CommutativeAlgebra = __Pyx_ImportType("sage.rings.ring", "CommutativeAlgebra", sizeof(struct __pyx_obj_4sage_5rings_4ring_CommutativeAlgebra)); if (unlikely(!__pyx_ptype_4sage_5rings_4ring_CommutativeAlgebra)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_4ring_CommutativeAlgebra->tp_dict, &__pyx_vtabptr_4sage_5rings_4ring_CommutativeAlgebra) < 0) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_Element = __Pyx_ImportType("sage.structure.element", "Element", sizeof(struct __pyx_obj_4sage_9structure_7element_Element)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_Element)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_Element->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_Element) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_ModuleElement = __Pyx_ImportType("sage.structure.element", "ModuleElement", sizeof(struct __pyx_obj_4sage_9structure_7element_ModuleElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_ModuleElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_ModuleElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_ModuleElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_RingElement = __Pyx_ImportType("sage.structure.element", "RingElement", sizeof(struct __pyx_obj_4sage_9structure_7element_RingElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_RingElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_RingElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_RingElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_MonoidElement = __Pyx_ImportType("sage.structure.element", "MonoidElement", sizeof(struct __pyx_obj_4sage_9structure_7element_MonoidElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_MonoidElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_MonoidElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_MonoidElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_MultiplicativeGroupElement = __Pyx_ImportType("sage.structure.element", "MultiplicativeGroupElement", sizeof(struct __pyx_obj_4sage_9structure_7element_MultiplicativeGroupElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_MultiplicativeGroupElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_MultiplicativeGroupElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_MultiplicativeGroupElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_AdditiveGroupElement = __Pyx_ImportType("sage.structure.element", "AdditiveGroupElement", sizeof(struct __pyx_obj_4sage_9structure_7element_AdditiveGroupElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_AdditiveGroupElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_AdditiveGroupElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_AdditiveGroupElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_CommutativeRingElement = __Pyx_ImportType("sage.structure.element", "CommutativeRingElement", sizeof(struct __pyx_obj_4sage_9structure_7element_CommutativeRingElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_CommutativeRingElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_CommutativeRingElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_CommutativeRingElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_IntegralDomainElement = __Pyx_ImportType("sage.structure.element", "IntegralDomainElement", sizeof(struct __pyx_obj_4sage_9structure_7element_IntegralDomainElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_IntegralDomainElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_IntegralDomainElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_IntegralDomainElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_DedekindDomainElement = __Pyx_ImportType("sage.structure.element", "DedekindDomainElement", sizeof(struct __pyx_obj_4sage_9structure_7element_DedekindDomainElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_DedekindDomainElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_DedekindDomainElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_DedekindDomainElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_PrincipalIdealDomainElement = __Pyx_ImportType("sage.structure.element", "PrincipalIdealDomainElement", sizeof(struct __pyx_obj_4sage_9structure_7element_PrincipalIdealDomainElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_PrincipalIdealDomainElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_PrincipalIdealDomainElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_PrincipalIdealDomainElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_EuclideanDomainElement = __Pyx_ImportType("sage.structure.element", "EuclideanDomainElement", sizeof(struct __pyx_obj_4sage_9structure_7element_EuclideanDomainElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_EuclideanDomainElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_EuclideanDomainElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_EuclideanDomainElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_FieldElement = __Pyx_ImportType("sage.structure.element", "FieldElement", sizeof(struct __pyx_obj_4sage_9structure_7element_FieldElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_FieldElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_FieldElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_FieldElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_FiniteFieldElement = __Pyx_ImportType("sage.structure.element", "FiniteFieldElement", sizeof(struct __pyx_obj_4sage_9structure_7element_FiniteFieldElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_FiniteFieldElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_FiniteFieldElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_FiniteFieldElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_AlgebraElement = __Pyx_ImportType("sage.structure.element", "AlgebraElement", sizeof(struct __pyx_obj_4sage_9structure_7element_AlgebraElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_AlgebraElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_AlgebraElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_AlgebraElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_CommutativeAlgebraElement = __Pyx_ImportType("sage.structure.element", "CommutativeAlgebraElement", sizeof(struct __pyx_obj_4sage_9structure_7element_CommutativeAlgebraElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_CommutativeAlgebraElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_CommutativeAlgebraElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_CommutativeAlgebraElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_CommutativeAlgebra = __Pyx_ImportType("sage.structure.element", "CommutativeAlgebra", sizeof(struct __pyx_obj_4sage_9structure_7element_CommutativeAlgebra)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_CommutativeAlgebra)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_CommutativeAlgebra->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_CommutativeAlgebra) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_InfinityElement = __Pyx_ImportType("sage.structure.element", "InfinityElement", sizeof(struct __pyx_obj_4sage_9structure_7element_InfinityElement)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_InfinityElement)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_InfinityElement->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_InfinityElement) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_Vector = __Pyx_ImportType("sage.structure.element", "Vector", sizeof(struct __pyx_obj_4sage_9structure_7element_Vector)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_Vector)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_Vector->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_Vector) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_Matrix = __Pyx_ImportType("sage.structure.element", "Matrix", sizeof(struct __pyx_obj_4sage_9structure_7element_Matrix)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_Matrix)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_Matrix->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_Matrix) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_9structure_7element_CoercionModel = __Pyx_ImportType("sage.structure.element", "CoercionModel", sizeof(struct __pyx_obj_4sage_9structure_7element_CoercionModel)); if (unlikely(!__pyx_ptype_4sage_9structure_7element_CoercionModel)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_9structure_7element_CoercionModel->tp_dict, &__pyx_vtabptr_4sage_9structure_7element_CoercionModel) < 0) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial = __Pyx_ImportType("sage.rings.polynomial.multi_polynomial", "MPolynomial", sizeof(struct __pyx_obj_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial)); if (unlikely(!__pyx_ptype_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial->tp_dict, &__pyx_vtabptr_4sage_5rings_10polynomial_16multi_polynomial_MPolynomial) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic = __Pyx_ImportType("sage.rings.polynomial.multi_polynomial_ring_generic", "MPolynomialRing_generic", sizeof(struct __pyx_obj_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic)); if (unlikely(!__pyx_ptype_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic)) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic->tp_dict, &__pyx_vtabptr_4sage_5rings_10polynomial_29multi_polynomial_ring_generic_MPolynomialRing_generic) < 0) {__pyx_filename = __pyx_f[11]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular = __Pyx_ImportType("sage.rings.polynomial.multi_polynomial_libsingular", "MPolynomial_libsingular", sizeof(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular)); if (unlikely(!__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular)) {__pyx_filename = __pyx_f[12]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular->tp_dict, &__pyx_vtabptr_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular) < 0) {__pyx_filename = __pyx_f[12]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular = __Pyx_ImportType("sage.rings.polynomial.multi_polynomial_libsingular", "MPolynomialRing_libsingular", sizeof(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular)); if (unlikely(!__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular)) {__pyx_filename = __pyx_f[12]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular->tp_dict, &__pyx_vtabptr_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular) < 0) {__pyx_filename = __pyx_f[12]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Function import code ---*/
__pyx_t_1 = __Pyx_ImportModule("sage.structure.element"); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_1, "generic_power_c", (void (**)(void))&__pyx_f_4sage_9structure_7element_generic_power_c, "PyObject *(PyObject *, PyObject *, PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_2 = __Pyx_ImportModule("sage.rings.polynomial.multi_polynomial_libsingular"); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "new_MP", (void (**)(void))&__pyx_f_4sage_5rings_10polynomial_28multi_polynomial_libsingular_new_MP, "struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular *(struct __pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomialRing_libsingular *, polyrec *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = __Pyx_ImportModule("sage.rings.polynomial.multi_polynomial_ideal_libsingular"); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_3, "singular_ideal_to_sage_sequence", (void (**)(void))&__pyx_f_4sage_5rings_10polynomial_34multi_polynomial_ideal_libsingular_singular_ideal_to_sage_sequence, "PyObject *(ip_sideal *, ip_sring *, PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_3, "sage_ideal_to_singular_ideal", (void (**)(void))&__pyx_f_4sage_5rings_10polynomial_34multi_polynomial_ideal_libsingular_sage_ideal_to_singular_ideal, "ip_sideal *(PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_3); __pyx_t_3 = 0;
/*--- Execution code ---*/
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":3
* #import sage.all
*
* print "loading module" # <<<<<<<<<<<<<<
*
* from sage.rings.polynomial.multi_polynomial_libsingular cimport \
*/
if (__Pyx_PrintOne(((PyObject *)__pyx_kp_s_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/ext/stdsage.pxi":52
* # This is necessary on some platforms, e.g., Cygwin, so
* # do not delete it!
* init_csage() # <<<<<<<<<<<<<<
*
*
*/
init_csage();
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":14
* include "sage/ext/stdsage.pxi"
*
* print "loading module" # <<<<<<<<<<<<<<
*
* cdef extern from "polynomial.h":
*/
if (__Pyx_PrintOne(((PyObject *)__pyx_kp_s_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":58
*
*
* from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing # <<<<<<<<<<<<<<
* from sage.rings.rational_field import QQ
*
*/
__pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
__Pyx_INCREF(((PyObject *)__pyx_n_s__PolynomialRing));
PyList_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_n_s__PolynomialRing));
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__PolynomialRing));
__pyx_t_5 = __Pyx_Import(((PyObject *)__pyx_n_s_9), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__PolynomialRing); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PolynomialRing, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":59
*
* from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
* from sage.rings.rational_field import QQ # <<<<<<<<<<<<<<
*
* import sage.libs.singular
*/
__pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
__Pyx_INCREF(((PyObject *)__pyx_n_s__QQ));
PyList_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_n_s__QQ));
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__QQ));
__pyx_t_4 = __Pyx_Import(((PyObject *)__pyx_n_s_10), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
__pyx_t_5 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__QQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__QQ, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":61
* from sage.rings.rational_field import QQ
*
* import sage.libs.singular # <<<<<<<<<<<<<<
* minAssGTZ = sage.libs.singular.ff.primdec__lib.minAssGTZ
*
*/
__pyx_t_4 = __Pyx_Import(((PyObject *)__pyx_n_s_11), 0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__sage, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":62
*
* import sage.libs.singular
* minAssGTZ = sage.libs.singular.ff.primdec__lib.minAssGTZ # <<<<<<<<<<<<<<
*
* cdef public void minimal_associated_primes(GFanPolynomialSetList* res,
*/
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__sage); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__libs); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__singular); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__ff); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__primdec__lib); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__minAssGTZ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__minAssGTZ, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/Users/anders/eclipse-workspace/gfan/sage_link.pyx":1
* #import sage.all # <<<<<<<<<<<<<<
*
* print "loading module"
*/
__pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
/* "/Users/anders/math/software/sage-4.3.2/devel/sage/sage/structure/element.pxd":2
*
* # It is important to keep this line here, basically to trick Pyrex. # <<<<<<<<<<<<<<
* # If you remove this line then other modules that cimport element
* # from other directories will fail.
*/
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5);
if (__pyx_m) {
__Pyx_AddTraceback("init sage_link");
Py_DECREF(__pyx_m); __pyx_m = 0;
} else if (!PyErr_Occurred()) {
PyErr_SetString(PyExc_ImportError, "init sage_link");
}
__pyx_L0:;
__Pyx_RefNannyFinishContext();
#if PY_MAJOR_VERSION < 3
return;
#else
return __pyx_m;
#endif
}
static const char *__pyx_filenames[] = {
"sage_link.pyx",
"sage_object.pxd",
"generators.pxd",
"category_object.pxd",
"parent.pxd",
"parent_old.pxd",
"parent_base.pxd",
"parent_gens.pxd",
"ring.pxd",
"element.pxd",
"multi_polynomial.pxd",
"multi_polynomial_ring_generic.pxd",
"multi_polynomial_libsingular.pxd",
};
/* Runtime support code */
static void __pyx_init_filenames(void) {
__pyx_f = __pyx_filenames;
}
static INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
if (unlikely(!type)) {
PyErr_Format(PyExc_SystemError, "Missing type object");
return 0;
}
if (likely(PyObject_TypeCheck(obj, type)))
return 1;
PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
Py_TYPE(obj)->tp_name, type->tp_name);
return 0;
}
#if PY_MAJOR_VERSION < 3
static PyObject *__Pyx_GetStdout(void) {
PyObject *f = PySys_GetObject((char *)"stdout");
if (!f) {
PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
}
return f;
}
static int __Pyx_Print(PyObject *arg_tuple, int newline) {
PyObject *f;
PyObject* v;
int i;
if (!(f = __Pyx_GetStdout()))
return -1;
for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
if (PyFile_SoftSpace(f, 1)) {
if (PyFile_WriteString(" ", f) < 0)
return -1;
}
v = PyTuple_GET_ITEM(arg_tuple, i);
if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
return -1;
if (PyString_Check(v)) {
char *s = PyString_AsString(v);
Py_ssize_t len = PyString_Size(v);
if (len > 0 &&
isspace(Py_CHARMASK(s[len-1])) &&
s[len-1] != ' ')
PyFile_SoftSpace(f, 0);
}
}
if (newline) {
if (PyFile_WriteString("\n", f) < 0)
return -1;
PyFile_SoftSpace(f, 0);
}
return 0;
}
#else /* Python 3 has a print function */
static int __Pyx_Print(PyObject *arg_tuple, int newline) {
PyObject* kwargs = 0;
PyObject* result = 0;
PyObject* end_string;
if (!__pyx_print) {
__pyx_print = __Pyx_GetAttrString(__pyx_b, "print");
if (!__pyx_print)
return -1;
}
if (!newline) {
if (!__pyx_print_kwargs) {
__pyx_print_kwargs = PyDict_New();
if (!__pyx_print_kwargs)
return -1;
end_string = PyUnicode_FromStringAndSize(" ", 1);
if (!end_string)
return -1;
if (PyDict_SetItemString(__pyx_print_kwargs, "end", end_string) < 0) {
Py_DECREF(end_string);
return -1;
}
Py_DECREF(end_string);
}
kwargs = __pyx_print_kwargs;
}
result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
if (!result)
return -1;
Py_DECREF(result);
return 0;
}
#endif
#if PY_MAJOR_VERSION < 3
static int __Pyx_PrintOne(PyObject *o) {
PyObject *f;
if (!(f = __Pyx_GetStdout()))
return -1;
if (PyFile_SoftSpace(f, 0)) {
if (PyFile_WriteString(" ", f) < 0)
return -1;
}
if (PyFile_WriteObject(o, f, Py_PRINT_RAW) < 0)
return -1;
if (PyFile_WriteString("\n", f) < 0)
return -1;
return 0;
/* the line below is just to avoid compiler
* compiler warnings about unused functions */
return __Pyx_Print(NULL, 0);
}
#else /* Python 3 has a print function */
static int __Pyx_PrintOne(PyObject *o) {
int res;
PyObject* arg_tuple = PyTuple_New(1);
if (unlikely(!arg_tuple))
return -1;
Py_INCREF(o);
PyTuple_SET_ITEM(arg_tuple, 0, o);
res = __Pyx_Print(arg_tuple, 1);
Py_DECREF(arg_tuple);
return res;
}
#endif
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
PyObject *__import__ = 0;
PyObject *empty_list = 0;
PyObject *module = 0;
PyObject *global_dict = 0;
PyObject *empty_dict = 0;
PyObject *list;
__import__ = __Pyx_GetAttrString(__pyx_b, "__import__");
if (!__import__)
goto bad;
if (from_list)
list = from_list;
else {
empty_list = PyList_New(0);
if (!empty_list)
goto bad;
list = empty_list;
}
global_dict = PyModule_GetDict(__pyx_m);
if (!global_dict)
goto bad;
empty_dict = PyDict_New();
if (!empty_dict)
goto bad;
module = PyObject_CallFunctionObjArgs(__import__,
name, global_dict, empty_dict, list, NULL);
bad:
Py_XDECREF(empty_list);
Py_XDECREF(__import__);
Py_XDECREF(empty_dict);
return module;
}
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
PyObject *result;
result = PyObject_GetAttr(dict, name);
if (!result)
PyErr_SetObject(PyExc_NameError, name);
return result;
}
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
PyObject *tmp_type, *tmp_value, *tmp_tb;
PyThreadState *tstate = PyThreadState_GET();
tmp_type = tstate->curexc_type;
tmp_value = tstate->curexc_value;
tmp_tb = tstate->curexc_traceback;
tstate->curexc_type = type;
tstate->curexc_value = value;
tstate->curexc_traceback = tb;
Py_XDECREF(tmp_type);
Py_XDECREF(tmp_value);
Py_XDECREF(tmp_tb);
}
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
PyThreadState *tstate = PyThreadState_GET();
*type = tstate->curexc_type;
*value = tstate->curexc_value;
*tb = tstate->curexc_traceback;
tstate->curexc_type = 0;
tstate->curexc_value = 0;
tstate->curexc_traceback = 0;
}
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
Py_XINCREF(type);
Py_XINCREF(value);
Py_XINCREF(tb);
/* First, check the traceback argument, replacing None with NULL. */
if (tb == Py_None) {
Py_DECREF(tb);
tb = 0;
}
else if (tb != NULL && !PyTraceBack_Check(tb)) {
PyErr_SetString(PyExc_TypeError,
"raise: arg 3 must be a traceback or None");
goto raise_error;
}
/* Next, replace a missing value with None */
if (value == NULL) {
value = Py_None;
Py_INCREF(value);
}
#if PY_VERSION_HEX < 0x02050000
if (!PyClass_Check(type))
#else
if (!PyType_Check(type))
#endif
{
/* Raising an instance. The value should be a dummy. */
if (value != Py_None) {
PyErr_SetString(PyExc_TypeError,
"instance exception may not have a separate value");
goto raise_error;
}
/* Normalize to raise <class>, <instance> */
Py_DECREF(value);
value = type;
#if PY_VERSION_HEX < 0x02050000
if (PyInstance_Check(type)) {
type = (PyObject*) ((PyInstanceObject*)type)->in_class;
Py_INCREF(type);
}
else {
type = 0;
PyErr_SetString(PyExc_TypeError,
"raise: exception must be an old-style class or instance");
goto raise_error;
}
#else
type = (PyObject*) Py_TYPE(type);
Py_INCREF(type);
if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
PyErr_SetString(PyExc_TypeError,
"raise: exception class must be a subclass of BaseException");
goto raise_error;
}
#endif
}
__Pyx_ErrRestore(type, value, tb);
return;
raise_error:
Py_XDECREF(value);
Py_XDECREF(type);
Py_XDECREF(tb);
return;
}
#else /* Python 3+ */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
if (tb == Py_None) {
tb = 0;
} else if (tb && !PyTraceBack_Check(tb)) {
PyErr_SetString(PyExc_TypeError,
"raise: arg 3 must be a traceback or None");
goto bad;
}
if (value == Py_None)
value = 0;
if (PyExceptionInstance_Check(type)) {
if (value) {
PyErr_SetString(PyExc_TypeError,
"instance exception may not have a separate value");
goto bad;
}
value = type;
type = (PyObject*) Py_TYPE(value);
} else if (!PyExceptionClass_Check(type)) {
PyErr_SetString(PyExc_TypeError,
"raise: exception class must be a subclass of BaseException");
goto bad;
}
PyErr_SetObject(type, value);
if (tb) {
PyThreadState *tstate = PyThreadState_GET();
PyObject* tmp_tb = tstate->curexc_traceback;
if (tb != tmp_tb) {
Py_INCREF(tb);
tstate->curexc_traceback = tb;
Py_XDECREF(tmp_tb);
}
}
bad:
return;
}
#endif
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(unsigned char) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(unsigned char)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to unsigned char" :
"value too large to convert to unsigned char");
}
return (unsigned char)-1;
}
return (unsigned char)val;
}
return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
}
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(unsigned short) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(unsigned short)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to unsigned short" :
"value too large to convert to unsigned short");
}
return (unsigned short)-1;
}
return (unsigned short)val;
}
return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
}
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(unsigned int) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(unsigned int)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to unsigned int" :
"value too large to convert to unsigned int");
}
return (unsigned int)-1;
}
return (unsigned int)val;
}
return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
}
static INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
const char neg_one = (char)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(char) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(char)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to char" :
"value too large to convert to char");
}
return (char)-1;
}
return (char)val;
}
return (char)__Pyx_PyInt_AsLong(x);
}
static INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
const short neg_one = (short)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(short) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(short)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to short" :
"value too large to convert to short");
}
return (short)-1;
}
return (short)val;
}
return (short)__Pyx_PyInt_AsLong(x);
}
static INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
const int neg_one = (int)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(int) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(int)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to int" :
"value too large to convert to int");
}
return (int)-1;
}
return (int)val;
}
return (int)__Pyx_PyInt_AsLong(x);
}
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
const signed char neg_one = (signed char)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(signed char) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(signed char)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to signed char" :
"value too large to convert to signed char");
}
return (signed char)-1;
}
return (signed char)val;
}
return (signed char)__Pyx_PyInt_AsSignedLong(x);
}
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
const signed short neg_one = (signed short)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(signed short) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(signed short)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to signed short" :
"value too large to convert to signed short");
}
return (signed short)-1;
}
return (signed short)val;
}
return (signed short)__Pyx_PyInt_AsSignedLong(x);
}
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
const signed int neg_one = (signed int)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(signed int) < sizeof(long)) {
long val = __Pyx_PyInt_AsLong(x);
if (unlikely(val != (long)(signed int)val)) {
if (!unlikely(val == -1 && PyErr_Occurred())) {
PyErr_SetString(PyExc_OverflowError,
(is_unsigned && unlikely(val < 0)) ?
"can't convert negative value to signed int" :
"value too large to convert to signed int");
}
return (signed int)-1;
}
return (signed int)val;
}
return (signed int)__Pyx_PyInt_AsSignedLong(x);
}
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to unsigned long");
return (unsigned long)-1;
}
return (unsigned long)val;
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
if (unlikely(Py_SIZE(x) < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to unsigned long");
return (unsigned long)-1;
}
return PyLong_AsUnsignedLong(x);
} else {
return PyLong_AsLong(x);
}
} else {
unsigned long val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (unsigned long)-1;
val = __Pyx_PyInt_AsUnsignedLong(tmp);
Py_DECREF(tmp);
return val;
}
}
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to unsigned PY_LONG_LONG");
return (unsigned PY_LONG_LONG)-1;
}
return (unsigned PY_LONG_LONG)val;
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
if (unlikely(Py_SIZE(x) < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to unsigned PY_LONG_LONG");
return (unsigned PY_LONG_LONG)-1;
}
return PyLong_AsUnsignedLongLong(x);
} else {
return PyLong_AsLongLong(x);
}
} else {
unsigned PY_LONG_LONG val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (unsigned PY_LONG_LONG)-1;
val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
Py_DECREF(tmp);
return val;
}
}
static INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
const long neg_one = (long)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to long");
return (long)-1;
}
return (long)val;
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
if (unlikely(Py_SIZE(x) < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to long");
return (long)-1;
}
return PyLong_AsUnsignedLong(x);
} else {
return PyLong_AsLong(x);
}
} else {
long val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (long)-1;
val = __Pyx_PyInt_AsLong(tmp);
Py_DECREF(tmp);
return val;
}
}
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to PY_LONG_LONG");
return (PY_LONG_LONG)-1;
}
return (PY_LONG_LONG)val;
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
if (unlikely(Py_SIZE(x) < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to PY_LONG_LONG");
return (PY_LONG_LONG)-1;
}
return PyLong_AsUnsignedLongLong(x);
} else {
return PyLong_AsLongLong(x);
}
} else {
PY_LONG_LONG val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (PY_LONG_LONG)-1;
val = __Pyx_PyInt_AsLongLong(tmp);
Py_DECREF(tmp);
return val;
}
}
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
const signed long neg_one = (signed long)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to signed long");
return (signed long)-1;
}
return (signed long)val;
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
if (unlikely(Py_SIZE(x) < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to signed long");
return (signed long)-1;
}
return PyLong_AsUnsignedLong(x);
} else {
return PyLong_AsLong(x);
}
} else {
signed long val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (signed long)-1;
val = __Pyx_PyInt_AsSignedLong(tmp);
Py_DECREF(tmp);
return val;
}
}
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
if (likely(PyInt_Check(x))) {
long val = PyInt_AS_LONG(x);
if (is_unsigned && unlikely(val < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to signed PY_LONG_LONG");
return (signed PY_LONG_LONG)-1;
}
return (signed PY_LONG_LONG)val;
} else
#endif
if (likely(PyLong_Check(x))) {
if (is_unsigned) {
if (unlikely(Py_SIZE(x) < 0)) {
PyErr_SetString(PyExc_OverflowError,
"can't convert negative value to signed PY_LONG_LONG");
return (signed PY_LONG_LONG)-1;
}
return PyLong_AsUnsignedLongLong(x);
} else {
return PyLong_AsLongLong(x);
}
} else {
signed PY_LONG_LONG val;
PyObject *tmp = __Pyx_PyNumber_Int(x);
if (!tmp) return (signed PY_LONG_LONG)-1;
val = __Pyx_PyInt_AsSignedLongLong(tmp);
Py_DECREF(tmp);
return val;
}
}
static void __Pyx_WriteUnraisable(const char *name) {
PyObject *old_exc, *old_val, *old_tb;
PyObject *ctx;
__Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
#if PY_MAJOR_VERSION < 3
ctx = PyString_FromString(name);
#else
ctx = PyUnicode_FromString(name);
#endif
__Pyx_ErrRestore(old_exc, old_val, old_tb);
if (!ctx) {
PyErr_WriteUnraisable(Py_None);
} else {
PyErr_WriteUnraisable(ctx);
Py_DECREF(ctx);
}
}
#ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
long size)
{
PyObject *py_module = 0;
PyObject *result = 0;
PyObject *py_name = 0;
py_module = __Pyx_ImportModule(module_name);
if (!py_module)
goto bad;
#if PY_MAJOR_VERSION < 3
py_name = PyString_FromString(class_name);
#else
py_name = PyUnicode_FromString(class_name);
#endif
if (!py_name)
goto bad;
result = PyObject_GetAttr(py_module, py_name);
Py_DECREF(py_name);
py_name = 0;
Py_DECREF(py_module);
py_module = 0;
if (!result)
goto bad;
if (!PyType_Check(result)) {
PyErr_Format(PyExc_TypeError,
"%s.%s is not a type object",
module_name, class_name);
goto bad;
}
if (((PyTypeObject *)result)->tp_basicsize != size) {
PyErr_Format(PyExc_ValueError,
"%s.%s does not appear to be the correct type object",
module_name, class_name);
goto bad;
}
return (PyTypeObject *)result;
bad:
Py_XDECREF(py_module);
Py_XDECREF(result);
return 0;
}
#endif
#ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(const char *name) {
PyObject *py_name = 0;
PyObject *py_module = 0;
#if PY_MAJOR_VERSION < 3
py_name = PyString_FromString(name);
#else
py_name = PyUnicode_FromString(name);
#endif
if (!py_name)
goto bad;
py_module = PyImport_Import(py_name);
Py_DECREF(py_name);
return py_module;
bad:
Py_XDECREF(py_name);
return 0;
}
#endif
static int __Pyx_GetVtable(PyObject *dict, void *vtabptr) {
PyObject *ob = PyMapping_GetItemString(dict, (char *)"__pyx_vtable__");
if (!ob)
goto bad;
#if PY_VERSION_HEX < 0x03010000
*(void **)vtabptr = PyCObject_AsVoidPtr(ob);
#else
*(void **)vtabptr = PyCapsule_GetPointer(ob, 0);
#endif
if (!*(void **)vtabptr)
goto bad;
Py_DECREF(ob);
return 0;
bad:
Py_XDECREF(ob);
return -1;
}
#ifndef __PYX_HAVE_RT_ImportFunction
#define __PYX_HAVE_RT_ImportFunction
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
union {
void (*fp)(void);
void *p;
} tmp;
#if PY_VERSION_HEX < 0x03010000
const char *desc, *s1, *s2;
#endif
d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
if (!d)
goto bad;
cobj = PyDict_GetItemString(d, funcname);
if (!cobj) {
PyErr_Format(PyExc_ImportError,
"%s does not export expected C function %s",
PyModule_GetName(module), funcname);
goto bad;
}
#if PY_VERSION_HEX < 0x03010000
desc = (const char *)PyCObject_GetDesc(cobj);
if (!desc)
goto bad;
s1 = desc; s2 = sig;
while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
if (*s1 != *s2) {
PyErr_Format(PyExc_TypeError,
"C function %s.%s has wrong signature (expected %s, got %s)",
PyModule_GetName(module), funcname, sig, desc);
goto bad;
}
tmp.p = PyCObject_AsVoidPtr(cobj);
#else
if (!PyCapsule_IsValid(cobj, sig)) {
PyErr_Format(PyExc_TypeError,
"C function %s.%s has wrong signature (expected %s, got %s)",
PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
goto bad;
}
tmp.p = PyCapsule_GetPointer(cobj, sig);
#endif
*f = tmp.fp;
if (!(*f))
goto bad;
Py_DECREF(d);
return 0;
bad:
Py_XDECREF(d);
return -1;
}
#endif
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static void __Pyx_AddTraceback(const char *funcname) {
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
PyObject *py_globals = 0;
PyCodeObject *py_code = 0;
PyFrameObject *py_frame = 0;
#if PY_MAJOR_VERSION < 3
py_srcfile = PyString_FromString(__pyx_filename);
#else
py_srcfile = PyUnicode_FromString(__pyx_filename);
#endif
if (!py_srcfile) goto bad;
if (__pyx_clineno) {
#if PY_MAJOR_VERSION < 3
py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
#else
py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
#endif
}
else {
#if PY_MAJOR_VERSION < 3
py_funcname = PyString_FromString(funcname);
#else
py_funcname = PyUnicode_FromString(funcname);
#endif
}
if (!py_funcname) goto bad;
py_globals = PyModule_GetDict(__pyx_m);
if (!py_globals) goto bad;
py_code = PyCode_New(
0, /*int argcount,*/
#if PY_MAJOR_VERSION >= 3
0, /*int kwonlyargcount,*/
#endif
0, /*int nlocals,*/
0, /*int stacksize,*/
0, /*int flags,*/
__pyx_empty_bytes, /*PyObject *code,*/
__pyx_empty_tuple, /*PyObject *consts,*/
__pyx_empty_tuple, /*PyObject *names,*/
__pyx_empty_tuple, /*PyObject *varnames,*/
__pyx_empty_tuple, /*PyObject *freevars,*/
__pyx_empty_tuple, /*PyObject *cellvars,*/
py_srcfile, /*PyObject *filename,*/
py_funcname, /*PyObject *name,*/
__pyx_lineno, /*int firstlineno,*/
__pyx_empty_bytes /*PyObject *lnotab*/
);
if (!py_code) goto bad;
py_frame = PyFrame_New(
PyThreadState_GET(), /*PyThreadState *tstate,*/
py_code, /*PyCodeObject *code,*/
py_globals, /*PyObject *globals,*/
0 /*PyObject *locals*/
);
if (!py_frame) goto bad;
py_frame->f_lineno = __pyx_lineno;
PyTraceBack_Here(py_frame);
bad:
Py_XDECREF(py_srcfile);
Py_XDECREF(py_funcname);
Py_XDECREF(py_code);
Py_XDECREF(py_frame);
}
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
while (t->p) {
#if PY_MAJOR_VERSION < 3
if (t->is_unicode) {
*t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
} else if (t->intern) {
*t->p = PyString_InternFromString(t->s);
} else {
*t->p = PyString_FromStringAndSize(t->s, t->n - 1);
}
#else /* Python 3+ has unicode identifiers */
if (t->is_unicode | t->is_str) {
if (t->intern) {
*t->p = PyUnicode_InternFromString(t->s);
} else if (t->encoding) {
*t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
} else {
*t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
}
} else {
*t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
}
#endif
if (!*t->p)
return -1;
++t;
}
return 0;
}
/* Type Conversion Functions */
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
if (x == Py_True) return 1;
else if ((x == Py_False) | (x == Py_None)) return 0;
else return PyObject_IsTrue(x);
}
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
PyNumberMethods *m;
const char *name = NULL;
PyObject *res = NULL;
#if PY_VERSION_HEX < 0x03000000
if (PyInt_Check(x) || PyLong_Check(x))
#else
if (PyLong_Check(x))
#endif
return Py_INCREF(x), x;
m = Py_TYPE(x)->tp_as_number;
#if PY_VERSION_HEX < 0x03000000
if (m && m->nb_int) {
name = "int";
res = PyNumber_Int(x);
}
else if (m && m->nb_long) {
name = "long";
res = PyNumber_Long(x);
}
#else
if (m && m->nb_int) {
name = "int";
res = PyNumber_Long(x);
}
#endif
if (res) {
#if PY_VERSION_HEX < 0x03000000
if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
if (!PyLong_Check(res)) {
#endif
PyErr_Format(PyExc_TypeError,
"__%s__ returned non-%s (type %.200s)",
name, name, Py_TYPE(res)->tp_name);
Py_DECREF(res);
return NULL;
}
}
else if (!PyErr_Occurred()) {
PyErr_SetString(PyExc_TypeError,
"an integer is required");
}
return res;
}
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
Py_ssize_t ival;
PyObject* x = PyNumber_Index(b);
if (!x) return -1;
ival = PyInt_AsSsize_t(x);
Py_DECREF(x);
return ival;
}
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
#if PY_VERSION_HEX < 0x02050000
if (ival <= LONG_MAX)
return PyInt_FromLong((long)ival);
else {
unsigned char *bytes = (unsigned char *) &ival;
int one = 1; int little = (int)*(unsigned char*)&one;
return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
}
#else
return PyInt_FromSize_t(ival);
#endif
}
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
return (size_t)-1;
} else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
PyErr_SetString(PyExc_OverflowError,
"value too large to convert to size_t");
return (size_t)-1;
}
return (size_t)val;
}
#endif /* Py_PYTHON_H */
|