Changeset e9c3b2 in git for kernel/ideals.h
- Timestamp:
- Mar 15, 2011, 7:17:47 PM (12 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 92e0ebb492f002a11e78b302b3758d32aedea17e
- Parents:
- 1ed3466deda30d9e243b441fb4bc4e0c4729cf69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.