Changeset d1dc39 in git


Ignore:
Timestamp:
Apr 28, 2012, 10:11:51 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
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
Message:
fix: deleted unused variables
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd_smallp.cc

    r18a660 rd1dc39  
    15961596  bool fail= false;
    15971597  bool inextension= false;
    1598   bool inextensionextension= false;
    1599   bool topLevel2= false;
     1598  topLevel= false;
    16001599  CFList source, dest;
    16011600  int bound1= degree (ppA, 1);
     
    16141613      G_random_element=
    16151614      GCD_small_p (ppA (random_element,x), ppB (random_element,x),
    1616                    coF_random_element, coG_random_element, topLevel2,
     1615                   coF_random_element, coG_random_element, topLevel,
    16171616                   list);
    16181617      TIMING_END_AND_PRINT (gcd_recursion,
     
    16271626      GCD_Fp_extension (ppA (random_element, x), ppB (random_element, x),
    16281627                        coF_random_element, coG_random_element, alpha,
    1629                         list, topLevel2);
     1628                        list, topLevel);
    16301629      TIMING_END_AND_PRINT (gcd_recursion,
    16311630                            "time for recursive call: ");
     
    16531652      GCD_Fp_extension (ppA (random_element, x), ppB (random_element, x),
    16541653                        coF_random_element, coG_random_element, alpha,
    1655                         list, topLevel2);
     1654                        list, topLevel);
    16561655      TIMING_END_AND_PRINT (gcd_recursion,
    16571656                            "time for recursive call: ");
     
    16981697      DEBOUTLN (cerr, "getMipo (alpha)= " << getMipo (V_buf2));
    16991698
    1700       inextensionextension= true;
    17011699      for (CFListIterator i= l; i.hasItem(); i++)
    17021700        i.getItem()= mapUp (i.getItem(), alpha, V_buf, prim_elem,
     
    17221720      GCD_Fp_extension (ppA (random_element, x), ppB (random_element, x),
    17231721                        coF_random_element, coG_random_element, V_buf,
    1724                         list, topLevel2);
     1722                        list, topLevel);
    17251723      TIMING_END_AND_PRINT (gcd_recursion,
    17261724                            "time for recursive call: ");
     
    30233021    }
    30243022
    3025     long rk;
    30263023    matColumns= biggestSize2 - 1;
    30273024    matRows= 0;
     
    30293026    {
    30303027      if (V_buf.level() == 1)
    3031         rk= gaussianElimFp (pMat[i], pL[i]);
     3028        (void) gaussianElimFp (pMat[i], pL[i]);
    30323029      else
    3033         rk= gaussianElimFq (pMat[i], pL[i], V_buf);
     3030        (void) gaussianElimFq (pMat[i], pL[i], V_buf);
    30343031
    30353032      if (pMat[i] (coeffMonoms[i].size(), coeffMonoms[i].size()) == 0)
     
    37063703  topLevel= false;
    37073704  bool inextension= false;
    3708   bool inextensionextension= false;
    37093705  Variable V_buf, alpha;
    37103706  CanonicalForm prim_elem, im_prim_elem;
     
    38073803      DEBOUTLN (cerr, "getMipo (alpha)= " << getMipo (V_buf2));
    38083804
    3809       inextensionextension= true;
    38103805      for (CFListIterator i= l; i.hasItem(); i++)
    38113806        i.getItem()= mapUp (i.getItem(), alpha, V_buf, prim_elem,
     
    40094004          DEBOUTLN (cerr, "getMipo (alpha)= " << getMipo (V_buf2));
    40104005
    4011           inextensionextension= true;
    40124006          for (CFListIterator i= l; i.hasItem(); i++)
    40134007            i.getItem()= mapUp (i.getItem(), alpha, V_buf, prim_elem,
  • factory/facFqBivar.cc

    r18a660 rd1dc39  
    22842284                  )
    22852285{
    2286   bool irreducible= false;
    22872286  int d;
    22882287  int* bounds= computeBounds (F, d);
     
    23472346        if (NTLN.NumCols() == 1)
    23482347        {
    2349           irreducible= true;
    23502348          delete [] A;
    23512349          delete [] bounds;
     
    24172415                  )
    24182416{
    2419   bool irreducible= false;
    24202417  int d;
    24212418  int* bounds= computeBounds (F, d);
     
    24802477        if (NTLN.NumCols() == 1)
    24812478        {
    2482           irreducible= true;
    24832479          delete [] A;
    24842480          delete [] bounds;
     
    25522548  int degMipo= degree (getMipo (info.getAlpha()));
    25532549  Variable alpha= info.getAlpha();
    2554   bool irreducible= false;
    25552550  int d;
    25562551  int* bounds= computeBounds (F, d);
     
    26692664        if (NTLN.NumCols() == 1)
    26702665        {
    2671           irreducible= true;
    26722666          Variable y= Variable (2);
    26732667          CanonicalForm tmp= F (y - evaluation, y);
     
    27412735                    const Variable& alpha, int precision)
    27422736{
    2743   bool irreducible= false;
    27442737  int d;
    27452738  int* bounds= computeBounds (F, d);
     
    28052798        if (NTLN.NumCols() == 1)
    28062799        {
    2807           irreducible= true;
    28082800          delete [] A;
    28092801          delete [] bounds;
     
    28632855                       )
    28642856{
    2865   bool irreducible= false;
    28662857  int d;
    28672858  int* bounds= computeBounds (F, d);
     
    29272918        if (NTLN.NumCols() == 1)
    29282919        {
    2929           irreducible= true;
    29302920          delete [] A;
    29312921          delete [] bounds;
     
    29952985{
    29962986  CFList result= CFList();
    2997   bool irreducible= false;
    29982987  CFArray * A= new CFArray [factors.length()];
    29992988  int oldL2= oldL/2;
     
    30523041        if (NTLN.NumCols() == 1)
    30533042        {
    3054           irreducible= true;
    30553043          delete [] A;
    30563044          return CFList (F);
     
    30603048    if (NTLN.NumCols() == 1)
    30613049    {
    3062       irreducible= true;
    30633050      delete [] A;
    30643051      return CFList (F);
     
    31023089{
    31033090  CFList result= CFList();
    3104   bool irreducible= false;
    31053091  CFArray * A= new CFArray [factors.length()];
    31063092  int oldL2= oldL/2;
     
    31563142        if (NTLN.NumCols() == 1)
    31573143        {
    3158           irreducible= true;
    31593144          delete [] A;
    31603145          return CFList (F);
     
    31643149    if (NTLN.NumCols() == 1)
    31653150    {
    3166       irreducible= true;
    31673151      delete [] A;
    31683152      return CFList (F);
     
    32103194{
    32113195  CFList result= CFList();
    3212   bool irreducible= false;
    32133196  CFArray * A= new CFArray [factors.length()];
    32143197  int oldL2= oldL/2; //be careful
     
    33213304        if (NTLN.NumCols() == 1)
    33223305        {
    3323           irreducible= true;
    33243306          Variable y= Variable (2);
    33253307          CanonicalForm tmp= F (y - evaluation, y);
     
    33333315    if (NTLN.NumCols() == 1)
    33343316    {
    3335       irreducible= true;
    33363317      Variable y= Variable (2);
    33373318      CanonicalForm tmp= F (y - evaluation, y);
     
    33823363{
    33833364  CFList result= CFList();
    3384   bool irreducible= false;
    33853365  CFArray * A= new CFArray [factors.length()];
    33863366  int extensionDeg= degree (getMipo (alpha));
     
    34373417        if (NTLN.NumCols() == 1)
    34383418        {
    3439           irreducible= true;
    34403419          delete [] A;
    34413420          return CFList (F);
  • factory/facFqBivarUtil.cc

    r18a660 rd1dc39  
    669669  int** newtonPolyg= newtonPolygon (F, sizeOfNewtonPolygon);
    670670
    671   int minXIndex= 0, minYIndex= 0, maxXIndex= 0, maxYIndex= 0;
    672671  int minX, minY, maxX, maxY;
    673672  minX= newtonPolyg [0] [0];
     
    678677  {
    679678    if (minX > newtonPolyg [i] [0])
    680     {
    681679      minX= newtonPolyg [i] [0];
    682       minXIndex= i;
    683     }
    684680    if (maxX < newtonPolyg [i] [0])
    685     {
    686681      maxX= newtonPolyg [i] [0];
    687       maxXIndex= i;
    688     }
    689682    if (minY > newtonPolyg [i] [1])
    690     {
    691683      minY= newtonPolyg [i] [1];
    692       minYIndex= i;
    693     }
    694684    if (maxY < newtonPolyg [i] [1])
    695     {
    696685      maxY= newtonPolyg [i] [1];
    697       maxYIndex= i;
    698     }
    699686  }
    700687
Note: See TracChangeset for help on using the changeset viewer.