Changeset 56fba1 in git
- Timestamp:
- Sep 24, 2008, 5:55:19 PM (15 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- f679fd27a3e8d821296a7149de795f39f137d7b9
- Parents:
- 6e118cfc638c2d2df210d0e4348f906f504f4b14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/khstd.cc
r6e118cf r56fba1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: khstd.cc,v 1. 3 2006-09-21 16:02:20Singular Exp $ */4 /* $Id: khstd.cc,v 1.4 2008-09-24 15:55:19 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT:utils for hilbert driven kStd … … 32 32 * - compute the Hilbert series newhilb from S 33 33 * (hilb is the final Hilbert series) 34 * - in module case: check that all comp up to strat->ak are used 34 35 * - compute the eledeg from newhilb-hilb for the first degree deg with 35 36 * newhilb-hilb != 0 … … 73 74 else // we have newhilb = hilb 74 75 { 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 } 75 93 while (strat->Ll>=0) 76 94 {
Note: See TracChangeset
for help on using the changeset viewer.