Changeset 0ec631 in git


Ignore:
Timestamp:
Jan 6, 2009, 4:49:15 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
de95ec6fb0ed8eeb4e8a94afd54d06b7f126e59a
Parents:
7f1e81f502d6c58582e3220a7509892397167bfe
Message:
*hannes: OrdSgn


git-svn-id: file:///usr/local/Singular/svn/trunk@11280 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.484 2008-12-12 15:45:20 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.485 2009-01-06 15:48:28 Singular Exp $ */
    55
    66/*
     
    44274427    return TRUE;
    44284428  }
    4429   if (pOrdSgn!=1)
     4429  if (rHasLocalOrMixedOrdering_currRing)
    44304430  {
    44314431    WerrorS("ordering must be global for slimgb");
     
    57155715    }
    57165716  }
    5717   if (((currRing->qideal!=NULL) && (pOrdSgn==-1))
    5718   || ((rr->qideal!=NULL) && (rr->OrdSgn==-1)))
     5717  if (((currRing->qideal!=NULL) && (rHasLocalOrMixedOrdering_currRing))
     5718  || ((rr->qideal!=NULL) && (rHasLocalOrMixedOrdering(rr))))
    57195719  {
    57205720    WarnS("preimage in local qring may be wrong: use Ring::preimageLoc instead");
  • Singular/ipshell.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.198 2009-01-06 14:00:57 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.199 2009-01-06 15:48:29 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    14091409  if(!idIsZeroDim(I)) return NULL; // not zero-dim.
    14101410  poly po=NULL;
    1411   if (rHasLocalOrMixedOrdering(currRing))
     1411  if (rHasLocalOrMixedOrdering_currRing)
    14121412  {
    14131413    scComputeHC(I,currQuotient,ak,po);
  • Singular/walk.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: walk.cc,v 1.15 2008-09-19 14:15:14 Singular Exp $ */
     4/* $Id: walk.cc,v 1.16 2009-01-06 15:48:29 Singular Exp $ */
    55/*
    66* ABSTRACT: Implementation of the Groebner walk
     
    162162        //}
    163163        strat->initEcart(&h);
    164         if (pOrdSgn==-1)
     164        if (rHasLocalOrMixedOrdering_currRing)
    165165        {
    166166          deleteHC(&h,strat);
     
    190190      LObject h;
    191191      h.p = pCopy(F->m[i]);
    192       if (pOrdSgn==1)
     192      if (rHasGlobalOrdering(currRing))
    193193      {
    194194        //h.p=redtailBba(h.p,strat->sl,strat);
    195195        h.p=redtailBba(h.p,strat->sl,strat);
    196196      }
    197       strat->initEcart(&h);
    198       if (pOrdSgn==-1)
     197      else
    199198      {
    200199        deleteHC(&h,strat);
    201200      }
     201      strat->initEcart(&h);
    202202      if (h.p!=NULL)
    203203      {
     
    233233      if(strat->sl>=0)
    234234      {
    235         if (pOrdSgn==1)
     235        if (rHasGlobalOrdering(currRing))
    236236        {
    237237          h.p=redBba(h.p,strat->sl,strat);
     
    304304  strat->R           = initR();
    305305  strat->sevT        = initsevT();
    306   if (pOrdSgn == -1)   strat->honey = TRUE;
     306  if (rHasLocalOrMixedOrdering_currRing)   strat->honey = TRUE;
    307307
    308308
  • Singular/wrapper.cc

    r7f1e81 r0ec631  
    1717BOOLEAN jInitBasis(ideal v, jList **TT,jList **QQ)
    1818{
    19   if (pOrdSgn==-1)
     19  if (rHasLocalOrMixedOrdering_currRing)
    2020  {
    2121    WerrorS("janet only for well-orderings");
  • kernel/ideals.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.63 2009-01-06 13:59:35 Singular Exp $ */
     4/* $Id: ideals.cc,v 1.64 2009-01-06 15:49:14 Singular Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    687687
    688688  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    }
    700703  }
    701704  e=idInit(1,h1->rank);
  • kernel/kutil.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.114 2008-12-08 10:00:44 wienand Exp $ */
     4/* $Id: kutil.cc,v 1.115 2009-01-06 15:49:14 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    309309  poly h;
    310310
    311   if(currRing->OrdSgn != -1) return;
     311  if(rHasGlobalOrdering_currRing) return;
    312312  if(TEST_OPT_CANCELUNIT) return;
    313313
  • kernel/ring.h

    r7f1e81 r0ec631  
    77* ABSTRACT - the interpreter related ring operations
    88*/
    9 /* $Id: ring.h,v 1.34 2009-01-06 13:59:36 Singular Exp $ */
     9/* $Id: ring.h,v 1.35 2009-01-06 15:49:14 Singular Exp $ */
    1010
    1111/* includes */
     
    343343BOOLEAN rHasSimpleLexOrder(const ring r);
    344344// 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)
    349353BOOLEAN rOrd_is_Totaldegree_Ordering(ring r =currRing);
    350354// return TRUE if p_SetComp requires p_Setm
  • kernel/sca.cc

    r7f1e81 r0ec631  
    77 *  Author:  motsak (Oleksandr Motsak)
    88 *  Created: 2006/12/18
    9  *  Version: $Id: sca.cc,v 1.29 2008-09-16 12:32:33 Singular Exp $
     9 *  Version: $Id: sca.cc,v 1.30 2009-01-06 15:49:14 Singular Exp $
    1010 *******************************************************************/
    1111
     
    23962396
    23972397
    2398   if (rGR->OrdSgn==-1)
     2398  if (rHasLocalOrMixedOrdering(rGR))
    23992399  {
    24002400#ifdef PDEBUG
  • kernel/syz.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz.cc,v 1.16 2008-09-16 12:32:33 Singular Exp $ */
     4/* $Id: syz.cc,v 1.17 2009-01-06 15:49:15 Singular Exp $ */
    55
    66/*
     
    140140    while ((j>0) && (syz->m[j-1]==NULL)) j--;
    141141    existsUnit = FALSE;
    142     if (currRing->OrdSgn == 1)
     142    if (rHasGlobalOrdering_currRing)
    143143    {
    144144      while ((i<j) && (!existsUnit))
  • kernel/syz0.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz0.cc,v 1.6 2005-08-23 09:07:00 Singular Exp $ */
     4/* $Id: syz0.cc,v 1.7 2009-01-06 15:49:15 Singular Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    891891      res=newres;
    892892    }
    893     if ((hom==isHomog)|| (origR->OrdSgn == 1))
     893    if ((hom==isHomog)|| (rHasGlobalOrdering(origR)))
    894894    {
    895895      if (syzIndex==0) syInitSort(res[0],&modcomp);
     
    904904    if ((syzIndex==0))
    905905    {
    906       if ((hom==isHomog)|| (origR->OrdSgn == 1))
     906      if ((hom==isHomog)|| (rHasGlobalOrdering(origR)))
    907907      {
    908908        syRing = rCurrRingAssure_CompLastBlock();
     
    929929      }
    930930    }
    931     if ((hom!=isHomog) && (origR->OrdSgn != 1))
     931    if ((hom!=isHomog) && (rHasLocalOrMixedOrdering(origR)))
    932932    {
    933933      if (syzIndex==0) syInitSort(res[0],&modcomp);
     
    939939  }
    940940  //syPrintResolution(res,1,*length);
    941   if ((hom!=isHomog) && (origR->OrdSgn != 1))
     941  if ((hom!=isHomog) && (rHasLocalOrMixedOrdering(origR)))
    942942  {
    943943    syzIndex = 1;
     
    948948    }
    949949  }
    950   if ((hom==isHomog) || (origR->OrdSgn == 1))
     950  if ((hom==isHomog) || (rHasGlobalOrdering(origR)))
    951951    syzIndex = 1;
    952952  else
     
    985985    }
    986986  }
    987   if ((hom==isHomog) || (origR->OrdSgn == 1))
     987  if ((hom==isHomog) || (rHasGlobalOrdering(origR)))
    988988  {
    989989    if (res[1]!=NULL)
  • kernel/weight.cc

    r7f1e81 r0ec631  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: weight.cc,v 1.7 2009-01-06 13:59:36 Singular Exp $ */
     4/* $Id: weight.cc,v 1.8 2009-01-06 15:49:15 Singular Exp $ */
    55
    66/*
     
    189189  *eweight = 0;
    190190  n = pVariables;
    191   if (rHasLocalOrMixedOrdering())
     191  if (rHasLocalOrMixedOrdering_currRing)
    192192    wFunctional = wFunctionalMora;
    193193  else
Note: See TracChangeset for help on using the changeset viewer.