Changeset 4a45a4e in git for libpolys/polys/monomials/ring.cc
- Timestamp:
- Jun 15, 2015, 12:16:06 PM (8 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- 4470e259ee2a2b265d8bdc47b48ea3e4619298b5
- Parents:
- 0269e193f4830d56d57f6a85911be55807f13b15
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/ring.cc
r0269e1 r4a45a4e 4246 4246 4247 4247 4248 #ifndef SING_NDEBUG4249 /// debug-print at most nTerms (2 by default) terms from poly/vector p,4250 /// assuming that lt(p) lives in lmRing and tail(p) lives in tailRing.4251 void p_DebugPrint(const poly p, const ring lmRing, const ring tailRing, const int nTerms)4252 {4253 assume( nTerms >= 0 );4254 if( p != NULL )4255 {4256 assume( p != NULL );4257 4258 p_Write(p, lmRing, tailRing);4259 4260 if( (p != NULL) && (nTerms > 0) )4261 {4262 assume( p != NULL );4263 assume( nTerms > 0 );4264 4265 // debug pring leading term4266 m_DebugPrint(p, lmRing);4267 4268 poly q = pNext(p); // q = tail(p)4269 4270 // debug pring tail (at most nTerms-1 terms from it)4271 for(int j = nTerms - 1; (q !=NULL) && (j > 0); pIter(q), --j)4272 m_DebugPrint(q, tailRing);4273 4274 if (q != NULL)4275 PrintS("...\n");4276 }4277 }4278 else4279 PrintS("0\n");4280 }4281 #endif4282 4283 4284 4248 // F = system("ISUpdateComponents", F, V, MIN ); 4285 4249 // // replace gen(i) -> gen(MIN + V[i-MIN]) for all i > MIN in all terms from F! … … 4296 4260 #ifdef PDEBUG 4297 4261 Print("F[%d]:", j); 4298 p_ DebugPrint(F->m[j], r, r, 0);4262 p_wrp(F->m[j], r); 4299 4263 #endif 4300 4264 … … 4315 4279 Print("new F[%d]:", j); 4316 4280 p_Test(F->m[j], r); 4317 p_DebugPrint(F->m[j], r, r, 0); 4318 #endif 4319 } 4320 4321 } 4322 4323 4324 4281 p_wrp(F->m[j], r); 4282 #endif 4283 } 4284 } 4325 4285 4326 4286 /*2
Note: See TracChangeset
for help on using the changeset viewer.