Changeset 241f58 in git


Ignore:
Timestamp:
Mar 14, 2001, 4:51:53 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
4e18c51925ab32021341e7172545db0b399b0eab
Parents:
7bd107102e136678c7798894c6d866b2b4d30d3f
Message:
*hannes: posInS, hLexS


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

Legend:

Unmodified
Added
Removed
  • Singular/hilb.cc

    r7bd1071 r241f58  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hilb.cc,v 1.18 2000-12-14 16:38:48 obachman Exp $ */
     4/* $Id: hilb.cc,v 1.19 2001-03-14 15:51:53 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Hilbert series
     
    264264      for (i = hNvar; i; i--)
    265265        hvar[i] = i;
    266       if (notstc)
     266      //if (notstc) // TODO: no mon divedes another
    267267        hStaircase(hstc, &hNstc, hvar, hNvar);
    268268      hSupp(hstc, hNstc, hvar, &hNvar);
  • Singular/hutil.cc

    r7bd1071 r241f58  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hutil.cc,v 1.18 2000-11-08 15:34:55 obachman Exp $ */
     4/* $Id: hutil.cc,v 1.19 2001-03-14 15:51:52 Singular Exp $ */
    55/*
    66* ABSTRACT: Utilities for staircase operations
     
    289289static void hShrink(scfmon co, int a, int Nco)
    290290{
    291   int  i = a, j = a;
    292   for (; j < Nco; j++)
    293   {
    294     if (co[j])
     291  while ((co[a]!=NULL) && (a<Nco)) a++;
     292  int i = a;
     293  int j;
     294  for (j = a; j < Nco; j++)
     295  {
     296    if (co[j]!=NULL)
    295297    {
    296298      co[i] = co[j];
     
    303305void hStaircase(scfmon stc, int *Nstc, varset var, int Nvar)
    304306{
    305   int  nc = *Nstc, z = 0, i, j, k, k1;
    306   scmon n, o;
     307  int  nc = *Nstc;
    307308  if (nc < 2)
    308309    return;
    309   i = 0;
    310   j = 1;
    311   n = stc[j];
    312   o = *stc;
    313   k = Nvar;
     310  int z = 0;
     311  int i = 0;
     312  int j = 1;
     313  scmon n = stc[1 /*j*/];
     314  scmon o = stc[0];
     315  int k = Nvar;
    314316  loop
    315317  {
    316     k1 = var[k];
     318    int k1 = var[k];
    317319    if (o[k1] > n[k1])
    318320    {
     
    320322      {
    321323        k--;
    322         if (!k)
     324        if (k==0)
    323325        {
    324326          stc[i] = NULL;
     
    340342      {
    341343        k--;
    342         if (!k)
     344        if (k==0)
    343345        {
    344346          stc[j] = NULL;
     
    358360    {
    359361      k--;
    360       if (!k)
     362      if (k==0)
    361363      {
    362364        stc[j] = NULL;
     
    367369    if (k == Nvar)
    368370    {
    369       if (!stc[j])
     371      if (stc[j]==NULL)
    370372        i = j - 1;
    371373      loop
     
    380382          else
    381383          {
    382             if (z)
     384            if (z!=0)
    383385            {
    384386              *Nstc -= z;
     
    388390          }
    389391        }
    390         else if (stc[i])
     392        else if (stc[i]!=NULL)
    391393        {
    392394          o = stc[i];
     
    545547    }
    546548    else
     549    {
    547550      k--;
     551    }
    548552  }
    549553}
  • Singular/kutil.cc

    r7bd1071 r241f58  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.98 2001-03-08 13:05:13 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.99 2001-03-14 15:51:53 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    16821682        if (pLmCmp(set[an],p) == -cmp_int) return en;
    16831683        if ((cmp_int!=1)
    1684         && ((strat->ecartS[an])<ecart_p))
     1684        && ((strat->ecartS[an])>ecart_p))
    16851685          return an;
    16861686        return en;
Note: See TracChangeset for help on using the changeset viewer.