Changeset 772056 in git for factory/facFqFactorize.cc
- Timestamp:
- Aug 8, 2012, 2:00:01 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c987db42cd2ec943b97ac5746c99892ceddf909c')
- Children:
- fce807dd867479a3c2e3030b73a57dbe28db63c6
- Parents:
- 8267b8f9ab43170a4026e7e570df48db4601a748
- git-author:
- Martin Lee <martinlee84@web.de>2012-08-08 14:00:01+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-09-04 18:01:16+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facFqFactorize.cc
r8267b8 r772056 1912 1912 } 1913 1913 1914 1914 1915 void getLeadingCoeffs (const CanonicalForm& A, CFList*& Aeval, 1916 const CFList& uniFactors, const CFList& evaluation 1917 ) 1918 { 1919 CFListIterator iter; 1920 CFList LCs; 1921 for (int j= 0; j < A.level() - 2; j++) 1922 { 1923 if (!Aeval[j].isEmpty()) 1924 { 1925 LCs= CFList(); 1926 for (iter= Aeval[j]; iter.hasItem(); iter++) 1927 LCs.append (LC (iter.getItem(), 1)); 1928 //normalize (LCs); 1929 Aeval[j]= LCs; 1930 } 1931 } 1932 } 1933 1934 void sortByUniFactors (CFList*& Aeval, int AevalLength, 1915 1935 const CFList& uniFactors, const CFList& evaluation 1916 1936 ) … … 1923 1943 CFArray l; 1924 1944 int pos, index; 1925 for (int j= 0; j < A .level() - 2; j++)1945 for (int j= 0; j < AevalLength; j++) 1926 1946 { 1927 1947 if (!Aeval[j].isEmpty()) 1928 1948 { 1929 i= A.level();1949 i= evaluation.length() + 1; 1930 1950 for (iter= evaluation; iter.hasItem(); iter++, i--) 1931 1951 { … … 1956 1976 1957 1977 buf= buildUniFactors (Aeval[j], evalPoint, v); 1958 LCs= CFList();1959 for (iter= Aeval[j]; iter.hasItem(); iter++)1960 LCs.append (LC (iter.getItem(), 1));1961 //normalize (LCs);1962 Aeval[j]= LCs;1963 1978 } 1964 1979 }
Note: See TracChangeset
for help on using the changeset viewer.