Changeset 0654122 in git
- Timestamp:
- May 10, 2011, 2:45:00 PM (12 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 643b1eba3ef81d25890fada39f203bb96b71bd49
- Parents:
- 7d73857bd54e9bc8480c720d2a0c39dae20a94ed
- git-author:
- Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-05-10 14:45:00+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:41+01:00
- Location:
- libpolys/polys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
r7d73857 r0654122 511 511 } 512 512 513 nMapFunc naSetMap(const ring src, const ringdst)514 { 515 /* dst ->cfis expected to be an (algebraic) extension field */516 assume( dst->cf->type== n_Ext);517 518 if ( rField_is_Q(src) && rField_is_Q_a(dst))513 nMapFunc naSetMap(const coeffs src, const coeffs dst) 514 { 515 /* dst is expected to be an (algebraic) extension field */ 516 assume(getCoeffType(dst) == n_Ext); 517 518 if (nCoeff_is_Q(src) && nCoeff_is_Q_a(dst)) 519 519 return naMap00; /// Q --> Q(a) 520 520 521 if ( rField_is_Zp(src) && rField_is_Q_a(dst))521 if (nCoeff_is_Zp(src) && nCoeff_is_Q_a(dst)) 522 522 return naMapP0; /// Z/p --> Q(a) 523 523 524 if (rField_is_Q_a(src) && rField_is_Q_a(dst)) 525 { 526 if (strcmp(rParameter(src)[0], rParameter(dst)[0]) == 0) 524 if (nCoeff_is_Q_a(src) && nCoeff_is_Q_a(dst)) 525 { 526 if (strcmp(rParameter(src->algring)[0], 527 rParameter(dst->algring)[0]) == 0) 527 528 return naCopyMap; /// Q(a) --> Q(a) 528 529 else … … 530 531 } 531 532 532 if ( rField_is_Q(src) && rField_is_Zp_a(dst))533 if (nCoeff_is_Q(src) && nCoeff_is_Zp_a(dst)) 533 534 return naMap0P; /// Q --> Z/p(a) 534 535 535 if ( rField_is_Zp(src) && rField_is_Zp_a(dst))536 { 537 if ( rChar(src) == rChar(dst)) return naMapPP;/// Z/p --> Z/p(a)536 if (nCoeff_is_Zp(src) && nCoeff_is_Zp_a(dst)) 537 { 538 if (src->ch == dst->ch) return naMapPP; /// Z/p --> Z/p(a) 538 539 else return naMapUP; /// Z/u --> Z/p(a) 539 540 } 540 541 541 if (rField_is_Zp_a(src) && rField_is_Zp_a(dst)) 542 { 543 if (strcmp(rParameter(src)[0], rParameter(dst)[0]) == 0) 542 if (nCoeff_is_Zp_a(src) && nCoeff_is_Zp_a(dst)) 543 { 544 if (strcmp(rParameter(src->algring)[0], 545 rParameter(dst->algring)[0]) == 0) 544 546 return naCopyMap; /// Z/p(a) --> Z/p(a) 545 547 else -
libpolys/polys/monomials/p_polys.cc
r7d73857 r0654122 39 39 40 40 #include "coeffrings.h" 41 #ifdef HAVE_FACTORY 41 42 #include "clapsing.h" 42 43 #endif 43 44 44 45 /***************************************************************
Note: See TracChangeset
for help on using the changeset viewer.