Changeset 56fba1 in git


Ignore:
Timestamp:
Sep 24, 2008, 5:55:19 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
f679fd27a3e8d821296a7149de795f39f137d7b9
Parents:
6e118cfc638c2d2df210d0e4348f906f504f4b14
Message:
*hannes: check used compoments for hilb-std


git-svn-id: file:///usr/local/Singular/svn/trunk@11081 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/khstd.cc

    r6e118cf r56fba1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: khstd.cc,v 1.3 2006-09-21 16:02:20 Singular Exp $ */
     4/* $Id: khstd.cc,v 1.4 2008-09-24 15:55:19 Singular Exp $ */
    55/*
    66* ABSTRACT:utils for hilbert driven kStd
     
    3232*   - compute the Hilbert series newhilb from S
    3333*     (hilb is the final Hilbert series)
     34*   - in module case: check that all comp up to strat->ak are used
    3435*   - compute the eledeg from newhilb-hilb for the first degree deg with
    3536*     newhilb-hilb != 0
     
    7374        else // we have newhilb = hilb
    7475        {
     76          if (strat->ak>0)
     77          {
     78            char *used_comp=(char*)omAlloc0(strat->ak+1);
     79            int i;
     80            for(i=strat->sl;i>0;i--)
     81              used_comp[pGetComp(strat->S[i])]='\1';
     82            for(i=strat->ak;i>0;i--)
     83            {
     84              if(used_comp[i]=='\0')
     85              {
     86                omFree((ADDRESS)used_comp);
     87                delete newhilb;
     88                return;
     89              }
     90            }
     91            omFree((ADDRESS)used_comp);
     92          }
    7593          while (strat->Ll>=0)
    7694          {
Note: See TracChangeset for help on using the changeset viewer.