Changeset 4a45a4e in git
- Timestamp:
- Jun 15, 2015, 12:16:06 PM (8 years ago)
- Branches:
- (u'spielwiese', 'a7324b6e0b44a1a8ed3fa4d9ca3e2ff210ddd52c')
- Children:
- 4470e259ee2a2b265d8bdc47b48ea3e4619298b5
- Parents:
- 0269e193f4830d56d57f6a85911be55807f13b15
- Location:
- libpolys/polys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r0269e1 r4a45a4e 351 351 #ifndef SING_NDEBUG 352 352 #if MYTEST 353 Print("p_Setm_General: ro_isTemp ord: pos: %d, p: ", pos); p_ DebugPrint(p, r, r, 1);353 Print("p_Setm_General: ro_isTemp ord: pos: %d, p: ", pos); p_wrp(p, r); 354 354 #endif 355 355 #endif … … 388 388 #if MYTEST 389 389 // if( p->exp[o->data.isTemp.start] > 0 ) 390 PrintS("after Values: "); p_ DebugPrint(p, r, r, 1);390 PrintS("after Values: "); p_wrp(p, r); 391 391 #endif 392 392 #endif … … 399 399 #ifndef SING_NDEBUG 400 400 #if MYTEST 401 Print("p_Setm_General: ro_is ord: pos: %d, p: ", pos); p_ DebugPrint(p, r, r, 1);401 Print("p_Setm_General: ro_is ord: pos: %d, p: ", pos); p_wrp(p, r); 402 402 #endif 403 403 #endif … … 417 417 #ifndef SING_NDEBUG 418 418 #if MYTEST 419 Print("p_Setm_General: ro_is : in rSetm: pos: %d, c: %d > limit: %d\n", c, pos, limit); // p_DebugPrint(p, r, r, 1);419 Print("p_Setm_General: ro_is : in rSetm: pos: %d, c: %d > limit: %d\n", c, pos, limit); 420 420 PrintS("preComputed Values: "); 421 p_ DebugPrint(p, r, r, 1);421 p_wrp(p, r); 422 422 #endif 423 423 #endif … … 447 447 #if MYTEST 448 448 Print("Respective F[c - %d: %d] pp: ", limit, c); 449 p_ DebugPrint(pp, r, r, 1);449 p_wrp(pp, r); 450 450 #endif 451 451 #endif … … 492 492 // TODO: how to check this for computed values??? 493 493 #if MYTEST 494 PrintS("Computed Values: "); p_ DebugPrint(p, r, r, 1);494 PrintS("Computed Values: "); p_wrp(p, r); 495 495 #endif 496 496 #endif … … 511 511 #if MYTEST 512 512 Print("ELSE p_Setm_General: ro_is :: c: %d <= limit: %d, vo: %d, exp: %d\n", c, limit, vo, p->exp[vo]); 513 p_ DebugPrint(p, r, r, 1);513 p_wrp(p, r); 514 514 #endif 515 515 #endif -
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 -
libpolys/polys/monomials/ring.h
r0269e1 r4a45a4e 801 801 #endif 802 802 803 #ifndef SING_NDEBUG804 /// debug-print at most nTerms (2 by default) terms from poly/vector p,805 /// assuming that lt(p) lives in lmRing and tail(p) lives in tailRing.806 void p_DebugPrint(const poly p, const ring lmRing, const ring tailRing, const int nTerms = 2);807 #endif808 809 803 int64 * rGetWeightVec(ring r); 810 804 void rSetWeightVec(ring r, int64 *wv); -
libpolys/polys/simpleideals.cc
r0269e1 r4a45a4e 73 73 for (int i = 0; i <= j; i++) 74 74 { 75 Print("generator %d: ",i); p_ DebugPrint(id->m[i], lmRing, tailRing, debugPrint);75 Print("generator %d: ",i); p_wrp(id->m[i], lmRing, tailRing); 76 76 } 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.