Changeset 8b368ff in git
- Timestamp:
- May 31, 2013, 6:43:08 PM (10 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 2407cbbcbfa07c81823bde4407a9c0ae473b292c
- Parents:
- b2fb0c0e98297019d6f0ef81e8a72354659ad7dd
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-31 18:43:08+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-05-07 04:41:44+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/schreyer.lib
rb2fb0c r8b368ff 495 495 } 496 496 497 if( typeof( attrib(basering, " SYZCHECK") ) == "int" )498 { 499 int @ SYZCHECK = attrib(basering, "SYZCHECK");500 } else 501 { 502 int @ SYZCHECK = @DEBUG;497 if( typeof( attrib(basering, "KERCHECK") ) == "int" ) 498 { 499 int @KERCHECK = attrib(basering, "KERCHECK"); 500 } else 501 { 502 int @KERCHECK = @DEBUG; // TODO: @SYZCHECK:( 503 503 } 504 504 … … 511 511 def @N = M; Sort_c_ds(@N); 512 512 513 if( @ SYZCHECK )513 if( @KERCHECK ) 514 514 { 515 515 def iv = sort(lead(M), "c,ds", 1)[2]; // ,1 => reversed! // TODO: not needed? … … 518 518 519 519 // 0^th syz. property 520 if( size(module( matrix(@N) - matrix(@M) )) > 0 ) 520 if(size(@N) * size(@M) > 0 ) 521 { 522 if( size(module( matrix(module(matrix(@N))) - matrix(module(matrix(@M))) )) > 0 ) 521 523 { 522 524 "@M:"; @M; … … 526 528 module( matrix(@N) - matrix(@M) ); 527 529 528 "ERROR: wrong sorting in 'MySort': @N != @M!!!";530 "ERROR: MySort: wrong sorting in 'MySort': @N != @M!!!"; 529 531 $ 530 532 } 533 } 531 534 } 532 535 … … 563 566 @SYZCHECK = attrib(SSinit, "SYZCHECK"); 564 567 } 565 568 569 int @KERCHECK = @SYZCHECK; 570 571 if( typeof( attrib(SSinit, "KERCHECK") ) == "int" ) 572 { 573 @KERCHECK = attrib(SSinit, "KERCHECK"); 574 } 575 566 576 if( @DEBUG ) 567 577 { … … 743 753 attrib(S, "DEBUG", @DEBUG); 744 754 attrib(S, "SYZCHECK", @SYZCHECK); 755 attrib(S, "KERCHECK", @KERCHECK); 745 756 746 757 if( @DEBUG ) … … 805 816 int @SYZCHECK = @DEBUG; 806 817 } 807 818 819 if( typeof( attrib(basering, "KERCHECK") ) == "int" ) 820 { 821 int @KERCHECK = attrib(basering, "KERCHECK"); 822 } else 823 { 824 int @KERCHECK = @SYZCHECK; 825 } 826 808 827 if( @DEBUG ) 809 828 { … … 814 833 module SS = ComputeLeadingSyzygyTerms(L); 815 834 816 if( @ SYZCHECK )835 if( @KERCHECK ) 817 836 { 818 837 int i, j, r; … … 860 879 S = MySort(simplify(S, 2)); 861 880 881 if( size(S) * size(SS) > 0 ) 882 { 862 883 if( size(module(matrix(S) - matrix(SS))) > 0 ) 863 884 { 864 "ERROR: S != SS ";885 "ERROR: SSComputeLeadingSyzygyTerms: S != SS "; 865 886 866 887 "basering: "; … … 877 898 $ 878 899 } 900 } 879 901 } 880 902 … … 887 909 } 888 910 889 attrib(SS, "isSB", 1); 890 911 if( size(SS) > 0 ) 912 { 913 attrib(SS, "isSB", 1); 914 } 915 891 916 return (SS); 892 917 } … … 909 934 { 910 935 int @SYZCHECK = @DEBUG; 936 } 937 938 if( typeof( attrib(basering, "KERCHECK") ) == "int" ) 939 { 940 int @KERCHECK = attrib(basering, "KERCHECK"); 941 } else 942 { 943 int @KERCHECK = @SYZCHECK; 911 944 } 912 945 … … 942 975 } 943 976 } 977 } 978 979 if( @KERCHECK ) 980 { 944 981 945 982 int i, j, r; … … 1008 1045 if( size(module(matrix(S) - matrix(SS))) > 0 ) 1009 1046 { 1010 "ERROR: S != SS ";1047 "ERROR: SSCompute2LeadingSyzygyTerms: S != SS "; 1011 1048 1012 1049 "basering: "; … … 1291 1328 int @SYZCHECK = @DEBUG; 1292 1329 } 1293 1330 1294 1331 1295 1332 if( @DEBUG ) … … 1652 1689 def S = SSres(M, 0); setring S; S; 1653 1690 MRES; 1691 print(_); 1654 1692 RES; 1693 1694 kill S; setring r; kill M; 1695 1696 kill r; 1697 1698 ring R = 0, (w, x, y, z), dp; 1699 ideal M = w^2 - x*z, w*x - y*z, x^2 - w*y, x*y - z^2, y^2 - w*z; 1700 1701 def S = SSres(M, 0); setring S; S; 1655 1702 ""; 1656 1703 LRES; 1657 1704 ""; 1658 TRES; 1659 1660 kill S; setring r; kill M; 1661 1662 kill r; 1663 1664 ring R = 0, (w, x, y, z), dp; 1665 ideal M = w^2 - x*z, w*x - y*z, x^2 - w*y, x*y - z^2, y^2 - w*z; 1666 1667 def S = SSres(M, 0); setring S; S; 1705 TRES; 1706 ""; 1668 1707 MRES; 1708 print(_); 1669 1709 RES; 1670 "";1671 LRES;1672 "";1673 TRES;1674 1710 } 1675 1711 … … 1925 1961 { 1926 1962 attrib(SSinit, "SYZCHECK", 1); // TODO: only for now!! 1963 attrib(SSinit, "KERCHECK", 0); // TODO: only for now!! 1927 1964 1928 1965 ring r; r; ideal M = maxideal(1); M; … … 1966 2003 1967 2004 // TODO: betti!!! 1968
Note: See TracChangeset
for help on using the changeset viewer.