Changeset 4a45a4e in git


Ignore:
Timestamp:
Jun 15, 2015, 12:16:06 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4470e259ee2a2b265d8bdc47b48ea3e4619298b5
Parents:
0269e193f4830d56d57f6a85911be55807f13b15
Message:
removed p_DebugPrint (->p_wrp)
Location:
libpolys/polys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r0269e1 r4a45a4e  
    351351#ifndef SING_NDEBUG
    352352#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);
    354354#endif
    355355#endif
     
    388388#if MYTEST
    389389//          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);
    391391#endif
    392392#endif
     
    399399#ifndef SING_NDEBUG
    400400#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);
    402402#endif
    403403#endif
     
    417417#ifndef SING_NDEBUG
    418418#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);
    420420            PrintS("preComputed Values: ");
    421             p_DebugPrint(p, r, r, 1);
     421            p_wrp(p, r);
    422422#endif
    423423#endif
     
    447447#if MYTEST
    448448            Print("Respective F[c - %d: %d] pp: ", limit, c);
    449             p_DebugPrint(pp, r, r, 1);
     449            p_wrp(pp, r);
    450450#endif
    451451#endif
     
    492492            // TODO: how to check this for computed values???
    493493#if MYTEST
    494             PrintS("Computed Values: "); p_DebugPrint(p, r, r, 1);
     494            PrintS("Computed Values: "); p_wrp(p, r);
    495495#endif
    496496#endif
     
    511511#if MYTEST
    512512            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);
    514514#endif
    515515#endif
  • libpolys/polys/monomials/ring.cc

    r0269e1 r4a45a4e  
    42464246
    42474247
    4248 #ifndef SING_NDEBUG
    4249 /// 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 term
    4266       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   else
    4279     PrintS("0\n");
    4280 }
    4281 #endif
    4282 
    4283 
    42844248//    F = system("ISUpdateComponents", F, V, MIN );
    42854249//    // replace gen(i) -> gen(MIN + V[i-MIN]) for all i > MIN in all terms from F!
     
    42964260#ifdef PDEBUG
    42974261    Print("F[%d]:", j);
    4298     p_DebugPrint(F->m[j], r, r, 0);
     4262    p_wrp(F->m[j], r);
    42994263#endif
    43004264
     
    43154279    Print("new F[%d]:", j);
    43164280    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}
    43254285
    43264286/*2
  • libpolys/polys/monomials/ring.h

    r0269e1 r4a45a4e  
    801801#endif
    802802
    803 #ifndef SING_NDEBUG
    804 /// 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 #endif
    808 
    809803int64 * rGetWeightVec(ring r);
    810804void rSetWeightVec(ring r, int64 *wv);
  • libpolys/polys/simpleideals.cc

    r0269e1 r4a45a4e  
    7373    for (int i = 0; i <= j; i++)
    7474    {
    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);
    7676    }
    7777  }
Note: See TracChangeset for help on using the changeset viewer.