Changeset b8f199 in git for kernel/ideals.cc
- Timestamp:
- Mar 16, 2011, 4:42:56 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- fddf1c0b111391917a4d5965b7ddf45adb7c05d6
- Parents:
- ac434faa72fa3537bfa0e82a2b6492249ea618d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
rac434f rb8f199 1201 1201 if (w!=NULL) delete w; 1202 1202 idDelete(&temp); 1203 1204 1203 if(syz_ring!=orig_ring) 1205 1204 rChangeCurrRing(orig_ring); … … 3839 3838 3840 3839 /*3 3841 * searches for unitsin the components of the module arg and3842 * returns the first one 3843 */ 3844 static int idReadOut Units(ideal arg,int* comp)3840 * searches for the next unit in the components of the module arg and 3841 * returns the first one; 3842 */ 3843 static int idReadOutPivot(ideal arg,int* comp) 3845 3844 { 3846 3845 if (idIs0(arg)) return -1; … … 3859 3858 if (componentIsUsed[j]==0) 3860 3859 { 3860 #ifdef HAVE_RINGS 3861 if (pLmIsConstantComp(p) && rField_is_Ring(currRing) && 3862 nIsUnit(pGetCoeff(p))) 3863 { 3864 #else 3861 3865 if (pLmIsConstantComp(p)) 3862 3866 { 3867 #endif 3863 3868 generator = i; 3864 3869 componentIsUsed[j] = 1; … … 3950 3955 int i,next_gen,next_comp; 3951 3956 ideal res=arg; 3952 3953 3957 if (!inPlace) res = idCopy(arg); 3954 3958 res->rank=si_max(res->rank,idRankFreeModule(res)); … … 3959 3963 loop 3960 3964 { 3961 next_gen = idReadOut Units(res,&next_comp);3965 next_gen = idReadOutPivot(res,&next_comp); 3962 3966 if (next_gen<0) break; 3963 3967 del++;
Note: See TracChangeset
for help on using the changeset viewer.