Changeset 31b296e in git
- Timestamp:
- Jul 25, 2019, 3:18:50 PM (4 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- bd5ff4034c6329566588caf816d298e914084631
- Parents:
- 35a153cf7acb82519d52d0b74581e9a193d15765
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/clapconv.cc
r35a153 r31b296e 87 87 p1=p; 88 88 l=l/2; 89 while(l> 0) { p=pNext(p); l--; }89 while(l>1) { p=pNext(p); l--; } 90 90 p2=pNext(p); 91 91 pNext(p)=NULL; … … 101 101 102 102 #define MIN_CONV_LEN 7 103 CanonicalForm convSingPFactoryP( poly p,const ring r )103 static CanonicalForm convSingPFactoryP_intern( poly p, int l, BOOLEAN & setChar,const ring r ) 104 104 { 105 105 CanonicalForm result = 0; 106 106 int e, n = rVar(r); 107 BOOLEAN setChar=TRUE; 108 109 int l; 110 if ((l=pLength(p))>MIN_CONV_LEN) 107 assume(l==pLength(p)); 108 109 if (l>MIN_CONV_LEN) 111 110 { 112 111 poly p1,p2; 113 112 convPhalf(p,l,p1,p2); 114 CanonicalForm P=convSingPFactoryP (p1,r);115 P+=convSingPFactoryP (p2,r);113 CanonicalForm P=convSingPFactoryP_intern(p1,l/2,setChar,r); 114 P+=convSingPFactoryP_intern(p2,l-l/2,setChar,r); 116 115 convPunhalf(p1,p2); 117 116 return P; 118 117 } 118 BOOLEAN setChar_loc=setChar; 119 setChar=FALSE; 119 120 while ( p!=NULL ) 120 121 { 121 CanonicalForm term=r->cf->convSingNFactoryN(pGetCoeff( p ),setChar , r->cf);122 CanonicalForm term=r->cf->convSingNFactoryN(pGetCoeff( p ),setChar_loc, r->cf); 122 123 if (errorreported) break; 123 setChar =FALSE;124 setChar_loc=FALSE; 124 125 for ( int i = 1; i <=n; i++ ) 125 126 { … … 131 132 } 132 133 return result; 134 } 135 136 CanonicalForm convSingPFactoryP( poly p, const ring r ) 137 { 138 BOOLEAN setChar=TRUE; 139 return convSingPFactoryP_intern(p,pLength(p),setChar,r); 133 140 } 134 141
Note: See TracChangeset
for help on using the changeset viewer.