Changeset 5563ba in git


Ignore:
Timestamp:
Jan 15, 2009, 6:03:19 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
610069760287bbabd869a3157cc5fffd486ca6a3
Parents:
4820e6031f295812abcdff3a062f9f1b9334cbec
Message:
*hannes: scKbase with module weights


git-svn-id: file:///usr/local/Singular/svn/trunk@11317 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/hdegree.cc

    r4820e6 r5563ba  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hdegree.cc,v 1.10 2007-11-09 12:50:44 Singular Exp $ */
     4/* $Id: hdegree.cc,v 1.11 2009-01-15 17:03:19 Singular Exp $ */
    55/*
    66*  ABSTRACT -  dimension, multiplicity, HC, kbase
     
    12961296}
    12971297
    1298 ideal scKBase(int deg, ideal s, ideal Q)
     1298ideal scKBase(int deg, ideal s, ideal Q, intvec * mv)
    12991299{
    13001300  int  i, di;
     
    13331333      *act = i;
    13341334      hComp(hexist, hNexist, i, hstc, &hNstc);
    1335       if (hNstc)
    1336       {
    1337         if (deg < 0) scInKbase(hstc, hNstc, pVariables);
    1338         else scDegKbase(hstc, hNstc, pVariables, deg);
    1339       }
    1340       else
    1341         scAll(pVariables, deg);
     1335      int deg_ei=deg;
     1336      if (mv!=NULL) deg_ei -= (*mv)[i-1];
     1337      if ((deg < 0) || (deg_ei>=0))
     1338      {
     1339        if (hNstc)
     1340        {
     1341          if (deg < 0) scInKbase(hstc, hNstc, pVariables);
     1342          else scDegKbase(hstc, hNstc, pVariables, deg_ei);
     1343        }
     1344        else
     1345          scAll(pVariables, deg_ei);
     1346      }
    13421347    }
    13431348    omFreeSize((ADDRESS)hstc, hNexist * sizeof(scmon));
  • kernel/stairc.h

    r4820e6 r5563ba  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: stairc.h,v 1.5 2007-11-09 12:50:44 Singular Exp $ */
     6/* $Id: stairc.h,v 1.6 2009-01-15 17:03:19 Singular Exp $ */
    77/*
    88* ABSTRACT
     
    2424void scDegree(ideal  s,intvec *modulweight,ideal Q=NULL);
    2525
    26 ideal scKBase(int deg, ideal  s, ideal Q=NULL);
     26ideal scKBase(int deg, ideal  s, ideal Q=NULL, intvec * mv=NULL);
    2727
    2828intvec * hHstdSeries(ideal S, intvec *modulweight, intvec *wdegree,
Note: See TracChangeset for help on using the changeset viewer.