Changeset 822aa3a in git for kernel/kstd1.cc
- Timestamp:
- Apr 23, 2009, 6:24:08 PM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 9f17c9f13b717a920473663201c9bb8a3daa9f77
- Parents:
- 063680689bc561c179b7e8efb10db4bccf20efbf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd1.cc
r063680 r822aa3a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1. 49 2009-04-23 11:36:32Singular Exp $ */4 /* $Id: kstd1.cc,v 1.50 2009-04-23 16:24:08 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1300 1300 1301 1301 // clear strat->P 1302 if (strat->P.lcm!=NULL) 1302 if (strat->P.lcm!=NULL) 1303 1303 #ifdef HAVE_RINGS_LOC 1304 1304 pLmDelete(strat->P.lcm); … … 1368 1368 poly kNF1 (ideal F,ideal Q,poly q, kStrategy strat, int lazyReduce) 1369 1369 { 1370 assume(q!=NULL); 1371 assume(!(idIs0(F)&&(Q==NULL))); 1372 1370 1373 // lazy_reduce flags: can be combined by | 1371 1374 //#define KSTD_NF_LAZY 1 … … 1380 1383 BITSET save_test=test; 1381 1384 1382 if ((idIs0(F))&&(Q==NULL))1383 return pCopy(q); /*F=0*/1385 //if ((idIs0(F))&&(Q==NULL)) 1386 // return pCopy(q); /*F=0*/ 1384 1387 //strat->ak = si_max(idRankFreeModule(F),pMaxComp(q)); 1385 1388 /*- creating temp data structures------------------- -*/ … … 1491 1494 ideal kNF1 (ideal F,ideal Q,ideal q, kStrategy strat, int lazyReduce) 1492 1495 { 1496 assume(!idIs0(q)); 1497 assume(!(idIs0(F)&&(Q==NULL))); 1498 1493 1499 // lazy_reduce flags: can be combined by | 1494 1500 //#define KSTD_NF_LAZY 1 … … 1504 1510 BITSET save_test=test; 1505 1511 1506 if (idIs0(q)) return idInit(IDELEMS(q),si_max(q->rank,F->rank));1507 if ((idIs0(F))&&(Q==NULL))1508 return idCopy(q); /*F=0*/1512 //if (idIs0(q)) return idInit(IDELEMS(q),si_max(q->rank,F->rank)); 1513 //if ((idIs0(F))&&(Q==NULL)) 1514 // return idCopy(q); /*F=0*/ 1509 1515 //strat->ak = si_max(idRankFreeModule(F),idRankFreeModule(q)); 1510 1516 /*- creating temp data structures------------------- -*/ … … 1987 1993 if (p==NULL) 1988 1994 return NULL; 1995 if ((idIs0(F))&&(Q==NULL)) 1996 return pCopy(p); /*F+Q=0*/ 1989 1997 kStrategy strat=new skStrategy; 1990 1998 strat->syzComp = syzComp; … … 2028 2036 Print("(S:%d)",IDELEMS(p));mflush(); 2029 2037 } 2038 if (idIs0(p)) 2039 return idInit(IDELEMS(p),si_max(p->rank,F->rank)); 2040 if ((idIs0(F))&&(Q==NULL)) 2041 return idCopy(p); /*F+Q=0*/ 2042 2030 2043 kStrategy strat=new skStrategy; 2031 2044 strat->syzComp = syzComp;
Note: See TracChangeset
for help on using the changeset viewer.