Changeset 98f4749 in git
- Timestamp:
- Oct 5, 2018, 12:16:14 PM (6 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a75fc358053e71da8efed299e30de63ea29f3c0f
- Parents:
- 28ac7f47ccca7ef7dbc24705df22abae3603b39b
- git-author:
- Christian Eder <ederc@mathematik.uni-kl.de>2018-10-05 12:16:14+02:00
- git-committer:
- Christian Eder <ederc@mathematik.uni-kl.de>2018-10-05 12:37:42+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd2.cc
r28ac7f r98f4749 104 104 if (p_LmShortDivisibleBy(T[j].p, sevT[j],p, not_sev, r) && p_LmEqual(T[j].p, p, r)) 105 105 { 106 mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), 107 &rest, currRing->cf); 106 mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf); 108 107 if (!n_IsZero(mult, currRing)) { 109 108 /* try to get the probably best one, i.e. with smallest coeff */ 110 109 if (o == -1 || 111 n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), currRing->cf))110 n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), r->cf)) 112 111 o = j; 113 112 } … … 125 124 if (p_LmShortDivisibleBy(T[j].p, sevT[j],p, not_sev, r) && p_LmEqual(T[j].p, p, r)) 126 125 { 127 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), 128 &rest, currRing->cf); 126 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf); 129 127 if (!n_IsZero(mult, currRing)) { 130 128 /* try to get the probably best one, i.e. with smallest coeff */ 131 129 if (o == -1 || 132 n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), currRing->cf))130 n_Greater(pGetCoeff(T[o].p), pGetCoeff(T[j].p), r->cf)) 133 131 o = j; 134 132 } … … 162 160 if (p_LmShortDivisibleBy(T[j].p, sevT[j],p, not_sev, r)) 163 161 { 164 mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), 165 &rest, currRing->cf); 166 if (!n_IsZero(mult, currRing)) { 162 mult= n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf); 163 if (!n_IsZero(mult, r)) { 167 164 return j; 168 165 } 169 166 } 170 167 #else 171 if (!(sevT[j] & not_sev) && 172 p_LmDivisibleBy(T[j].p, p, r)) 173 { 174 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), 175 &rest, currRing->cf); 176 if (!n_IsZero(mult, currRing)) { 168 if (!(sevT[j] & not_sev) && p_LmDivisibleBy(T[j].p, p, r)) 169 { 170 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf); 171 if (!n_IsZero(mult, r)) { 177 172 return j; 178 173 } … … 193 188 p, not_sev, r)) 194 189 { 195 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), 196 &rest, currRing->cf); 197 if (!n_IsZero(mult, currRing)) { 190 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf); 191 if (!n_IsZero(mult, r)) { 198 192 return j; 199 193 } 200 194 } 201 195 #else 202 if (!(sevT[j] & not_sev) && 203 p_LmDivisibleBy(T[j].t_p, p, r)) 204 { 205 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), 206 &rest, currRing->cf); 207 if (!n_IsZero(mult, currRing)) { 196 if (!(sevT[j] & not_sev) && p_LmDivisibleBy(T[j].t_p, p, r)) 197 { 198 mult = n_QuotRem(pGetCoeff(p), pGetCoeff(T[j].p), &rest, r->cf); 199 if (!n_IsZero(mult, r)) { 208 200 return j; 209 201 }
Note: See TracChangeset
for help on using the changeset viewer.