Changeset 6b29f27 in git


Ignore:
Timestamp:
Apr 5, 2019, 2:00:25 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
bc2ffb3ac3495d903c975099bc679854cfae5a29
Parents:
341943a4fa8f80ec9516fd6e7f02d9a5aee90f47
Message:
add: print module weight in hilbert series
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/combinatorics/hilb.cc

    r341943 r6b29f27  
    13961396}
    13971397
    1398 static void hPrintHilb(intvec *hseries)
     1398static void hPrintHilb(intvec *hseries,intvec *modul_weight)
    13991399{
    14001400  int  i, j, l, k;
     
    14031403  l = hseries->length()-1;
    14041404  k = (*hseries)[l];
     1405  if ((modul_weight!=NULL)&&(modul_weight->compare(0)!=0))
     1406  {
     1407    char *s=modul_weight->ivString(1,0,1);
     1408    Print("module weights:%s\n",s);
     1409    omFree(s);
     1410  }
    14051411  for (i = 0; i < l; i++)
    14061412  {
     
    14231429  if (errorreported) return;
    14241430
    1425   hPrintHilb(hseries1);
     1431  hPrintHilb(hseries1,modulweight);
    14261432
    14271433  const int l = hseries1->length()-1;
     
    14331439
    14341440  PrintLn();
    1435   hPrintHilb(hseries2);
     1441  hPrintHilb(hseries2,modulweight);
    14361442  if ((l == 1) &&(mu == 0))
    14371443    scPrintDegree(rVar(currRing)+1, 0);
Note: See TracChangeset for help on using the changeset viewer.