Changeset f7d39b in git
- Timestamp:
- Sep 15, 2014, 9:12:38 PM (9 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- 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
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
ra4771e1 rf7d39b 25 25 #include <coeffs/coeffs.h> 26 26 #include <coeffs/numbers.h> 27 28 #include <kernel/polys.h> 27 // #include <coeffs/longrat.h> 28 29 29 30 #include <polys/monomials/ring.h> 30 31 #include <polys/matpol.h> … … 37 38 #include <kernel/ideals.h> 38 39 40 #include <kernel/polys.h> 41 39 42 #include <kernel/GBEngine/kstd1.h> 40 43 #include <kernel/GBEngine/syz.h> 41 42 #include <coeffs/longrat.h>43 44 44 45 -
kernel/ideals.h
ra4771e1 rf7d39b 7 7 * ABSTRACT - all basic methods to manipulate ideals 8 8 */ 9 10 #include <polys/monomials/ring.h> 11 #include <polys/monomials/p_polys.h> 9 12 #include <polys/simpleideals.h> 10 #include <kernel/polys.h> 13 14 extern ring currRing; 11 15 12 16 #include <kernel/structs.h> // for tHomog … … 54 58 #define idSimpleAdd(A,B) id_SimpleAdd(A,B,currRing) 55 59 56 #ifdef PDEBUG57 #define idTest(A) id_DBTest(A, PDEBUG, __FILE__,__LINE__,currRing)58 #define idPrint(id) idShow(id, currRing, currRing)59 #else60 #define idTest(A) do {} while (0)61 #define idPrint(A) do {} while (0)62 #endif63 64 60 ideal id_Copy (ideal h1, const ring r); 61 62 #define idPrint(id) id_Print(id, currRing, currRing) 63 #define idTest(id) id_Test(id, currRing) 65 64 66 65 #if 0 -
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.