Changeset 4ec0f0 in git
- Timestamp:
- Sep 15, 2014, 9:14:09 PM (9 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- eb55f8a52fe5ee84d19c269132981a40defce0da
- Parents:
- f7d39bddf5a7034fe148956d21d0cbe5d13c0021
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-09-15 21:14:09+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-09-23 20:08:14+02:00
- Location:
- kernel/combinatorics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/combinatorics/hdegree.cc
rf7d39b r4ec0f0 72 72 int scDimInt(ideal S, ideal Q) 73 73 { 74 id_Test(S, currRing); 75 id_Test(Q, currRing); 74 76 int mc; 75 77 hexist = hInit(S, Q, &hNexist, currRing); … … 209 211 intvec * scIndIntvec(ideal S, ideal Q) 210 212 { 213 id_Test(S, currRing); 214 id_Test(Q, currRing); 211 215 intvec *Set=new intvec((currRing->N)); 212 216 int mc,i; … … 692 696 static void hDegree(ideal S, ideal Q) 693 697 { 698 id_Test(S, currRing); 699 id_Test(Q, currRing); 694 700 int di; 695 701 int mc; … … 790 796 int scMultInt(ideal S, ideal Q) 791 797 { 798 id_Test(S, currRing); 799 id_Test(Q, currRing); 792 800 hDegree(S, Q); 793 801 return hMu; … … 810 818 void scDegree(ideal S, intvec *modulweight, ideal Q) 811 819 { 820 id_Test(S, currRing); 821 id_Test(Q, currRing); 812 822 int co, mu, l; 813 823 intvec *hseries2; … … 830 840 static void hDegree0(ideal S, ideal Q, const ring r=currRing) 831 841 { 842 id_Test(S, r); 843 id_Test(Q, r); 844 832 845 int mc; 833 hexist = hInit(S, Q, &hNexist, currRing);846 hexist = hInit(S, Q, &hNexist, r); 834 847 if (!hNexist) 835 848 { … … 898 911 int scMult0Int(ideal S, ideal Q, const ring r) 899 912 { 913 id_Test(S, r); 914 id_Test(Q, r); 900 915 hDegree0(S, Q); 901 916 return hMu; … … 981 996 void scComputeHC(ideal S, ideal Q, int ak, poly &hEdge, ring tailRing) 982 997 { 998 id_TestTail(S, currRing, tailRing); 999 id_TestTail(Q, currRing, tailRing); 983 1000 int i; 984 1001 int k = ak; … … 1309 1326 q = p; 1310 1327 } while (q!=NULL); 1328 1329 id_Test(res, currRing); 1311 1330 return res; 1312 1331 } … … 1314 1333 ideal scKBase(int deg, ideal s, ideal Q, intvec * mv) 1315 1334 { 1335 id_Test(Q, currRing); 1316 1336 int i, di; 1317 1337 poly p; … … 1376 1396 ideal res=scIdKbase(); 1377 1397 res->rank=s->rank; 1398 id_Test(res, currRing); 1378 1399 return res; 1379 1400 } … … 1383 1404 void scComputeHCw(ideal ss, ideal Q, int ak, poly &hEdge, ring tailRing) 1384 1405 { 1406 id_TestTail(ss, currRing, tailRing); 1407 id_TestTail(Q, currRing, tailRing); 1408 1385 1409 int i, di; 1386 1410 poly p; -
kernel/combinatorics/hilb.cc
rf7d39b r4ec0f0 1138 1138 int /*notstc*/, intvec *wdegree, ideal Q, ring tailRing) 1139 1139 { 1140 id_TestTail(S, currRing, tailRing); 1141 1140 1142 intvec *work, *hseries1=NULL; 1141 1143 int mc; … … 1370 1372 *caller 1371 1373 */ 1372 void hLookSeries(ideal S, intvec *modulweight, ideal Q) 1373 { 1374 int co, mu, l; 1375 intvec *hseries2; 1376 intvec *hseries1 = hFirstSeries(S, modulweight, Q); 1374 void hLookSeries(ideal S, intvec *modulweight, ideal Q, intvec *wdegree, ring tailRing) 1375 { 1376 id_TestTail(S, currRing, tailRing); 1377 1378 intvec *hseries1 = hFirstSeries(S, modulweight, Q, wdegree, tailRing); 1379 1377 1380 hPrintHilb(hseries1); 1378 l = hseries1->length()-1; 1379 if (l > 1) 1380 hseries2 = hSecondSeries(hseries1); 1381 else 1382 hseries2 = hseries1; 1381 1382 const int l = hseries1->length()-1; 1383 1384 intvec *hseries2 = (l > 1) ? hSecondSeries(hseries1) : hseries1; 1385 1386 int co, mu; 1383 1387 hDegreeSeries(hseries1, hseries2, &co, &mu); 1388 1384 1389 PrintLn(); 1385 1390 hPrintHilb(hseries2); 1386 1391 if ((l == 1) &&(mu == 0)) 1387 scPrintDegree( (currRing->N)+1, 0);1392 scPrintDegree(rVar(currRing)+1, 0); 1388 1393 else 1389 1394 scPrintDegree(co, mu); -
kernel/combinatorics/hilb.h
rf7d39b r4ec0f0 16 16 extern ring currRing; 17 17 18 intvec * hHstdSeries(ideal S, intvec *modulweight, intvec *wdegree, 19 ideal Q=NULL, ring tailRing = currRing); 18 intvec * hHstdSeries(ideal S, intvec *modulweight, intvec *wdegree, ideal Q=NULL, ring tailRing = currRing); 20 19 intvec * hFirstSeries(ideal S, intvec *modulweight, ideal Q=NULL, intvec *wdegree=NULL, ring tailRing = currRing); 20 21 21 intvec * hSecondSeries(intvec *hseries1); 22 22 23 void hLookSeries(ideal S, intvec *modulweight, ideal Q=NULL );23 void hLookSeries(ideal S, intvec *modulweight, ideal Q=NULL, intvec *wdegree=NULL, ring tailRing = currRing); 24 24 25 25 #endif -
kernel/combinatorics/hutil.cc
rf7d39b r4ec0f0 34 34 scfmon hInit(ideal S, ideal Q, int *Nexist, ring tailRing) 35 35 { 36 if (tailRing != currRing) 36 id_TestTail(S, currRing, tailRing); 37 id_TestTail(Q, currRing, tailRing); 38 39 // if (tailRing != currRing) 37 40 hisModule = id_RankFreeModule(S, currRing, tailRing); 38 else39 hisModule = id_RankFreeModule(S, currRing);41 // else 42 // hisModule = id_RankFreeModule(S, currRing); 40 43 41 44 if (hisModule < 0)
Note: See TracChangeset
for help on using the changeset viewer.