- Timestamp:
- Jul 8, 2008, 1:28:21 PM (16 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- ce8fc75b7c9fd0e9a6b4fe7bfdf8c2c8926941d0
- Parents:
- 77987005e6c432b32a83558af620b8a21ecaa8cc
- Location:
- kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gring.cc
r779870 r32c4523 7 7 * Author: levandov (Viktor Levandovsky) 8 8 * Created: 8/00 - 11/00 9 * Version: $Id: gring.cc,v 1. 59 2008-07-04 14:21:53 motsakExp $9 * Version: $Id: gring.cc,v 1.60 2008-07-08 11:28:21 Singular Exp $ 10 10 *******************************************************************/ 11 11 … … 1644 1644 #endif 1645 1645 1646 #endif1647 1646 1648 1647 M2=p_Add_q(M1,M2,r); // M1 is killed, M2 = spoly(lt(p1), lt(p2)) = C2*M1 - C1*M2 … … 3725 3724 // return(TRUE); 3726 3725 // } 3726 #endif -
kernel/ring.cc
r779870 r32c4523 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.9 5 2008-07-07 12:21:43 wienandExp $ */4 /* $Id: ring.cc,v 1.96 2008-07-08 11:26:50 Singular Exp $ */ 5 5 6 6 /* … … 4542 4542 { 4543 4543 idDelete(&(r->qideal)); 4544 #ifdef HAVE_PLURAL 4544 4545 r->qideal = idOppose(src, src->qideal); 4546 #else 4547 r->qideal = idCopy( src->qideal); 4548 #endif 4549 4545 4550 4546 4551 #ifdef HAVE_PLURAL -
kernel/sca.h
r779870 r32c4523 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: sca.h,v 1.1 3 2008-06-26 18:35:45 motsakExp $ */7 /* $Id: sca.h,v 1.14 2008-07-08 11:26:50 Singular Exp $ */ 8 8 9 9 #include <ring.h> … … 24 24 25 25 26 #ifdef HAVE_PLURAL 26 27 // we must always have this test! 27 28 inline ideal SCAQuotient(const ring r) … … 31 32 } 32 33 33 34 #ifdef HAVE_PLURAL35 34 #include <gring.h> 36 35 … … 86 85 // tests whether p is bi-homogeneous with respect to the given variable'(component')-weights 87 86 // ps: polynomial is bi-homogeneous iff all terms have the same bi-degree (x,y). 88 bool p_IsBiHomogeneous(const poly p, 89 const intvec *wx, const intvec *wy, 90 const intvec *wCx, const intvec *wCy, 87 bool p_IsBiHomogeneous(const poly p, 88 const intvec *wx, const intvec *wy, 89 const intvec *wCx, const intvec *wCy, 91 90 int &dx, int &dy, 92 91 const ring r); 93 94 92 93 95 94 ////////////////////////////////////////////////////////////////////////////////////// 96 95 97 96 // tests whether p is bi-homogeneous with respect to the given variable'(component')-weights 98 97 // ps: ideal is bi-homogeneous iff all its generators are bi-homogeneous polynomials. 99 bool id_IsBiHomogeneous(const ideal id, 100 const intvec *wx, const intvec *wy, 98 bool id_IsBiHomogeneous(const ideal id, 99 const intvec *wx, const intvec *wy, 101 100 const intvec *wCx, const intvec *wCy, 102 101 const ring r); … … 118 117 119 118 120 inline bool p_IsSCAHomogeneous(const poly p, 119 inline bool p_IsSCAHomogeneous(const poly p, 121 120 const intvec *wCx, const intvec *wCy, 122 121 const ring r) … … 125 124 intvec *wx = ivGetSCAXVarWeights(r); 126 125 intvec *wy = ivGetSCAYVarWeights(r); 127 126 128 127 int x,y; 129 128 130 129 bool homog = p_IsBiHomogeneous( p, wx, wy, wCx, wCy, x, y, r ); 131 130 132 131 delete wx; 133 132 delete wy; 134 135 return homog; 133 134 return homog; 136 135 } 137 136 138 137 139 inline bool id_IsSCAHomogeneous(const ideal id, 138 inline bool id_IsSCAHomogeneous(const ideal id, 140 139 const intvec *wCx, const intvec *wCy, 141 140 const ring r) … … 146 145 147 146 bool homog = id_IsBiHomogeneous( id, wx, wy, wCx, wCy, r ); 148 147 149 148 delete wx; 150 149 delete wy; 151 152 return homog; 150 151 return homog; 153 152 } 154 153 … … 157 156 158 157 // reduce polynomial p modulo <y_i^2> , i = iFirstAltVar .. iLastAltVar 159 poly p_KillSquares(const poly p, 160 const unsigned int iFirstAltVar, const unsigned int iLastAltVar, 161 const ring r); 158 poly p_KillSquares(const poly p, 159 const unsigned int iFirstAltVar, const unsigned int iLastAltVar, 160 const ring r); 162 161 163 162 ////////////////////////////////////////////////////////////////////////////////////// 164 163 165 164 // reduce ideal id modulo <y_i^2> , i = iFirstAltVar .. iLastAltVar 166 ideal id_KillSquares(const ideal id, 167 const unsigned int iFirstAltVar, const unsigned int iLastAltVar, 168 const ring r); 165 ideal id_KillSquares(const ideal id, 166 const unsigned int iFirstAltVar, const unsigned int iLastAltVar, 167 const ring r); 169 168 170 169 // for benchmarking … … 176 175 // should be used only inside nc_SetupQuotient! 177 176 // Check whether this our case: 178 // 1. rG is a commutative polynomial ring \otimes anticommutative algebra 177 // 1. rG is a commutative polynomial ring \otimes anticommutative algebra 179 178 // 2. factor ideal rGR->qideal contains squares of all alternating variables. 180 // 179 // 181 180 // if yes, make rGR a super-commutative algebra! 182 181 // NOTE: Factors of SuperCommutative Algebras are supported this way! … … 194 193 195 194 #else 196 // these must not be used at all. 195 // these must not be used at all. 197 196 // #define scaFirstAltVar(R) 0 198 197 // #define scaLastAltVar(R) 0 -
kernel/weight.cc
r779870 r32c4523 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: weight.cc,v 1. 5 2008-05-09 09:23:59Singular Exp $ */4 /* $Id: weight.cc,v 1.6 2008-07-08 11:26:50 Singular Exp $ */ 5 5 6 6 /* … … 16 16 #include "febase.h" 17 17 #include "ideals.h" 18 #include "ring.h" 18 19 #include "weight.h" 19 20
Note: See TracChangeset
for help on using the changeset viewer.