Changeset 2244ca3 in git
- Timestamp:
- Jun 3, 2022, 4:26:02 PM (23 months ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- acf7b8de48ccf8ffe7822fe9785eb2a0f29e0e71
- Parents:
- c04a1902f8a24f0b456ea23b223d2c37cdd3d05d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/combinatorics/hutil.cc
rc04a19 r2244ca3 29 29 STATIC_VAR scfmon hsecure= NULL; 30 30 31 scfmon hInit(ideal S, ideal Q, int *Nexist, ring tailRing) 32 { 33 id_TestTail(S, currRing, tailRing); 34 if (Q!=NULL) id_TestTail(Q, currRing, tailRing); 35 36 // if (tailRing != currRing) 37 hisModule = id_RankFreeModule(S, currRing, tailRing); 38 // else 39 // hisModule = id_RankFreeModule(S, currRing); 31 scfmon hInit(ideal S, ideal Q, int *Nexist, ring src) 32 { 33 id_LmTest(S, src); 34 if (Q!=NULL) id_LmTest(Q, src); 35 36 hisModule = S->rank; 37 if (hisModule==1) 38 { 39 for(int i=IDELEMS(S)-1;i>=0;i--) 40 { 41 if (S->m[i]!=NULL) 42 { 43 int c=p_GetComp(S->m[i],src); 44 if (c==0) { hisModule=0; break;} 45 else if (c>hisModule) { hisModule=c; } 46 } 47 } 48 } 40 49 41 50 if (hisModule < 0) … … 94 103 if (*si!=NULL) 95 104 { 96 *ek = (scmon) omAlloc((( currRing->N)+1)*sizeof(int));97 p_GetExpV(*si, *ek, currRing);105 *ek = (scmon) omAlloc(((src->N)+1)*sizeof(int)); 106 p_GetExpV(*si, *ek, src); 98 107 ek++; 99 108 } … … 104 113 if (*qi!=NULL) 105 114 { 106 *ek = (scmon) omAlloc((( currRing->N)+1)*sizeof(int));107 p_GetExpV(*qi, *ek, currRing);115 *ek = (scmon) omAlloc(((src->N)+1)*sizeof(int)); 116 p_GetExpV(*qi, *ek, src); 108 117 ek++; 109 118 }
Note: See TracChangeset
for help on using the changeset viewer.