Changeset 9f5fca in git
- Timestamp:
- Dec 10, 2008, 8:48:51 PM (15 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 18c24555fbf92664b228c6d8d5ea653490aef960
- Parents:
- 1dfd7613337c8c2ac8c4636dda564d8899289dbd
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kspoly.cc
r1dfd761 r9f5fca 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kspoly.cc,v 1.1 5 2008-06-25 11:27:31 SingularExp $ */4 /* $Id: kspoly.cc,v 1.16 2008-12-10 19:48:51 levandov Exp $ */ 5 5 /* 6 6 * ABSTRACT - Routines for Spoly creation and reductions … … 138 138 assume(PW->GetpLength() == pLength(PW->p != NULL ? PW->p : PW->t_p)); 139 139 PR->LmDeleteAndIter(); 140 141 // the following is commented out: shrinking 142 #ifdef HAVE_SHIFTBBA_NONEXISTENT 143 if ( (currRing->isLPring) && (!strat->homog) ) 144 { 145 // assume? h->p in currRing 146 PR->GetP(); 147 poly qq = p_Shrink(PR->p, currRing->isLPring, currRing); 148 PR->Clear(); // does the right things 149 PR->p = qq; 150 PR->t_p = NULL; 151 PR->SetShortExpVector(); 152 } 153 #endif 154 140 155 #if defined(KDEBUG) && defined(TEST_OPT_DEBUG_RED) 141 156 if (TEST_OPT_DEBUG) … … 251 266 } 252 267 } 268 269 // the following is commented out: shrinking 270 #ifdef HAVE_SHIFTBBA_NONEXISTENT 271 if (currRing->isLPring) 272 { 273 // assume? h->p in currRing 274 Pair->GetP(); 275 poly qq = p_Shrink(Pair->p, currRing->isLPring, currRing); 276 Pair->Clear(); // does the right things 277 Pair->p = qq; 278 Pair->t_p = NULL; 279 Pair->SetShortExpVector(); 280 } 281 #endif 282 253 283 } 254 284 … … 291 321 if (Lp == Save) 292 322 With.Delete(); 323 324 // the following is commented out: shrinking 325 #ifdef HAVE_SHIFTBBA_NONEXISTENT 326 if (currRing->isLPring) 327 { 328 // assume? h->p in currRing 329 PR->GetP(); 330 poly qq = p_Shrink(PR->p, currRing->isLPring, currRing); 331 PR->Clear(); // does the right things 332 PR->p = qq; 333 PR->t_p = NULL; 334 PR->SetShortExpVector(); 335 } 336 #endif 337 293 338 return ret; 294 339 } -
kernel/kstd2.cc
r1dfd761 r9f5fca 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1.7 7 2008-11-12 16:07:45 SingularExp $ */4 /* $Id: kstd2.cc,v 1.78 2008-12-10 19:48:51 levandov Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger … … 1420 1420 { 1421 1421 strat->P.GetP(strat->lmBin); // because shifts are counted with .p structure 1422 /* assume strat->P.t_p != NULL */1423 1422 /* in the nonhomog case we have to shrink the polynomial */ 1424 1423 assume(strat->P.t_p!=NULL); … … 1660 1659 1661 1660 /* check whether the ideal is in V */ 1662 if (! ideal_isInV(I,lVblock) ) 1663 { 1664 PrintS("ERROR: The input ideal contains incorrectly encoded elements! "); 1661 1662 if (0) 1663 // if (! ideal_isInV(I,lVblock) ) 1664 { 1665 WerrorS("The input ideal contains incorrectly encoded elements! "); 1665 1666 return(NULL); 1666 1667 } … … 1719 1720 #endif 1720 1721 ksReducePoly(h, &(strat->T[j]), strat->kNoetherTail(), NULL, strat); 1722 1721 1723 #ifdef KDEBUG 1722 1724 if (TEST_OPT_DEBUG)
Note: See TracChangeset
for help on using the changeset viewer.