Changeset d52c12 in git
- Timestamp:
- Jun 17, 2010, 4:31:20 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 44651b7a294639985e8e521f09f763d3bb0a4abf
- Parents:
- 19b3c75184f32c67c2f6f1898582a25004784935
- Location:
- factory
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/DegreePattern.cc
r19b3c7 rd52c12 20 20 #include "gfops.h" 21 21 22 inline 22 23 23 DegreePattern::DegreePattern (const CFList& l) 24 24 { … … 60 60 61 61 62 inline int 63 DegreePattern::find (const int x) const 64 { 65 if (getLength() == 0) return 0; 66 for (int i= 0; i < getLength(); i++) 67 if ((*this)[i] == x) return i + 1; 68 return 0; 69 } 70 71 inline void 72 DegreePattern::intersect (const DegreePattern& degPat) 62 void DegreePattern::intersect (const DegreePattern& degPat) 73 63 { 74 64 if (degPat.getLength() < getLength()) … … 107 97 } 108 98 109 inline void 110 DegreePattern::refine () 99 void DegreePattern::refine () 111 100 { 112 101 if (getLength() <= 1) -
factory/DegreePattern.h
r19b3c7 rd52c12 159 159 /// @return @a find returns the index + 1 of @a x, if @a x is an element of 160 160 /// the degree pattern, 0 otherwise 161 inline int find (const int x ///< [in] some int 162 ) const; 161 int find (const int x ///< [in] some int 162 ) const 163 { 164 if (getLength() == 0) return 0; 165 for (int i= 0; i < getLength(); i++) 166 if ((*this)[i] == x) return i + 1; 167 return 0; 168 }; 163 169 164 170 /// intersect two degree patterns 165 inlinevoid intersect (const DegreePattern& degPat ///< [in] some degree pattern171 void intersect (const DegreePattern& degPat ///< [in] some degree pattern 166 172 ); 167 173 /// Refine a degree pattern. Assumes that (*this)[0]:= @a d is the degree … … 169 175 /// some entry @a b such that @a a+b= d. Elements which do not satisfy this 170 176 /// relation are removed. 171 inlinevoid refine ();177 void refine (); 172 178 }; 173 179 -
factory/facFqFactorizeUtil.cc
r19b3c7 rd52c12 17 17 #include "canonicalform.h" 18 18 #include "cf_map.h" 19 20 static inline21 void decompressAppend (CFList& factors1, const CFList& factors2, const CFMap& N)22 {23 for (CFListIterator i= factors1; i.hasItem(); i++)24 i.getItem()= N (i.getItem());25 for (CFListIterator i= factors2; i.hasItem(); i++)26 factors1.append (N (i.getItem()));27 return;28 }29 19 30 20 static inline … … 53 43 } 54 44 55 static inline 45 56 46 void swap (CFList& factors, const int swapLevel1, const int swapLevel2, const 57 47 Variable& x) … … 76 66 } 77 67 78 static inline79 68 void appendSwapDecompress (CFList& factors1, const CFList& factors2, 80 69 const CFMap& N, const int swapLevel, const … … 95 84 } 96 85 97 static inline98 86 void appendSwapDecompress (CFList& factors1, const CFList& factors2, 99 87 const CFMap& N, const int swapLevel1, … … 127 115 } 128 116 129 static inline130 117 int* liftingBounds (const CanonicalForm& A, const int& bivarLiftBound) 131 118 { … … 141 128 } 142 129 143 static inline 144 CanonicalForm 145 shift2Zero (const CanonicalForm& F, CFList& Feval, const CFList& evaluation) 130 CanonicalForm shift2Zero (const CanonicalForm& F, CFList& Feval, const CFList& evaluation) 146 131 { 147 132 CanonicalForm A= F; … … 160 145 } 161 146 162 static inline163 147 CanonicalForm reverseShift (const CanonicalForm& F, const CFList& evaluation) 164 148 { -
factory/facFqFactorizeUtil.h
r19b3c7 rd52c12 23 23 /// append @a factors2 to @a factors1 and decompress 24 24 /// 25 static inline 25 26 void decompressAppend (CFList& factors1, ///< [in,out] a list of polys, 26 27 ///< returns @a factors2 appended … … 29 30 const CFList& factors2, ///< [in] a list of polys 30 31 const CFMap& N ///< [in] a map 31 ); 32 ) 33 { 34 for (CFListIterator i= factors1; i.hasItem(); i++) 35 i.getItem()= N (i.getItem()); 36 for (CFListIterator i= factors2; i.hasItem(); i++) 37 factors1.append (N (i.getItem())); 38 } 39 32 40 33 41 /// swap elements in @a factors2 and append them to @a factors1
Note: See TracChangeset
for help on using the changeset viewer.