Changeset 52e2f6 in git for kernel/kstd1.cc


Ignore:
Timestamp:
Jun 10, 2008, 12:17:33 PM (15 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
28325ab307b0d45f178c4ce869547de7d3f3faa7
Parents:
f2b58394b7c0b28984794adfcef85f56f72e35bf
Message:
*motsak: major redesign of NC Subsystem, maybe something more...


git-svn-id: file:///usr/local/Singular/svn/trunk@10739 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    rf2b5839 r52e2f6  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.34 2008-03-20 11:22:44 Singular Exp $ */
     4/* $Id: kstd1.cc,v 1.35 2008-06-10 10:17:31 motsak Exp $ */
    55/*
    66* ABSTRACT:
     
    19591959  kStrategy strat=new skStrategy;
    19601960  strat->syzComp = syzComp;
     1961
     1962  poly pp = p;
     1963 
     1964#ifdef HAVE_PLURAL
     1965  if(rIsSCA(currRing))
     1966  {
     1967    const unsigned int m_iFirstAltVar = scaFirstAltVar(currRing);
     1968    const unsigned int m_iLastAltVar  = scaLastAltVar(currRing);
     1969    pp = p_KillSquares(pp, m_iFirstAltVar, m_iLastAltVar, currRing);
     1970
     1971    if(Q == currQuotient)
     1972      Q = SCAQuotient(currRing);
     1973  }
     1974#endif
     1975 
     1976  poly res;
     1977
    19611978  if (pOrdSgn==-1)
    1962     p=kNF1(F,Q,p,strat,lazyReduce);
     1979    res=kNF1(F,Q,pp,strat,lazyReduce);
    19631980  else
    1964     p=kNF2(F,Q,p,strat,lazyReduce);
     1981    res=kNF2(F,Q,pp,strat,lazyReduce);
    19651982  delete(strat);
    1966   return p;
     1983
     1984#ifdef HAVE_PLURAL
     1985  if(pp != p)
     1986    p_Delete(&pp, currRing);
     1987#endif
     1988 
     1989  return res;
    19671990}
    19681991
     
    19761999  kStrategy strat=new skStrategy;
    19772000  strat->syzComp = syzComp;
     2001
     2002  ideal pp = p;
     2003#ifdef HAVE_PLURAL
     2004  if(rIsSCA(currRing))
     2005  {
     2006    const unsigned int m_iFirstAltVar = scaFirstAltVar(currRing);
     2007    const unsigned int m_iLastAltVar  = scaLastAltVar(currRing);
     2008    pp = id_KillSquares(pp, m_iFirstAltVar, m_iLastAltVar, currRing);
     2009
     2010    if(Q == currQuotient)
     2011      Q = SCAQuotient(currRing);
     2012  }
     2013#endif
     2014
    19782015  if (pOrdSgn==-1)
    1979     res=kNF1(F,Q,p,strat,lazyReduce);
     2016    res=kNF1(F,Q,pp,strat,lazyReduce);
    19802017  else
    1981     res=kNF2(F,Q,p,strat,lazyReduce);
     2018    res=kNF2(F,Q,pp,strat,lazyReduce);
    19822019  delete(strat);
     2020
     2021#ifdef HAVE_PLURAL
     2022  if(pp != p)
     2023    id_Delete(&pp, currRing);
     2024#endif
     2025
     2026 
    19832027  return res;
    19842028}
     
    22442288
    22452289    // this should be done on the upper level!!! :
    2246     //    tempQ = currRing->nc->SCAQuotient();
     2290    //    tempQ = SCAQuotient(currRing);
    22472291
    22482292    if(Q == currQuotient)
    2249       tempQ = currRing->nc->SCAQuotient();
     2293      tempQ = SCAQuotient(currRing);
    22502294  }
    22512295#endif
Note: See TracChangeset for help on using the changeset viewer.