Changeset f7d39b in git for libpolys/polys
- Timestamp:
- Sep 15, 2014, 9:12:38 PM (10 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 4ec0f01d431893a4c0997d2bdfab87cb8d37e03e
- Parents:
- a4771e1b7535535946d3bd424ce5c97bd0866119
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-09-15 21:12:38+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-09-23 20:08:14+02:00
- Location:
- libpolys/polys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
ra4771e1 rf7d39b 775 775 { 776 776 assume(p!=NULL); 777 #ifdef PDEBUG 778 _p_Test(p,r,PDEBUG); 779 #endif 777 p_Test(p,r); 780 778 p_CheckPolyRing(p, r); 781 779 long o; … … 802 800 pp = p; 803 801 } 804 #ifdef PDEBUG 805 _p_Test(pp,r,PDEBUG); 806 #endif 802 p_Test(pp,r); 807 803 o = r->pFDeg(pp, r); 808 804 } … … 1446 1442 return NULL; 1447 1443 } 1448 #ifdef PDEBUG 1449 _p_Test(p,r,PDEBUG); 1450 #endif 1444 p_Test(p,r); 1451 1445 ok=!errorreported; 1452 1446 return p; … … 2040 2034 p_MonPower(p,exp,r); 2041 2035 p_MonPower(tail,exp,r); 2042 #ifdef PDEBUG2043 2036 p_Test(p,r); 2044 #endif2045 2037 return p; 2046 2038 } … … 2089 2081 // pIter(tail); 2090 2082 // } 2091 #ifdef PDEBUG2092 2083 p_Test(res,r); 2093 #endif2094 2084 return res; 2095 2085 } -
libpolys/polys/simpleideals.cc
ra4771e1 rf7d39b 417 417 418 418 #ifdef PDEBUG 419 void id_DBTest(ideal h1, int level, const char *f,const int l, const ring r )419 void id_DBTest(ideal h1, int level, const char *f,const int l, const ring r, const ring tailRing) 420 420 { 421 421 int i; … … 426 426 omCheckAddrSize(h1,sizeof(*h1)); 427 427 omdebugAddrSize(h1->m,h1->ncols*h1->nrows*sizeof(poly)); 428 428 429 /* to be able to test matrices: */ 429 430 for (i=(h1->ncols*h1->nrows)-1; i>=0; i--) 430 _p_Test(h1->m[i], r, level); 431 int new_rk=id_RankFreeModule(h1,r); 431 _pp_Test(h1->m[i], r, tailRing, level); 432 433 int new_rk=id_RankFreeModule(h1, r, tailRing); 432 434 if(new_rk > h1->rank) 433 435 { -
libpolys/polys/simpleideals.h
ra4771e1 rf7d39b 63 63 64 64 #ifdef PDEBUG 65 void id_DBTest(ideal h1, int level, const char *f,const int l, const ring r);66 #define id_Test (A, r) id_DBTest(A, PDEBUG, __FILE__,__LINE__, r)67 // #define id_Print(id, r) id_Show(id, r)65 void id_DBTest(ideal h1, int level, const char *f,const int l, const ring lR, const ring tR ); 66 #define id_TestTail(A, lR, tR) id_DBTest(A, PDEBUG, __FILE__,__LINE__, lR, tR) 67 #define id_Test(A, lR) id_DBTest(A, PDEBUG, __FILE__,__LINE__, lR, lR) 68 68 #else 69 #define id_Test (A, r) do {} while (0)70 // #define id_Print(A, r) do {} while (0)69 #define id_TestTail(A, lR, tR) do {} while (0) 70 #define id_Test(A, lR) do {} while (0) 71 71 #endif 72 72 … … 131 131 #ifdef PDEBUG 132 132 void idShow(const ideal id, const ring lmRing, const ring tailRing, const int debugPrint = 0); 133 #define id_Print(id, lR, tR) idShow(id, lR, tR) 134 #else 135 #define id_Print(A, lR, tR) do {} while (0) 133 136 #endif 137 134 138 135 139
Note: See TracChangeset
for help on using the changeset viewer.