Changeset 52e2f6 in git for kernel/kstd1.cc
- Timestamp:
- Jun 10, 2008, 12:17:33 PM (15 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- 28325ab307b0d45f178c4ce869547de7d3f3faa7
- Parents:
- f2b58394b7c0b28984794adfcef85f56f72e35bf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd1.cc
rf2b5839 r52e2f6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1.3 4 2008-03-20 11:22:44 SingularExp $ */4 /* $Id: kstd1.cc,v 1.35 2008-06-10 10:17:31 motsak Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1959 1959 kStrategy strat=new skStrategy; 1960 1960 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 1961 1978 if (pOrdSgn==-1) 1962 p=kNF1(F,Q,p,strat,lazyReduce);1979 res=kNF1(F,Q,pp,strat,lazyReduce); 1963 1980 else 1964 p=kNF2(F,Q,p,strat,lazyReduce);1981 res=kNF2(F,Q,pp,strat,lazyReduce); 1965 1982 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; 1967 1990 } 1968 1991 … … 1976 1999 kStrategy strat=new skStrategy; 1977 2000 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 1978 2015 if (pOrdSgn==-1) 1979 res=kNF1(F,Q,p ,strat,lazyReduce);2016 res=kNF1(F,Q,pp,strat,lazyReduce); 1980 2017 else 1981 res=kNF2(F,Q,p ,strat,lazyReduce);2018 res=kNF2(F,Q,pp,strat,lazyReduce); 1982 2019 delete(strat); 2020 2021 #ifdef HAVE_PLURAL 2022 if(pp != p) 2023 id_Delete(&pp, currRing); 2024 #endif 2025 2026 1983 2027 return res; 1984 2028 } … … 2244 2288 2245 2289 // this should be done on the upper level!!! : 2246 // tempQ = currRing->nc->SCAQuotient();2290 // tempQ = SCAQuotient(currRing); 2247 2291 2248 2292 if(Q == currQuotient) 2249 tempQ = currRing->nc->SCAQuotient();2293 tempQ = SCAQuotient(currRing); 2250 2294 } 2251 2295 #endif
Note: See TracChangeset
for help on using the changeset viewer.