Changeset da0565 in git for kernel/preimage.cc
- Timestamp:
- Mar 16, 2012, 7:01:20 PM (12 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- cd9796d49b820bd9ecc81b49dc04073e0bbf6012
- Parents:
- 4d94c97313de2ce07f4bfae84308b31c1294a569
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-16 19:01:20+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-16 19:36:36+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/preimage.cc
r4d94c97 rda0565 92 92 } 93 93 94 if (n_SetMap(theImageRing->cf,dst_r->cf) != ndCopyMap) 94 assume(n_SetMap(theImageRing->cf, dst_r->cf) == ndCopyMap); 95 96 if (theImageRing->cf != dst_r->cf) 95 97 { 98 /// TODO: there might be extreme cases where this doesn't hold... 96 99 Werror("Coefficient fields/rings must be equal"); 97 100 return NULL; 98 101 } 99 102 103 const ring save_ring = currRing; if (currRing!=tmpR) rChangeCurrRing(tmpR); // due to kStd 104 100 105 if (id==NULL) 101 106 j = 0; … … 123 128 temp1->m[i] = p; 124 129 } 125 id Test(temp1);130 id_Test(temp1, tmpR); 126 131 for (i=sourcering->N;i<sourcering->N+j0;i++) 127 132 { … … 137 142 } 138 143 // we ignore here homogenity - may be changed later: 144 139 145 temp2 = kStd(temp1,NULL,isNotHomog,NULL); 146 140 147 id_Delete(&temp1,tmpR); 141 148 for (i=0;i<IDELEMS(temp2);i++) … … 167 174 id_Delete(&temp2, tmpR); 168 175 idSkipZeroes(temp1); 176 177 if (currRing!=save_ring) rChangeCurrRing(save_ring); 178 169 179 rDelete(tmpR); 170 180 return temp1;
Note: See TracChangeset
for help on using the changeset viewer.