Changeset 7e9f12 in git
- Timestamp:
- Mar 22, 2012, 6:54:18 PM (11 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 16c4008b20b489f27f77ca9a45f6dc033a689571
- Parents:
- bcfd11a55d73c58524f3c5043376c6d7147cb690
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-22 18:54:18+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-23 16:06:34+01:00
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
rbcfd11a r7e9f12 247 247 248 248 n_Normalize(p, currRing->cf); 249 250 assume( currRing->cf->extRing->qideal == NULL ); 249 251 250 252 AlgExtInfo A; 251 253 252 A.r = currRing->cf->extRing; // Use the sameground field!253 A.i= idInit(1,1);254 A.r = rCopy(currRing->cf->extRing); // Copy ground field! 255 ideal q = idInit(1,1); 254 256 255 257 assume( DEN((fractionObject *)(p)) == NULL ); // minpoly must be a poly...!? 256 258 257 A.i->m[0] = NUM((fractionObject *)p); 259 q->m[0] = NUM((fractionObject *)p); 260 A.r->qideal = q; 258 261 259 262 #if 0 … … 273 276 Werror("Could not construct the alg. extension: llegal minpoly?"); 274 277 // cleanup A: TODO 278 rDelete( A.r ); 275 279 return TRUE; 276 280 } -
Singular/ipshell.cc
rbcfd11a r7e9f12 2177 2177 AlgExtInfo extParam; 2178 2178 2179 extParam.i = extRing->qideal;2180 2179 extParam.r = extRing; 2181 2182 extRing->qideal = NULL; // ???2183 2180 2184 2181 R->cf = nInitChar(n_algExt, (void*)&extParam); … … 2188 2185 TransExtInfo extParam; 2189 2186 extParam.r = extRing; 2187 assume( extRing->qideal == NULL ); 2190 2188 2191 2189 R->cf = nInitChar(n_transExt, &extParam); … … 5187 5185 AlgExtInfo extParam; 5188 5186 extParam.r = (ring)pn->Data(); 5189 extParam.i = (extParam.r->qideal);5190 5187 5191 5188 cf = nInitChar(n_algExt, &extParam); // Q[a]/<minideal> -
libpolys/polys/ext_fields/algext.cc
rbcfd11a r7e9f12 553 553 554 554 // NOTE: Q(a)[x] && Q(a)[y] should better share the _same_ Q(a)... 555 if( rEqual(naRing, e->r, TRUE) ) 555 if( rEqual(naRing, e->r, TRUE) ) // also checks the equality of qideals 556 556 { 557 557 const ideal mi = naRing->qideal; 558 558 assume( IDELEMS(mi) == 1 ); 559 ideal ii = e->i;559 const ideal ii = e->r->qideal; 560 560 assume( IDELEMS(ii) == 1 ); 561 561 562 562 // TODO: the following should be extended for 2 *equal* rings... 563 if( p_EqualPolys(mi->m[0], ii->m[0], naRing, e->r) ) 564 { 565 id_Delete(&ii, e->r); 566 rDelete(e->r); 567 return TRUE; 568 } 563 assume( p_EqualPolys(mi->m[0], ii->m[0], naRing, e->r) ); 564 565 rDelete(e->r); 566 567 return TRUE; 569 568 } 570 569 … … 831 830 assume(e->r != NULL); // extRing; 832 831 assume(e->r->cf != NULL); // extRing->cf; 833 assume((e->i != NULL) && // minideal has one 834 (IDELEMS(e->i) != 0) && // non-zero generator 835 (e->i->m[0] != NULL) ); // at m[0]; 836 837 assume( e->r->qideal == NULL ); 832 833 assume((e->r->qideal != NULL) && // minideal has one 834 (IDELEMS(e->r->qideal) == 1) && // non-zero generator 835 (e->r->qideal->m[0] != NULL) ); // at m[0]; 838 836 839 837 assume( cf != NULL ); 840 838 assume(getCoeffType(cf) == ID); // coeff type; 841 839 842 ring R = e->r; 843 844 R->ref ++; // increase the ref.counter for the ground poly. ring! 845 846 R->qideal = e->i; // make a copy? 847 848 cf->extRing = R; 840 e->r->ref ++; // increase the ref.counter for the ground poly. ring! 841 const ring R = e->r; // no copy! 842 assume( R->qideal == e->r->qideal ); 843 cf->extRing = R; 849 844 850 845 /* propagate characteristic up so that it becomes -
libpolys/polys/ext_fields/algext.h
rbcfd11a r7e9f12 38 38 39 39 /// struct for passing initialization parameters to naInitChar 40 typedef struct { ring r; ideal i; } AlgExtInfo;40 typedef struct { ring r; /*ideal i;*/ } AlgExtInfo; // `r.qideal` is supposed to be `i` 41 41 42 42 /// Get a mapping function from src into the domain of this type (n_algExt) -
libpolys/tests/polys_test.h
rbcfd11a r7e9f12 2002 2002 TS_ASSERT(type == n_algExt); 2003 2003 2004 r->qideal = minIdeal; 2004 2005 AlgExtInfo extParam; 2005 2006 extParam.r = r; 2006 extParam.i = minIdeal;2007 2007 2008 2008 clog << "Next create the extension field Q[a]/<a2+1>..." << endl; … … 2103 2103 TS_ASSERT(type == n_algExt); 2104 2104 2105 r->qideal = minIdeal; 2105 2106 AlgExtInfo extParam; 2106 2107 extParam.r = r; 2107 extParam.i = minIdeal;2108 2108 2109 2109 clog << "Next create the extension field Q[b]/<b^7+17>..." << endl; … … 2247 2247 TS_ASSERT(type == n_algExt); 2248 2248 2249 r->qideal = minIdeal; 2249 2250 AlgExtInfo extParam; 2250 2251 extParam.r = r; 2251 extParam.i = minIdeal;2252 2252 2253 2253 clog << "Next create the extension field Z_17[a]/<a^2+3>..." << endl;
Note: See TracChangeset
for help on using the changeset viewer.