Changeset d1dc39 in git
- Timestamp:
- Apr 28, 2012, 10:11:51 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 7a1151d0e820ebe7486137ac2e2edc736ee573fd
- Parents:
- 18a66064a9a8616bef22907b60e68633bfc80c55
- git-author:
- Martin Lee <martinlee84@web.de>2012-04-28 22:11:51+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-05-07 18:19:12+02:00
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd_smallp.cc
r18a660 rd1dc39 1596 1596 bool fail= false; 1597 1597 bool inextension= false; 1598 bool inextensionextension= false; 1599 bool topLevel2= false; 1598 topLevel= false; 1600 1599 CFList source, dest; 1601 1600 int bound1= degree (ppA, 1); … … 1614 1613 G_random_element= 1615 1614 GCD_small_p (ppA (random_element,x), ppB (random_element,x), 1616 coF_random_element, coG_random_element, topLevel 2,1615 coF_random_element, coG_random_element, topLevel, 1617 1616 list); 1618 1617 TIMING_END_AND_PRINT (gcd_recursion, … … 1627 1626 GCD_Fp_extension (ppA (random_element, x), ppB (random_element, x), 1628 1627 coF_random_element, coG_random_element, alpha, 1629 list, topLevel 2);1628 list, topLevel); 1630 1629 TIMING_END_AND_PRINT (gcd_recursion, 1631 1630 "time for recursive call: "); … … 1653 1652 GCD_Fp_extension (ppA (random_element, x), ppB (random_element, x), 1654 1653 coF_random_element, coG_random_element, alpha, 1655 list, topLevel 2);1654 list, topLevel); 1656 1655 TIMING_END_AND_PRINT (gcd_recursion, 1657 1656 "time for recursive call: "); … … 1698 1697 DEBOUTLN (cerr, "getMipo (alpha)= " << getMipo (V_buf2)); 1699 1698 1700 inextensionextension= true;1701 1699 for (CFListIterator i= l; i.hasItem(); i++) 1702 1700 i.getItem()= mapUp (i.getItem(), alpha, V_buf, prim_elem, … … 1722 1720 GCD_Fp_extension (ppA (random_element, x), ppB (random_element, x), 1723 1721 coF_random_element, coG_random_element, V_buf, 1724 list, topLevel 2);1722 list, topLevel); 1725 1723 TIMING_END_AND_PRINT (gcd_recursion, 1726 1724 "time for recursive call: "); … … 3023 3021 } 3024 3022 3025 long rk;3026 3023 matColumns= biggestSize2 - 1; 3027 3024 matRows= 0; … … 3029 3026 { 3030 3027 if (V_buf.level() == 1) 3031 rk=gaussianElimFp (pMat[i], pL[i]);3028 (void) gaussianElimFp (pMat[i], pL[i]); 3032 3029 else 3033 rk=gaussianElimFq (pMat[i], pL[i], V_buf);3030 (void) gaussianElimFq (pMat[i], pL[i], V_buf); 3034 3031 3035 3032 if (pMat[i] (coeffMonoms[i].size(), coeffMonoms[i].size()) == 0) … … 3706 3703 topLevel= false; 3707 3704 bool inextension= false; 3708 bool inextensionextension= false;3709 3705 Variable V_buf, alpha; 3710 3706 CanonicalForm prim_elem, im_prim_elem; … … 3807 3803 DEBOUTLN (cerr, "getMipo (alpha)= " << getMipo (V_buf2)); 3808 3804 3809 inextensionextension= true;3810 3805 for (CFListIterator i= l; i.hasItem(); i++) 3811 3806 i.getItem()= mapUp (i.getItem(), alpha, V_buf, prim_elem, … … 4009 4004 DEBOUTLN (cerr, "getMipo (alpha)= " << getMipo (V_buf2)); 4010 4005 4011 inextensionextension= true;4012 4006 for (CFListIterator i= l; i.hasItem(); i++) 4013 4007 i.getItem()= mapUp (i.getItem(), alpha, V_buf, prim_elem, -
factory/facFqBivar.cc
r18a660 rd1dc39 2284 2284 ) 2285 2285 { 2286 bool irreducible= false;2287 2286 int d; 2288 2287 int* bounds= computeBounds (F, d); … … 2347 2346 if (NTLN.NumCols() == 1) 2348 2347 { 2349 irreducible= true;2350 2348 delete [] A; 2351 2349 delete [] bounds; … … 2417 2415 ) 2418 2416 { 2419 bool irreducible= false;2420 2417 int d; 2421 2418 int* bounds= computeBounds (F, d); … … 2480 2477 if (NTLN.NumCols() == 1) 2481 2478 { 2482 irreducible= true;2483 2479 delete [] A; 2484 2480 delete [] bounds; … … 2552 2548 int degMipo= degree (getMipo (info.getAlpha())); 2553 2549 Variable alpha= info.getAlpha(); 2554 bool irreducible= false;2555 2550 int d; 2556 2551 int* bounds= computeBounds (F, d); … … 2669 2664 if (NTLN.NumCols() == 1) 2670 2665 { 2671 irreducible= true;2672 2666 Variable y= Variable (2); 2673 2667 CanonicalForm tmp= F (y - evaluation, y); … … 2741 2735 const Variable& alpha, int precision) 2742 2736 { 2743 bool irreducible= false;2744 2737 int d; 2745 2738 int* bounds= computeBounds (F, d); … … 2805 2798 if (NTLN.NumCols() == 1) 2806 2799 { 2807 irreducible= true;2808 2800 delete [] A; 2809 2801 delete [] bounds; … … 2863 2855 ) 2864 2856 { 2865 bool irreducible= false;2866 2857 int d; 2867 2858 int* bounds= computeBounds (F, d); … … 2927 2918 if (NTLN.NumCols() == 1) 2928 2919 { 2929 irreducible= true;2930 2920 delete [] A; 2931 2921 delete [] bounds; … … 2995 2985 { 2996 2986 CFList result= CFList(); 2997 bool irreducible= false;2998 2987 CFArray * A= new CFArray [factors.length()]; 2999 2988 int oldL2= oldL/2; … … 3052 3041 if (NTLN.NumCols() == 1) 3053 3042 { 3054 irreducible= true;3055 3043 delete [] A; 3056 3044 return CFList (F); … … 3060 3048 if (NTLN.NumCols() == 1) 3061 3049 { 3062 irreducible= true;3063 3050 delete [] A; 3064 3051 return CFList (F); … … 3102 3089 { 3103 3090 CFList result= CFList(); 3104 bool irreducible= false;3105 3091 CFArray * A= new CFArray [factors.length()]; 3106 3092 int oldL2= oldL/2; … … 3156 3142 if (NTLN.NumCols() == 1) 3157 3143 { 3158 irreducible= true;3159 3144 delete [] A; 3160 3145 return CFList (F); … … 3164 3149 if (NTLN.NumCols() == 1) 3165 3150 { 3166 irreducible= true;3167 3151 delete [] A; 3168 3152 return CFList (F); … … 3210 3194 { 3211 3195 CFList result= CFList(); 3212 bool irreducible= false;3213 3196 CFArray * A= new CFArray [factors.length()]; 3214 3197 int oldL2= oldL/2; //be careful … … 3321 3304 if (NTLN.NumCols() == 1) 3322 3305 { 3323 irreducible= true;3324 3306 Variable y= Variable (2); 3325 3307 CanonicalForm tmp= F (y - evaluation, y); … … 3333 3315 if (NTLN.NumCols() == 1) 3334 3316 { 3335 irreducible= true;3336 3317 Variable y= Variable (2); 3337 3318 CanonicalForm tmp= F (y - evaluation, y); … … 3382 3363 { 3383 3364 CFList result= CFList(); 3384 bool irreducible= false;3385 3365 CFArray * A= new CFArray [factors.length()]; 3386 3366 int extensionDeg= degree (getMipo (alpha)); … … 3437 3417 if (NTLN.NumCols() == 1) 3438 3418 { 3439 irreducible= true;3440 3419 delete [] A; 3441 3420 return CFList (F); -
factory/facFqBivarUtil.cc
r18a660 rd1dc39 669 669 int** newtonPolyg= newtonPolygon (F, sizeOfNewtonPolygon); 670 670 671 int minXIndex= 0, minYIndex= 0, maxXIndex= 0, maxYIndex= 0;672 671 int minX, minY, maxX, maxY; 673 672 minX= newtonPolyg [0] [0]; … … 678 677 { 679 678 if (minX > newtonPolyg [i] [0]) 680 {681 679 minX= newtonPolyg [i] [0]; 682 minXIndex= i;683 }684 680 if (maxX < newtonPolyg [i] [0]) 685 {686 681 maxX= newtonPolyg [i] [0]; 687 maxXIndex= i;688 }689 682 if (minY > newtonPolyg [i] [1]) 690 {691 683 minY= newtonPolyg [i] [1]; 692 minYIndex= i;693 }694 684 if (maxY < newtonPolyg [i] [1]) 695 {696 685 maxY= newtonPolyg [i] [1]; 697 maxYIndex= i;698 }699 686 } 700 687
Note: See TracChangeset
for help on using the changeset viewer.