Changeset 530295 in git
- Timestamp:
- Jan 5, 2012, 5:52:39 PM (11 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 0e6668ef96c23537076f15491667b780427d0f91
- Parents:
- 88408d0be2fdcd560bb0eceb25b88db10bf0c817
- git-author:
- Martin Lee <martinlee84@web.de>2012-01-05 17:52:39+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-04-04 14:42:25+02:00
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_factor.cc
r88408d0 r530295 648 648 { 649 649 CFList factors; 650 factors= ratSqrfFactorize (fz , Variable (1));650 factors= ratSqrfFactorize (fz); 651 651 for (CFListIterator i= factors; i.hasItem(); i++) 652 652 F.append (CFFactor (i.getItem(), 1)); 653 653 } 654 654 else 655 F = ratFactorize (fz , Variable (1));655 F = ratFactorize (fz); 656 656 Off (SW_RATIONAL); 657 657 #else -
factory/facBivar.h
r88408d0 r530295 42 42 inline 43 43 CFList 44 ratBiSqrfFactorize (const CanonicalForm & G, ///< [in] a bivariate poly45 const Variable& v 44 ratBiSqrfFactorize (const CanonicalForm & G, ///< [in] a bivariate poly 45 const Variable& v= Variable (1) ///< [in] algebraic variable 46 46 ) 47 47 { … … 52 52 F /= (contentX*contentY); 53 53 CFFList contentXFactors, contentYFactors; 54 contentXFactors= factorize (contentX, v); 55 contentYFactors= factorize (contentY, v); 54 if (v.level() != 1) 55 { 56 contentXFactors= factorize (contentX, v); 57 contentYFactors= factorize (contentY, v); 58 } 59 else 60 { 61 contentXFactors= factorize (contentX); 62 contentYFactors= factorize (contentY); 63 } 56 64 if (contentXFactors.getFirst().factor().inCoeffDomain()) 57 65 contentXFactors.removeFirst(); … … 96 104 inline 97 105 CFFList 98 ratBiFactorize (const CanonicalForm & G, ///< [in] a bivariate poly99 const Variable& v ,///< [in] algebraic variable100 bool substCheck= true ///< [in] enables substitute check106 ratBiFactorize (const CanonicalForm & G, ///< [in] a bivariate poly 107 const Variable& v= Variable (1), ///< [in] algebraic variable 108 bool substCheck= true ///< [in] enables substitute check 101 109 ) 102 110 { … … 150 158 F /= (contentX*contentY); 151 159 CFFList contentXFactors, contentYFactors; 152 contentXFactors= factorize (contentX, v); 153 contentYFactors= factorize (contentY, v); 160 if (v.level() != 1) 161 { 162 contentXFactors= factorize (contentX, v); 163 contentYFactors= factorize (contentY, v); 164 } 165 else 166 { 167 contentXFactors= factorize (contentX); 168 contentYFactors= factorize (contentY); 169 } 154 170 if (contentXFactors.getFirst().factor().inCoeffDomain()) 155 171 contentXFactors.removeFirst(); -
factory/facFactorize.h
r88408d0 r530295 36 36 inline 37 37 CFList 38 ratSqrfFactorize (const CanonicalForm & G, ///<[in] a multivariate poly39 const Variable& v 38 ratSqrfFactorize (const CanonicalForm & G, ///<[in] a multivariate poly 39 const Variable& v= Variable (1) ///<[in] algebraic variable 40 40 ) 41 41 { … … 60 60 inline 61 61 CFFList 62 ratFactorize (const CanonicalForm& G, ///<[in] a multivariate poly63 const Variable& v ,///<[in] algebraic variable64 bool substCheck= true ///<[in] enables substitute check62 ratFactorize (const CanonicalForm& G, ///<[in] a multivariate poly 63 const Variable& v= Variable (1), ///<[in] algebraic variable 64 bool substCheck= true ///<[in] enables substitute check 65 65 ) 66 66 {
Note: See TracChangeset
for help on using the changeset viewer.