Changeset 0ec631 in git
- Timestamp:
- Jan 6, 2009, 4:49:15 PM (14 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- de95ec6fb0ed8eeb4e8a94afd54d06b7f126e59a
- Parents:
- 7f1e81f502d6c58582e3220a7509892397167bfe
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.48 4 2008-12-12 15:45:20Singular Exp $ */4 /* $Id: iparith.cc,v 1.485 2009-01-06 15:48:28 Singular Exp $ */ 5 5 6 6 /* … … 4427 4427 return TRUE; 4428 4428 } 4429 if ( pOrdSgn!=1)4429 if (rHasLocalOrMixedOrdering_currRing) 4430 4430 { 4431 4431 WerrorS("ordering must be global for slimgb"); … … 5715 5715 } 5716 5716 } 5717 if (((currRing->qideal!=NULL) && ( pOrdSgn==-1))5718 || ((rr->qideal!=NULL) && (r r->OrdSgn==-1)))5717 if (((currRing->qideal!=NULL) && (rHasLocalOrMixedOrdering_currRing)) 5718 || ((rr->qideal!=NULL) && (rHasLocalOrMixedOrdering(rr)))) 5719 5719 { 5720 5720 WarnS("preimage in local qring may be wrong: use Ring::preimageLoc instead"); -
Singular/ipshell.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.19 8 2009-01-06 14:00:57Singular Exp $ */4 /* $Id: ipshell.cc,v 1.199 2009-01-06 15:48:29 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1409 1409 if(!idIsZeroDim(I)) return NULL; // not zero-dim. 1410 1410 poly po=NULL; 1411 if (rHasLocalOrMixedOrdering (currRing))1411 if (rHasLocalOrMixedOrdering_currRing) 1412 1412 { 1413 1413 scComputeHC(I,currQuotient,ak,po); -
Singular/walk.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: walk.cc,v 1.1 5 2008-09-19 14:15:14Singular Exp $ */4 /* $Id: walk.cc,v 1.16 2009-01-06 15:48:29 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: Implementation of the Groebner walk … … 162 162 //} 163 163 strat->initEcart(&h); 164 if ( pOrdSgn==-1)164 if (rHasLocalOrMixedOrdering_currRing) 165 165 { 166 166 deleteHC(&h,strat); … … 190 190 LObject h; 191 191 h.p = pCopy(F->m[i]); 192 if ( pOrdSgn==1)192 if (rHasGlobalOrdering(currRing)) 193 193 { 194 194 //h.p=redtailBba(h.p,strat->sl,strat); 195 195 h.p=redtailBba(h.p,strat->sl,strat); 196 196 } 197 strat->initEcart(&h); 198 if (pOrdSgn==-1) 197 else 199 198 { 200 199 deleteHC(&h,strat); 201 200 } 201 strat->initEcart(&h); 202 202 if (h.p!=NULL) 203 203 { … … 233 233 if(strat->sl>=0) 234 234 { 235 if ( pOrdSgn==1)235 if (rHasGlobalOrdering(currRing)) 236 236 { 237 237 h.p=redBba(h.p,strat->sl,strat); … … 304 304 strat->R = initR(); 305 305 strat->sevT = initsevT(); 306 if ( pOrdSgn == -1) strat->honey = TRUE;306 if (rHasLocalOrMixedOrdering_currRing) strat->honey = TRUE; 307 307 308 308 -
Singular/wrapper.cc
r7f1e81 r0ec631 17 17 BOOLEAN jInitBasis(ideal v, jList **TT,jList **QQ) 18 18 { 19 if ( pOrdSgn==-1)19 if (rHasLocalOrMixedOrdering_currRing) 20 20 { 21 21 WerrorS("janet only for well-orderings"); -
kernel/ideals.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.6 3 2009-01-06 13:59:35Singular Exp $ */4 /* $Id: ideals.cc,v 1.64 2009-01-06 15:49:14 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 687 687 688 688 homog = idHomModule(h1,currQuotient,&wth); 689 if (rHasGlobalOrdering() && (!homog)) 690 { 691 WarnS("minbase applies only to the local or homogeneous case"); 692 e=idCopy(h1); 693 return e; 694 } 695 if ((currRing->OrdSgn == 1) && (homog)) 696 { 697 ideal re=kMin_std(h1,currQuotient,(tHomog)homog,&wth,h2,NULL,0,3); 698 idDelete(&re); 699 return h2; 689 if (rHasGlobalOrdering_currRing) 690 { 691 if(!homog) 692 { 693 WarnS("minbase applies only to the local or homogeneous case"); 694 e=idCopy(h1); 695 return e; 696 } 697 else 698 { 699 ideal re=kMin_std(h1,currQuotient,(tHomog)homog,&wth,h2,NULL,0,3); 700 idDelete(&re); 701 return h2; 702 } 700 703 } 701 704 e=idInit(1,h1->rank); -
kernel/kutil.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.11 4 2008-12-08 10:00:44 wienandExp $ */4 /* $Id: kutil.cc,v 1.115 2009-01-06 15:49:14 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 309 309 poly h; 310 310 311 if( currRing->OrdSgn != -1) return;311 if(rHasGlobalOrdering_currRing) return; 312 312 if(TEST_OPT_CANCELUNIT) return; 313 313 -
kernel/ring.h
r7f1e81 r0ec631 7 7 * ABSTRACT - the interpreter related ring operations 8 8 */ 9 /* $Id: ring.h,v 1.3 4 2009-01-06 13:59:36Singular Exp $ */9 /* $Id: ring.h,v 1.35 2009-01-06 15:49:14 Singular Exp $ */ 10 10 11 11 /* includes */ … … 343 343 BOOLEAN rHasSimpleLexOrder(const ring r); 344 344 // return TRUE if p->exp[r->pOrdIndex] holds total degree of p */ 345 inline BOOLEAN rHasGlobalOrdering(const ring r=currRing) 346 { return (r->OrdSgn==1); } 347 inline BOOLEAN rHasLocalOrMixedOrdering(const ring r=currRing) 348 { return (r->OrdSgn==-1); } 345 //inline BOOLEAN rHasGlobalOrdering(const ring r=currRing) 346 //{ return (r->OrdSgn==1); } 347 #define rHasGlobalOrdering(R) ((R)->OrdSgn==1) 348 #define rHasGlobalOrdering_currRing (pOrdSgn==1) 349 //inline BOOLEAN rHasLocalOrMixedOrdering(const ring r=currRing) 350 //{ return (r->OrdSgn==-1); } 351 #define rHasLocalOrMixedOrdering(R) ((R)->OrdSgn==-1) 352 #define rHasLocalOrMixedOrdering_currRing (pOrdSgn==-1) 349 353 BOOLEAN rOrd_is_Totaldegree_Ordering(ring r =currRing); 350 354 // return TRUE if p_SetComp requires p_Setm -
kernel/sca.cc
r7f1e81 r0ec631 7 7 * Author: motsak (Oleksandr Motsak) 8 8 * Created: 2006/12/18 9 * Version: $Id: sca.cc,v 1. 29 2008-09-16 12:32:33Singular Exp $9 * Version: $Id: sca.cc,v 1.30 2009-01-06 15:49:14 Singular Exp $ 10 10 *******************************************************************/ 11 11 … … 2396 2396 2397 2397 2398 if (r GR->OrdSgn==-1)2398 if (rHasLocalOrMixedOrdering(rGR)) 2399 2399 { 2400 2400 #ifdef PDEBUG -
kernel/syz.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz.cc,v 1.1 6 2008-09-16 12:32:33Singular Exp $ */4 /* $Id: syz.cc,v 1.17 2009-01-06 15:49:15 Singular Exp $ */ 5 5 6 6 /* … … 140 140 while ((j>0) && (syz->m[j-1]==NULL)) j--; 141 141 existsUnit = FALSE; 142 if ( currRing->OrdSgn == 1)142 if (rHasGlobalOrdering_currRing) 143 143 { 144 144 while ((i<j) && (!existsUnit)) -
kernel/syz0.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz0.cc,v 1. 6 2005-08-23 09:07:00Singular Exp $ */4 /* $Id: syz0.cc,v 1.7 2009-01-06 15:49:15 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: resolutions … … 891 891 res=newres; 892 892 } 893 if ((hom==isHomog)|| ( origR->OrdSgn == 1))893 if ((hom==isHomog)|| (rHasGlobalOrdering(origR))) 894 894 { 895 895 if (syzIndex==0) syInitSort(res[0],&modcomp); … … 904 904 if ((syzIndex==0)) 905 905 { 906 if ((hom==isHomog)|| ( origR->OrdSgn == 1))906 if ((hom==isHomog)|| (rHasGlobalOrdering(origR))) 907 907 { 908 908 syRing = rCurrRingAssure_CompLastBlock(); … … 929 929 } 930 930 } 931 if ((hom!=isHomog) && ( origR->OrdSgn != 1))931 if ((hom!=isHomog) && (rHasLocalOrMixedOrdering(origR))) 932 932 { 933 933 if (syzIndex==0) syInitSort(res[0],&modcomp); … … 939 939 } 940 940 //syPrintResolution(res,1,*length); 941 if ((hom!=isHomog) && ( origR->OrdSgn != 1))941 if ((hom!=isHomog) && (rHasLocalOrMixedOrdering(origR))) 942 942 { 943 943 syzIndex = 1; … … 948 948 } 949 949 } 950 if ((hom==isHomog) || ( origR->OrdSgn == 1))950 if ((hom==isHomog) || (rHasGlobalOrdering(origR))) 951 951 syzIndex = 1; 952 952 else … … 985 985 } 986 986 } 987 if ((hom==isHomog) || ( origR->OrdSgn == 1))987 if ((hom==isHomog) || (rHasGlobalOrdering(origR))) 988 988 { 989 989 if (res[1]!=NULL) -
kernel/weight.cc
r7f1e81 r0ec631 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: weight.cc,v 1. 7 2009-01-06 13:59:36Singular Exp $ */4 /* $Id: weight.cc,v 1.8 2009-01-06 15:49:15 Singular Exp $ */ 5 5 6 6 /* … … 189 189 *eweight = 0; 190 190 n = pVariables; 191 if (rHasLocalOrMixedOrdering ())191 if (rHasLocalOrMixedOrdering_currRing) 192 192 wFunctional = wFunctionalMora; 193 193 else
Note: See TracChangeset
for help on using the changeset viewer.