Changeset 8d2c11 in git
- Timestamp:
- Aug 15, 2012, 2:51:29 PM (11 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- 8e452c99a50a0aeb91c8380f01737ee90a2a1559
- Parents:
- fcd296b05a4f13666514ab7df4a8227fe930b65f
- git-author:
- Martin Lee <martinlee84@web.de>2012-08-15 14:51:29+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-09-04 18:01:17+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facFqFactorizeUtil.cc
rfcd296 r8d2c11 162 162 } 163 163 164 /// like getVars but including multiplicities 165 CanonicalForm myGetVars (const CanonicalForm& F) 166 { 167 CanonicalForm result= 1; 168 int deg; 169 for (int i= 1; i <= F.level(); i++) 170 { 171 if ((deg= degree (F, i)) > 0) 172 result *= power (Variable (i), deg); 173 } 174 return result; 175 } 164 176 177 int compareByNumberOfVars (const CFFactor& F, const CFFactor& G) 178 { 179 return getNumVars (F.factor()) < getNumVars (G.factor()); 180 } 181 182 CFFList 183 sortCFFListByNumOfVars (CFFList& F) 184 { 185 F.sort (compareByNumberOfVars); 186 CFFList result= F; 187 return result; 188 } 189 190 -
factory/facFqFactorizeUtil.h
rfcd296 r8d2c11 127 127 ); 128 128 129 /// sort CFFList by the number variables in a factor 130 CFFList sortCFFListByNumOfVars (CFFList & F ///< [in,out] a list of factors 131 ); 132 133 /// like getVars but each variable x occuring in @F is raised to x^degree (F,x) 134 CanonicalForm myGetVars (const CanonicalForm& F ///< [in] a polynomial 135 ); 136 129 137 #endif 130 138 /* FAC_FQ_FACTORIZE_UTIL_H */
Note: See TracChangeset
for help on using the changeset viewer.