Changeset 4ec0f0 in git for kernel


Ignore:
Timestamp:
Sep 15, 2014, 9:14:09 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
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
Message:
Instumentation with id_Test* for inputs + more general hLookSeries
Location:
kernel/combinatorics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/combinatorics/hdegree.cc

    rf7d39b r4ec0f0  
    7272int  scDimInt(ideal S, ideal Q)
    7373{
     74  id_Test(S, currRing);
     75  id_Test(Q, currRing);
    7476  int  mc;
    7577  hexist = hInit(S, Q, &hNexist, currRing);
     
    209211intvec * scIndIntvec(ideal S, ideal Q)
    210212{
     213  id_Test(S, currRing);
     214  id_Test(Q, currRing);
    211215  intvec *Set=new intvec((currRing->N));
    212216  int  mc,i;
     
    692696static void hDegree(ideal S, ideal Q)
    693697{
     698  id_Test(S, currRing);
     699  id_Test(Q, currRing);
    694700  int  di;
    695701  int  mc;
     
    790796int  scMultInt(ideal S, ideal Q)
    791797{
     798  id_Test(S, currRing);
     799  id_Test(Q, currRing);
    792800  hDegree(S, Q);
    793801  return hMu;
     
    810818void scDegree(ideal S, intvec *modulweight, ideal Q)
    811819{
     820  id_Test(S, currRing);
     821  id_Test(Q, currRing);
    812822  int co, mu, l;
    813823  intvec *hseries2;
     
    830840static void hDegree0(ideal S, ideal Q, const ring r=currRing)
    831841{
     842  id_Test(S, r); 
     843  id_Test(Q, r);
     844   
    832845  int  mc;
    833   hexist = hInit(S, Q, &hNexist, currRing);
     846  hexist = hInit(S, Q, &hNexist, r);
    834847  if (!hNexist)
    835848  {
     
    898911int  scMult0Int(ideal S, ideal Q, const ring r)
    899912{
     913  id_Test(S, r); 
     914  id_Test(Q, r); 
    900915  hDegree0(S, Q);
    901916  return hMu;
     
    981996void scComputeHC(ideal S, ideal Q, int ak, poly &hEdge, ring tailRing)
    982997{
     998  id_TestTail(S, currRing, tailRing); 
     999  id_TestTail(Q, currRing, tailRing); 
    9831000  int  i;
    9841001  int  k = ak;
     
    13091326    q = p;
    13101327  } while (q!=NULL);
     1328   
     1329  id_Test(res, currRing);   
    13111330  return res;
    13121331}
     
    13141333ideal scKBase(int deg, ideal s, ideal Q, intvec * mv)
    13151334{
     1335  id_Test(Q, currRing); 
    13161336  int  i, di;
    13171337  poly p;
     
    13761396    ideal res=scIdKbase();
    13771397    res->rank=s->rank;
     1398    id_Test(res, currRing);
    13781399    return res;
    13791400  }
     
    13831404void scComputeHCw(ideal ss, ideal Q, int ak, poly &hEdge, ring tailRing)
    13841405{
     1406  id_TestTail(ss, currRing, tailRing); 
     1407  id_TestTail(Q, currRing, tailRing);
     1408   
    13851409  int  i, di;
    13861410  poly p;
  • kernel/combinatorics/hilb.cc

    rf7d39b r4ec0f0  
    11381138                int /*notstc*/, intvec *wdegree, ideal Q, ring tailRing)
    11391139{
     1140  id_TestTail(S, currRing, tailRing);
     1141   
    11401142  intvec *work, *hseries1=NULL;
    11411143  int  mc;
     
    13701372*caller
    13711373*/
    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);
     1374void 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   
    13771380  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;
    13831387  hDegreeSeries(hseries1, hseries2, &co, &mu);
     1388   
    13841389  PrintLn();
    13851390  hPrintHilb(hseries2);
    13861391  if ((l == 1) &&(mu == 0))
    1387     scPrintDegree((currRing->N)+1, 0);
     1392    scPrintDegree(rVar(currRing)+1, 0);
    13881393  else
    13891394    scPrintDegree(co, mu);
  • kernel/combinatorics/hilb.h

    rf7d39b r4ec0f0  
    1616extern ring currRing;
    1717
    18 intvec * hHstdSeries(ideal S, intvec *modulweight, intvec *wdegree,
    19                      ideal Q=NULL, ring tailRing = currRing);
     18intvec * hHstdSeries(ideal S, intvec *modulweight, intvec *wdegree, ideal Q=NULL, ring tailRing = currRing);
    2019intvec * hFirstSeries(ideal S, intvec *modulweight, ideal Q=NULL, intvec *wdegree=NULL, ring tailRing = currRing);
     20
    2121intvec * hSecondSeries(intvec *hseries1);
    2222
    23 void hLookSeries(ideal S, intvec *modulweight, ideal Q=NULL);
     23void hLookSeries(ideal S, intvec *modulweight, ideal Q=NULL, intvec *wdegree=NULL, ring tailRing = currRing);
    2424
    2525#endif
  • kernel/combinatorics/hutil.cc

    rf7d39b r4ec0f0  
    3434scfmon hInit(ideal S, ideal Q, int *Nexist, ring tailRing)
    3535{
    36   if (tailRing != currRing)
     36  id_TestTail(S, currRing, tailRing); 
     37  id_TestTail(Q, currRing, tailRing); 
     38
     39//   if (tailRing != currRing)
    3740    hisModule = id_RankFreeModule(S, currRing, tailRing);
    38   else
    39     hisModule = id_RankFreeModule(S, currRing);
     41//  else
     42//    hisModule = id_RankFreeModule(S, currRing);
    4043
    4144  if (hisModule < 0)
Note: See TracChangeset for help on using the changeset viewer.