Changeset e9c3b2 in git
- Timestamp:
- Mar 15, 2011, 7:17:47 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 92e0ebb492f002a11e78b302b3758d32aedea17e
- Parents:
- 1ed3466deda30d9e243b441fb4bc4e0c4729cf69
- Location:
- kernel
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r1ed346 re9c3b2 71 71 } 72 72 73 #if ndef NDEBUG73 #ifdef PDEBUG 74 74 // this is only for outputting an ideal within the debugger 75 75 void idShow(const ideal id, const ring lmRing, const ring tailRing, const int debugPrint) -
kernel/ideals.h
r1ed346 re9c3b2 54 54 #endif 55 55 ideal idCopyFirstK (const ideal ide, const int k); 56 /*- deletes an ideal -*/ 56 57 /// delete an ideal 57 58 #define idDelete(h) id_Delete(h, currRing) 58 59 void id_Delete (ideal* h, ring r); 59 60 void id_ShallowDelete (ideal* h, ring r); 60 /*- initialise an ideal -*/ 61 /*- initialise an ideal -*/ // ? 62 63 /// initialise the maximal ideal (at 0) 61 64 ideal idMaxIdeal (int deg); 62 /*- initialise the maximal ideal (at 0) -*/ 65 66 /// gives an ideal the minimal possible size 63 67 void idSkipZeroes (ideal ide); 64 /* index of generator with leading term in ground ring (if any); 65 otherwise -1 */ 68 69 /// index of generator with leading term in ground ring (if any); otherwise -1 66 70 int idPosConstant (ideal id); 67 /*gives an ideal the minimal possible size*/ 71 72 /// Count the effective size of an ideal 73 /// (without the trailing allocated zero-elements) 74 static inline int idSize(const ideal id) 75 { 76 int j = IDELEMS(id) - 1; 77 poly* mm = id->m; 78 while ((j >= 0) && (mm[j] == NULL)) j--; 79 return (j + 1); 80 }; 81 68 82 void idNorm(ideal id); 69 83 void idDelMultiples(ideal id); … … 207 221 ideal id_TensorModuleMult(const int m, const ideal M, const ring rRing = currRing); // image of certain map for BGG 208 222 209 #if ndef NDEBUG223 #ifdef PDEBUG 210 224 /* Shows an ideal -- only for debugging */ 211 225 void idShow(const ideal id, const ring lmRing = currRing, const ring tailRing = currRing, const int debugPrint = 0); 212 #endif 213 #endif 226 #else 227 #define idShow(id, lmRing, tailRing, debugPrint) ((void)0) 228 #endif 229 #endif -
kernel/intvec.cc
r1ed346 re9c3b2 125 125 { 126 126 return omStrDup(ivString(1, 0, dim)); 127 } 128 129 void intvec::view () const 130 { 131 Print ("intvec: {rows: %d, cols: %d, length: %d, Values: \n", rows(), cols(), length()); 132 133 for (int i = 0; i < rows(); i++) 134 { 135 Print ("Row[%3d]:", i); 136 for (int j = 0; j < cols(); j++) 137 Print (" %5d", this->operator[]((i)*cols()+j) ); 138 PrintLn (); 139 } 140 PrintS ("}\n"); 127 141 } 128 142 -
kernel/intvec.h
r1ed346 re9c3b2 86 86 inline void length(int l) { row = l; col = 1; } 87 87 void show(int mat=0,int spaces=0) const; 88 void view() const; 89 88 90 inline void makeVector() { row*=col;col=1; } 89 91 char * String(int dim = 2) const; -
kernel/kstd1.cc
r1ed346 re9c3b2 1502 1502 p = pCopy(q); 1503 1503 deleteHC(&p,&o,&j,strat); 1504 kTest(strat); 1504 1505 if (TEST_OPT_PROT) { PrintS("r"); mflush(); } 1506 if (BVERBOSE(23)) kDebugPrint(strat); 1505 1507 if (p!=NULL) p = redMoraNF(p,strat, lazyReduce & KSTD_NF_ECART); 1506 1508 if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0)) -
kernel/kstd2.cc
r1ed346 re9c3b2 1293 1293 kTest(strat); 1294 1294 if (TEST_OPT_PROT) { PrintS("r"); mflush(); } 1295 if (BVERBOSE(23)) kDebugPrint(strat); 1295 1296 int max_ind; 1296 1297 p = redNF(pCopy(q),max_ind,lazyReduce & KSTD_NF_NONORM,strat);
Note: See TracChangeset
for help on using the changeset viewer.