Changeset aec5c9 in git
- Timestamp:
- Apr 29, 2011, 2:51:47 PM (12 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- bfa04ee2a025a85b141d50d577c0438ec69e4233
- Parents:
- 760a78f4333abdcf36c17059f611fa15a34c2dac
- git-author:
- Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-04-29 14:51:47+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:31+01:00
- Location:
- libpolys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/coeffs.h
r760a78f raec5c9 165 165 ring algring; //< implementation of extensions needs polynomials... 166 166 /// for Q_a/Zp_a, rInit 167 number minpoly; //< make it a number! (needed for ring.cc) must be set by n???InitChar 167 ///number minpoly; //< no longer needed: replaced by 168 // algring->minideal->[0] 168 169 169 170 170 171 //------------------------------------------- 171 char* comp ex_parameter; //< the name of sqrt(-1), i.e. 'i' or 'j' etc...?172 char* complex_parameter; //< the name of sqrt(-1), i.e. 'i' or 'j' etc...? 172 173 173 174 #ifdef HAVE_RINGS 174 175 /* The following members are for representing the ring Z/n, 175 where n is not a prime. We distinguish threecases:176 where n is not a prime. We distinguish four cases: 176 177 1.) n has at least two distinct prime factors. Then 177 178 modBase stores n, modExponent stores 1, modNumber -
libpolys/polys/monomials/ring.cc
r760a78f raec5c9 1559 1559 { 1560 1560 if ( rMinpolyIsNULL(r2) ) return FALSE; 1561 if (! n_Equal(r1->cf->minpoly, r2->cf->minpoly, r1->cf)) return FALSE; 1561 if (! n_Equal(r1->cf->algring->minideal->m[0], 1562 r2->cf->algring->minideal->m[0], r1->cf)) return FALSE; 1562 1563 } 1563 1564 else if (!rMinpolyIsNULL(r2)) return FALSE; … … 1630 1631 if (r2->order[i] != 0) return FALSE; 1631 1632 1632 // we do not check minpoly 1633 // we do not check minpoly/minideal 1633 1634 // we do not check qideal 1634 1635 … … 1985 1986 1986 1987 if (!rMinpolyIsNULL(r)) 1987 omCheckAddr(r->cf-> minpoly);1988 omCheckAddr(r->cf->algring->minideal->m[0]); 1988 1989 1989 1990 //assume(r->cf!=NULL); … … 5394 5395 const ring R = C->algring; 5395 5396 assume( R != NULL ); 5396 return idIs0(R-> qideal);5397 return idIs0(R->minideal); 5397 5398 } 5398 5399 return TRUE; -
libpolys/polys/monomials/ring.h
r760a78f raec5c9 197 197 int* block1; /* ending pos., rInit/rSleftvOrdering2Ordering*/ 198 198 // char** parameter; /* names of parameters, rInit */ 199 // number minpoly; /* for Q_a/Zp_a, rInit */ 200 ideal minideal; 199 // number minpoly; /* replaced by minideal->m[0] */ 200 ideal minideal; /* for Q_a/Zp_a, rInit; 201 for a start, we assume that there is either no 202 or exactly one generator in minideal, playing 203 the role of the former minpoly; minideal may 204 also be NULL which coincides with the 205 no-generator-case */ 201 206 int** wvhdl; /* array of weight vectors, rInit/rSleftvOrdering2Ordering */ 202 207 char ** names; /* array of variable names, rInit */
Note: See TracChangeset
for help on using the changeset viewer.