Changeset 71955d in git
- Timestamp:
- Jul 29, 2011, 11:01:00 AM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- ad3aa7914b6579de07eda993d2ee2be453525603
- Parents:
- 73ad0c1da96d24bf6cc659867bd85c7b02df2b6d
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-07-29 11:01:00+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:01:15+01:00
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r73ad0c r71955d 2266 2266 } 2267 2267 2268 int idElem(const ideal F)2269 {2270 int i=0,j=IDELEMS(F)-1;2271 2272 while(j>=0)2273 {2274 if ((F->m)[j]!=NULL) i++;2275 j--;2276 }2277 return i;2278 }2279 2280 2268 /* 2281 2269 *computes module-weights for liftings of homogeneous modules -
kernel/ideals.h
r73ad0c r71955d 177 177 intvec *idSort(ideal id,BOOLEAN nolex=TRUE); 178 178 ideal idModulo (ideal h1,ideal h2, tHomog h=testHomog, intvec ** w=NULL); 179 int idElem(const ideal F);180 179 matrix idCoeffOfKBase(ideal arg, ideal kbase, poly how); 181 180 // transpose a module … … 186 185 intvec *idQHomWeight(ideal id); 187 186 188 void idNormalize(ideal id);189 190 187 ideal idXXX (ideal h1, int k); 191 188 -
libpolys/polys/simpleideals.cc
r73ad0c r71955d 189 189 IDELEMS(ide) = j+1; 190 190 } 191 } 192 193 int idElem(const ideal F) 194 { 195 int i=0,j=IDELEMS(F)-1; 196 197 while(j>=0) 198 { 199 if ((F->m)[j]!=NULL) i++; 200 j--; 201 } 202 return i; 191 203 } 192 204 -
libpolys/polys/simpleideals.h
r73ad0c r71955d 55 55 void idSkipZeroes (ideal ide); 56 56 /*gives an ideal the minimal possible size*/ 57 58 /// number of non-zero polys in F 59 int idElem(const ideal F); 60 /// normialize all polys in id 61 void id_Normalize(ideal id, const ring r); 57 62 58 63 #ifdef PDEBUG
Note: See TracChangeset
for help on using the changeset viewer.