Changeset 4ead7f in git


Ignore:
Timestamp:
Feb 25, 2010, 8:50:26 PM (13 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
2b22df12b5c5cb19e00dce3e4ffe2323361f8170
Parents:
710469e33da8554c00e953aa1f5227161c8a1286
Message:
cleanup, better examples/tests for sheafCohBGG2

git-svn-id: file:///usr/local/Singular/svn/trunk@12565 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/sheafcoh.lib

    r710469 r4ead7f  
    600600   ring r=0,x(1..5),dp;
    601601   module M=0;
    602    def A=sheafCohBGG(0,-9,4);
     602   def A=sheafCohBGG(M,-9,4);
    603603   // cohomology of cotangential bundle on P^3:
    604604   //-------------------------------------------
     
    615615static proc showResult( def R, int l, int h )
    616616{
    617   int PL = printlevel - voice + 2;
     617  int PL = 1; // printlevel - voice + 2;
    618618// int PL = printlevel + 1;
    619619
     
    867867  };
    868868
    869   printlevel = printlevel + 1;
     869//  printlevel = printlevel + 1;
    870870  Betti = showResult(Betti, l, h ); // Show usual form of cohomology table
    871   printlevel = printlevel - 1;
     871//  printlevel = printlevel - 1;
    872872
    873873  if(PL > 0)
     
    902902   echo = 2;
    903903   int pl = printlevel;
     904   int l,h, t;
     905   
     906   //-------------------------------------------
    904907   // cohomology of structure sheaf on P^4:
    905908   //-------------------------------------------
    906909   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   //-------------------------------------------
    915940   // cohomology of cotangential bundle on P^3:
    916941   //-------------------------------------------
     
    919944   module M = getCotangentialBundle();
    920945
    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;
    926970}
    927971
     
    11821226    intvec v = 0;
    11831227    attrib(M,"isHomog",v);
    1184     homog(M);
     1228//    homog(M);
    11851229
    11861230    attrib(M, "isCoker", 1);
    11871231
    1188     attrib(M);
     1232//     attrib(M);
    11891233    return(M);
    11901234  };
     
    12061250          export M;
    12071251
    1208 //          keepring @@@@QQ; // This is a bad idea... :(
     1252//          keepring @@@@QQ; // This is a bad idea... :(?
    12091253          return (@@@@QQ);
    12101254        }
     
    12781322  resolution T1=mres(maxideal(1),3);
    12791323  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);
    12841328  return (M);
    12851329};
Note: See TracChangeset for help on using the changeset viewer.