Changeset fbac08 in git


Ignore:
Timestamp:
Apr 25, 2017, 4:06:52 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6af76a7a09a49e7e08065cdf078b2461e16af2eb
Parents:
d0a9fbc2ee7c69e2a05d046733d2b5eb8059f2d1
Message:
format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kInline.h

    rd0a9fb rfbac08  
    363363    }
    364364  }
    365   else if (p != NULL)
     365  else if (p != NULL) /* && t_p==NULL */
    366366  {
    367367    if (pNext(p) != NULL)
     
    427427  assume(p != NULL);
    428428  if (TEST_OPT_CONTENTSB)
    429     {
    430       number n;
    431       if (t_p != NULL)
    432         {
    433           p_Cleardenom_n(t_p, tailRing, n);
    434           pSetCoeff0(p, pGetCoeff(t_p));
    435         }
    436       else
    437         {
    438           p_Cleardenom_n(p, currRing, n);
    439         }
    440       if (!nIsOne(n))
    441         {
    442           denominator_list denom=(denominator_list)omAlloc(sizeof(denominator_list_s));
    443           denom->n=nInvers(n);
    444           denom->next=DENOMINATOR_LIST;
    445           DENOMINATOR_LIST=denom;
    446         }
    447       nDelete(&n);
    448     }
    449   else
    450     {
    451       if (t_p != NULL)
    452       {
    453         p_ProjectiveUnique(t_p, tailRing);
    454         pSetCoeff0(p, pGetCoeff(t_p));
    455       }
    456       else
    457       {
    458         p_ProjectiveUnique(p, currRing);
    459       }
    460     }
     429  {
     430    number n;
     431    if (t_p != NULL)
     432    {
     433      p_Cleardenom_n(t_p, tailRing, n);
     434      pSetCoeff0(p, pGetCoeff(t_p));
     435    }
     436    else
     437    {
     438      p_Cleardenom_n(p, currRing, n);
     439    }
     440    if (!nIsOne(n))
     441    {
     442      denominator_list denom=(denominator_list)omAlloc(sizeof(denominator_list_s));
     443      denom->n=nInvers(n);
     444      denom->next=DENOMINATOR_LIST;
     445      DENOMINATOR_LIST=denom;
     446    }
     447    nDelete(&n);
     448  }
     449  else
     450  {
     451    if (t_p != NULL)
     452    {
     453      p_ProjectiveUnique(t_p, tailRing);
     454      pSetCoeff0(p, pGetCoeff(t_p));
     455    }
     456    else
     457    {
     458      p_ProjectiveUnique(p, currRing);
     459    }
     460  }
    461461}
    462462
Note: See TracChangeset for help on using the changeset viewer.