Changeset 20f29bb in git
- Timestamp:
- Apr 24, 2015, 2:06:33 PM (8 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 4442f24da6fca98672573b143a53742e82d5b9c2
- Parents:
- 769a27f375c14dbe7cac70321db6bb76ef18fb07
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/Short/ok_s.lst
r769a27 r20f29bb 42 42 bug_tr704 43 43 bug_genus_etc 44 conv_bi 44 45 facstd 45 46 fermat_gcd_1var -
libpolys/coeffs/coeffs.h
r769a27 r20f29bb 824 824 { assume(r != NULL); return getCoeffType(r)==n_Q && (r->is_field); } 825 825 826 static FORCE_INLINE BOOLEAN nCoeff_is_Q_or_BI(const coeffs r) 827 { assume(r != NULL); return getCoeffType(r)==n_Q; } 828 826 829 static FORCE_INLINE BOOLEAN nCoeff_is_numeric(const coeffs r) /* R, long R, long C */ 827 830 { 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 1054 1054 if (nCoeff_is_Zp(src) && nCoeff_is_Q(bDst)) 1055 1055 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)) 1057 1057 return naMap0P; /// Q --> Z/p(a) 1058 1058 if ((src->rep==n_rep_gap_gmp) && nCoeff_is_Zp(bDst)) … … 1066 1066 if (h != 1) return NULL; 1067 1067 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; 1069 1069 1070 1070 nMapFunc nMap=n_SetMap(src->extRing->cf,dst->extRing->cf); -
libpolys/polys/ext_fields/transext.cc
r769a27 r20f29bb 1962 1962 if (nCoeff_is_Zp(src) && nCoeff_is_Q(bDst)) 1963 1963 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)) 1965 1965 return ntMap0P; /// Q --> Z/p(T) 1966 1966 if (nCoeff_is_Zp(src) && nCoeff_is_Zp(bDst))
Note: See TracChangeset
for help on using the changeset viewer.