Changeset 0654122 in git


Ignore:
Timestamp:
May 10, 2011, 2:45:00 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
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
Message:
fixes in impl. of alg. ext. field / ifdef factory stuff
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/algext.cc

    r7d73857 r0654122  
    511511}
    512512
    513 nMapFunc naSetMap(const ring src, const ring dst)
    514 {
    515   /* dst->cf is 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))
     513nMapFunc 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))
    519519    return naMap00;                                      /// Q     -->  Q(a)
    520520 
    521   if (rField_is_Zp(src) && rField_is_Q_a(dst))
     521  if (nCoeff_is_Zp(src) && nCoeff_is_Q_a(dst))
    522522    return naMapP0;                                      /// Z/p   -->  Q(a)
    523523 
    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)
    527528      return naCopyMap;                                  /// Q(a)   --> Q(a)
    528529    else
     
    530531  }
    531532 
    532   if (rField_is_Q(src) && rField_is_Zp_a(dst))
     533  if (nCoeff_is_Q(src) && nCoeff_is_Zp_a(dst))
    533534    return naMap0P;                                      /// Q      --> Z/p(a)
    534535 
    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)
    538539    else return naMapUP;                                 /// Z/u    --> Z/p(a)
    539540  }
    540541 
    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)
    544546      return naCopyMap;                                  /// Z/p(a) --> Z/p(a)
    545547    else
  • libpolys/polys/monomials/p_polys.cc

    r7d73857 r0654122  
    3939
    4040#include "coeffrings.h"
     41#ifdef HAVE_FACTORY
    4142#include "clapsing.h"
    42 
     43#endif
    4344
    4445/***************************************************************
Note: See TracChangeset for help on using the changeset viewer.