Changeset 20f29bb in git


Ignore:
Timestamp:
Apr 24, 2015, 2:06:33 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
4442f24da6fca98672573b143a53742e82d5b9c2
Parents:
769a27f375c14dbe7cac70321db6bb76ef18fb07
Message:
conversion of bigint to extension fields
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • Tst/Short/ok_s.lst

    r769a27 r20f29bb  
    4242bug_tr704
    4343bug_genus_etc
     44conv_bi
    4445facstd
    4546fermat_gcd_1var
  • libpolys/coeffs/coeffs.h

    r769a27 r20f29bb  
    824824{ assume(r != NULL); return getCoeffType(r)==n_Q && (r->is_field); }
    825825
     826static FORCE_INLINE BOOLEAN nCoeff_is_Q_or_BI(const coeffs r)
     827{ assume(r != NULL); return getCoeffType(r)==n_Q; }
     828
    826829static FORCE_INLINE BOOLEAN nCoeff_is_numeric(const coeffs r) /* R, long R, long C */
    827830{ assume(r != NULL);  return (getCoeffType(r)==n_R) || (getCoeffType(r)==n_long_R) || (getCoeffType(r)==n_long_C); }
  • libpolys/polys/ext_fields/algext.cc

    r769a27 r20f29bb  
    10541054    if (nCoeff_is_Zp(src) && nCoeff_is_Q(bDst))
    10551055      return naMapP0;                            /// Z/p   -->  Q(a)
    1056     if (nCoeff_is_Q(src) && nCoeff_is_Zp(bDst))
     1056    if (nCoeff_is_Q_or_BI(src) && nCoeff_is_Zp(bDst))
    10571057      return naMap0P;                            /// Q      --> Z/p(a)
    10581058    if ((src->rep==n_rep_gap_gmp) && nCoeff_is_Zp(bDst))
     
    10661066  if (h != 1) return NULL;
    10671067  if ((!nCoeff_is_Zp(bDst)) && (!nCoeff_is_Q(bDst))) return NULL;
    1068   if ((!nCoeff_is_Zp(bSrc)) && (!nCoeff_is_Q(bSrc))) return NULL;
     1068  if ((!nCoeff_is_Zp(bSrc)) && (!nCoeff_is_Q_or_BI(bSrc))) return NULL;
    10691069
    10701070  nMapFunc nMap=n_SetMap(src->extRing->cf,dst->extRing->cf);
  • libpolys/polys/ext_fields/transext.cc

    r769a27 r20f29bb  
    19621962    if (nCoeff_is_Zp(src) && nCoeff_is_Q(bDst))
    19631963      return ntMapP0;                                 /// Z/p     -->  Q(T)
    1964     if (nCoeff_is_Q(src) && nCoeff_is_Zp(bDst))
     1964    if (nCoeff_is_Q_or_BI(src) && nCoeff_is_Zp(bDst))
    19651965      return ntMap0P;                                 /// Q       --> Z/p(T)
    19661966    if (nCoeff_is_Zp(src) && nCoeff_is_Zp(bDst))
Note: See TracChangeset for help on using the changeset viewer.