Changeset 8ebd1a0 in git
- Timestamp:
- Apr 25, 2005, 8:15:25 PM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 5d00520a016f7e7089be25484b5cc41e3b897fd4
- Parents:
- 720ff4a017189777645e1e4ed50e4080ba8f1edb
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r720ff4 r8ebd1a0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.1 0 2005-04-22 18:09:43 levandovExp $ */4 /* $Id: ideals.cc,v 1.11 2005-04-25 18:15:23 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 2427 2427 #ifdef HAVE_PLURAL 2428 2428 /* update nc structure on tmpR */ 2429 int BAD = 0; 2430 if ( nc_rComplete(origR, &tmpR) ) 2431 { 2432 Werror("error in nc_rComplete"); 2433 BAD = 1; 2434 } 2435 if (!BAD) 2436 { 2437 /* tests the admissibility of the new elim. ordering */ 2438 if ( nc_CheckOrdCondition( (&tmpR)->nc->D, &tmpR) ) 2439 { 2440 Werror("no elimination is possible: ordering condition is violated"); 2441 BAD = 1; 2442 } 2443 } 2444 if (BAD) 2445 { 2446 // cleanup 2447 omFree((ADDRESS)wv[0]); 2448 omFreeSize((ADDRESS)wv,ordersize*sizeof(int**)); 2449 omFreeSize((ADDRESS)ord,ordersize*sizeof(int)); 2450 omFreeSize((ADDRESS)block0,ordersize*sizeof(int)); 2451 omFreeSize((ADDRESS)block1,ordersize*sizeof(int)); 2452 rUnComplete(&tmpR); 2453 if (w!=NULL) 2454 { 2455 delete w; 2456 } 2457 return idCopy(h1); 2429 if (rIsPluralRing(currRing)) 2430 { 2431 BOOLEAN BAD = FALSE; 2432 if ( nc_rComplete(origR, &tmpR) ) 2433 { 2434 Werror("error in nc_rComplete"); 2435 BAD = TRUE; 2436 } 2437 if (!BAD) 2438 { 2439 /* tests the admissibility of the new elim. ordering */ 2440 if ( nc_CheckOrdCondition( (&tmpR)->nc->D, &tmpR) ) 2441 { 2442 Werror("no elimination is possible: ordering condition is violated"); 2443 BAD = TRUE; 2444 } 2445 } 2446 if (BAD) 2447 { 2448 // cleanup 2449 omFree((ADDRESS)wv[0]); 2450 omFreeSize((ADDRESS)wv,ordersize*sizeof(int**)); 2451 omFreeSize((ADDRESS)ord,ordersize*sizeof(int)); 2452 omFreeSize((ADDRESS)block0,ordersize*sizeof(int)); 2453 omFreeSize((ADDRESS)block1,ordersize*sizeof(int)); 2454 rUnComplete(&tmpR); 2455 if (w!=NULL) 2456 { 2457 delete w; 2458 } 2459 return idCopy(h1); 2460 } 2458 2461 } 2459 2462 #endif -
kernel/kstd1.cc
r720ff4 r8ebd1a0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1. 6 2005-04-11 15:59:01Singular Exp $ */4 /* $Id: kstd1.cc,v 1.7 2005-04-25 18:15:23 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1231 1231 // statistics 1232 1232 if (TEST_OPT_PROT) PrintS("s"); 1233 // cancel unit 1234 cancelunit(&strat->P); 1233 1235 // normalization 1234 1236 if (!TEST_OPT_INTSTRATEGY) … … 1242 1244 if (TEST_OPT_INTSTRATEGY) 1243 1245 strat->P.pCleardenom(); 1244 // cancel unit1245 cancelunit(&strat->P);1246 1246 1247 1247 // put in T -
kernel/kutil.cc
r720ff4 r8ebd1a0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1. 7 2005-03-17 14:15:13Singular Exp $ */4 /* $Id: kutil.cc,v 1.8 2005-04-25 18:15:24 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 4104 4104 for (l=IDELEMS(r)-1;l>=0;l--) 4105 4105 { 4106 if (r->m[l]!=NULL) 4106 if ((r->m[l]!=NULL) 4107 && (strat->syzComp>0) 4108 && (pGetComp(r->m[l])<=strat->syzComp)) 4107 4109 { 4108 4110 for(q=IDELEMS(Q)-1; q>=0;q--) -
kernel/prCopy.cc
r720ff4 r8ebd1a0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: prCopy.cc,v 1. 1.1.1 2003-10-06 12:15:57Singular Exp $ */4 /* $Id: prCopy.cc,v 1.2 2005-04-25 18:15:25 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - implementation of functions for Copy/Move/Delete for Polys … … 26 26 assume(n == pGetCoeff(dest)); 27 27 } 28 if (rRing_has_Comp(dest_r) )28 if (rRing_has_Comp(dest_r) && rRing_has_Comp(src_r)) 29 29 p_SetComp(dest, p_GetComp( src,src_r), dest_r); 30 30 assume(n == pGetCoeff(dest)); -
kernel/syz.cc
r720ff4 r8ebd1a0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz.cc,v 1. 8 2005-03-17 14:14:17Singular Exp $ */4 /* $Id: syz.cc,v 1.9 2005-04-25 18:15:25 Singular Exp $ */ 5 5 6 6 /* … … 781 781 } 782 782 } 783 //if (idHomModule(res[0],currQuotient,&w)!=isHomog) 784 //{ 785 // Warn("betti-command: Input is not homogeneous!"); 786 // weights=NULL; 787 //} 783 #if 0 784 if (idHomModule(res[0],currQuotient,&w)!=isHomog) 785 { 786 Warn("betti-command: Input is not homogeneous!"); 787 weights=NULL; 788 } 789 #endif 788 790 if (weights==NULL) weights=w; 789 791 else delete w;
Note: See TracChangeset
for help on using the changeset viewer.