Changeset ca058c in git
- Timestamp:
- Mar 9, 2012, 12:43:54 PM (11 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 41fea7e7855abb0fa24d84704ca2690c219670fb
- Parents:
- 1ddcde904c894e6fac1afc8cced863fa937c072d
- git-author:
- Martin Lee <martinlee84@web.de>2012-03-09 12:43:54+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-04-04 14:42:27+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facMul.cc
r1ddcde9 rca058c 51 51 52 52 CanonicalForm 53 reverseSubstQa (const fmpz_poly_t F, int d, const Variable& alpha, 54 const CanonicalForm& den) 55 { 56 Variable x= Variable (1); 53 reverseSubstQa (const fmpz_poly_t F, int d, const Variable& x, 54 const Variable& alpha, const CanonicalForm& den) 55 { 57 56 58 57 CanonicalForm result= 0; … … 115 114 116 115 denA *= denB; 117 A= reverseSubstQa (FLINTA, d, alpha, denA);116 A= reverseSubstQa (FLINTA, d, F.mvar(), alpha, denA); 118 117 119 118 fmpz_poly_clear (FLINTA); … … 226 225 227 226 denA *= denB; 228 A= reverseSubstQa (FLINTA, d, alpha, denA);227 A= reverseSubstQa (FLINTA, d, F.mvar(), alpha, denA); 229 228 fmpz_poly_clear (FLINTA); 230 229 fmpz_poly_clear (FLINTB); … … 519 518 if (CFFactory::gettype() == GaloisFieldDomain) 520 519 return mod (F, G); 521 if (F.inCoeffDomain() && G.isUnivariate() )520 if (F.inCoeffDomain() && G.isUnivariate() && !G.inCoeffDomain()) 522 521 { 523 522 if (b.getp() != 0) … … 632 631 if (CFFactory::gettype() == GaloisFieldDomain) 633 632 return div (F, G); 634 if (F.inCoeffDomain() && G.isUnivariate()) 635 { 636 if (b.getp() != 0) 637 return b(F); 638 return F; 633 if (F.inCoeffDomain() && G.isUnivariate() && !G.inCoeffDomain()) 634 { 635 return 0; 639 636 } 640 637 else if (F.inCoeffDomain() && G.inCoeffDomain()) … … 653 650 ZZ_pX NTLf= convertFacCF2NTLZZpX (F); 654 651 ZZ_pE result; 655 div (result, to_ZZ_pE (NTL g), to_ZZ_pE (NTLf));652 div (result, to_ZZ_pE (NTLf), to_ZZ_pE (NTLg)); 656 653 return b (convertNTLZZpX2CF (rep (result), alpha)); 657 654 } … … 2842 2839 #ifdef HAVE_FLINT 2843 2840 Variable alpha; 2841 bool isRat= isOn (SW_RATIONAL); 2842 if (!isRat) 2843 On (SW_RATIONAL); 2844 2844 if (!hasFirstAlgVar (A, alpha) && !hasFirstAlgVar (B, alpha)) 2845 2845 { … … 2851 2851 fmpq_poly_clear (FLINTA); 2852 2852 fmpq_poly_clear (FLINTB); 2853 if (!isRat) 2854 Off (SW_RATIONAL); 2853 2855 return result; 2854 2856 } 2855 bool isRat= isOn (SW_RATIONAL);2856 if (!isRat)2857 On (SW_RATIONAL);2858 2857 CanonicalForm Q, R; 2859 2858 Variable x= Variable (1);
Note: See TracChangeset
for help on using the changeset viewer.