Changeset 4ead7f in git
- Timestamp:
- Feb 25, 2010, 8:50:26 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 2b22df12b5c5cb19e00dce3e4ffe2323361f8170
- Parents:
- 710469e33da8554c00e953aa1f5227161c8a1286
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/sheafcoh.lib
r710469 r4ead7f 600 600 ring r=0,x(1..5),dp; 601 601 module M=0; 602 def A=sheafCohBGG( 0,-9,4);602 def A=sheafCohBGG(M,-9,4); 603 603 // cohomology of cotangential bundle on P^3: 604 604 //------------------------------------------- … … 615 615 static proc showResult( def R, int l, int h ) 616 616 { 617 int PL = printlevel - voice + 2;617 int PL = 1; // printlevel - voice + 2; 618 618 // int PL = printlevel + 1; 619 619 … … 867 867 }; 868 868 869 printlevel = printlevel + 1;869 // printlevel = printlevel + 1; 870 870 Betti = showResult(Betti, l, h ); // Show usual form of cohomology table 871 printlevel = printlevel - 1;871 // printlevel = printlevel - 1; 872 872 873 873 if(PL > 0) … … 902 902 echo = 2; 903 903 int pl = printlevel; 904 int l,h, t; 905 906 //------------------------------------------- 904 907 // cohomology of structure sheaf on P^4: 905 908 //------------------------------------------- 906 909 ring r=32001,x(1..5),dp; 907 module M= getStructureSheaf(); 908 909 int t = timer; 910 def A=sheafCohBGG(0,-9,4); 911 timer - t; 912 913 printlevel = voice; A=sheafCohBGG2(0,-9,4); printlevel = pl; 914 910 911 module M= getStructureSheaf(); // OO_P^4 912 913 l = -12; h = 12; // range of twists: l..h 914 915 printlevel = 0; 916 ////////////////////////////////////////////// 917 t = timer; 918 919 def A = sheafCoh(M, l, h); // global Ext method: 920 921 "Time: ", timer - t; 922 ////////////////////////////////////////////// 923 t = timer; 924 925 A = sheafCohBGG(M, l, h); // BGG method (without optimization): 926 927 "Time: ", timer - t; 928 ////////////////////////////////////////////// 929 t = timer; 930 931 A = sheafCohBGG2(M, l, h); // BGG method (with optimization) 932 933 "Time: ", timer - t; 934 ////////////////////////////////////////////// 935 printlevel = pl; 936 937 kill A, r; 938 939 //------------------------------------------- 915 940 // cohomology of cotangential bundle on P^3: 916 941 //------------------------------------------- … … 919 944 module M = getCotangentialBundle(); 920 945 921 int t = timer; 922 def B=sheafCohBGG(M,-8,4); 923 timer - t; 924 925 printlevel = voice; B=sheafCohBGG2(M,-8,4); printlevel = pl; 946 l = -12; h = 11; // range of twists: l..h 947 948 949 ////////////////////////////////////////////// 950 printlevel = 0; 951 t = timer; 952 953 def B = sheafCoh(M, l, h); // global Ext method: 954 955 "Time: ", timer - t; 956 ////////////////////////////////////////////// 957 t = timer; 958 959 B = sheafCohBGG(M, l, h); // BGG method (without optimization): 960 961 "Time: ", timer - t; 962 ////////////////////////////////////////////// 963 t = timer; 964 965 B = sheafCohBGG2(M, l, h); // BGG method (with optimization) 966 967 "Time: ", timer - t; 968 ////////////////////////////////////////////// 969 printlevel = pl; 926 970 } 927 971 … … 1182 1226 intvec v = 0; 1183 1227 attrib(M,"isHomog",v); 1184 homog(M);1228 // homog(M); 1185 1229 1186 1230 attrib(M, "isCoker", 1); 1187 1231 1188 attrib(M);1232 // attrib(M); 1189 1233 return(M); 1190 1234 }; … … 1206 1250 export M; 1207 1251 1208 // keepring @@@@QQ; // This is a bad idea... :( 1252 // keepring @@@@QQ; // This is a bad idea... :(? 1209 1253 return (@@@@QQ); 1210 1254 } … … 1278 1322 resolution T1=mres(maxideal(1),3); 1279 1323 module M=T1[3]; 1280 attrib(M,"isHomog");1281 homog(M);1282 attrib(M, "isCoker", 1); 1283 attrib(M);1324 // attrib(M,"isHomog"); 1325 // homog(M); 1326 attrib(M, "isCoker", 1); 1327 // attrib(M); 1284 1328 return (M); 1285 1329 };
Note: See TracChangeset
for help on using the changeset viewer.