Changeset a0d9be in git for kernel/kInline.cc


Ignore:
Timestamp:
Jun 10, 2010, 2:54:59 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6e0750067834212a8910aad022e669ca646b5786
Parents:
407ff05c12f210a6f1d860dac19e7850c61d38ea
Message:
pCleardenom -> p_Cleardenom,
pCleardenom_n -> p_Cleardenom_n,
pContent -> p_Content



git-svn-id: file:///usr/local/Singular/svn/trunk@12848 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kInline.cc

    r407ff05 ra0d9be  
    423423{
    424424  assume(p != NULL);
    425   #ifdef HAVE_RATGRING
    426   p= ::pCleardenom(p);
    427   #else
    428   ::pCleardenom(p);
    429   #endif
    430425  if (t_p != NULL)
    431     pSetCoeff0(t_p, pGetCoeff(p));
     426  {
     427    p_Cleardenom(t_p, tailRing);
     428    pSetCoeff0(p, pGetCoeff(t_p));
     429  }
     430  else
     431  {
     432    #ifdef HAVE_RATGRING
     433    p= p_Cleardenom(p, currRing);
     434    #else
     435    p_Cleardenom(p, currRing);
     436    #endif
     437  }
    432438}
    433439
     
    979985
    980986  int i;
    981   long x;
    982   long e1;
    983   long e2;
    984   long s;
     987  int x;
     988  int e1;
     989  int e2;
     990  int s;
    985991  m1 = p_Init(tailRing);
    986992  m2 = p_Init(tailRing);
    987993  lcm = p_Init(leadRing);
    988994
    989   int small_index=1;
    990   if ((pGetComp(p1)!=0)||(pGetComp(p2)!=0)) small_index=0;
    991 
    992   for (i = leadRing->N; i>=small_index; i--)
     995  for (i = leadRing->N; i>=1; i--)
    993996  {
    994997    e1 = p_GetExp(p1,i,leadRing);
     
    9981001    {
    9991002      p_SetExp(m2,i,x, tailRing);
    1000       p_SetExp(m1,i,0, tailRing);
     1003      //p_SetExp(m1,i,0, tailRing); // done by p_Init
    10011004      s = e1;
    10021005    }
     
    10041007    {
    10051008      p_SetExp(m1,i,-x, tailRing);
    1006       p_SetExp(m2,i,0, tailRing);
     1009      //p_SetExp(m2,i,0, tailRing); // done by p_Init
    10071010      s = e2;
    10081011    }
    10091012    p_SetExp(lcm,i,s, leadRing);
    10101013  }
     1014  if ((s=pGetComp(p1))!=0)
     1015  {
     1016    p_SetComp(lcm,s, leadRing);
     1017  }
     1018  else if ((s=pGetComp(p2))!=0)
     1019  {
     1020    p_SetComp(lcm,s, leadRing);
     1021  }
     1022  // else p_SetComp(lcm,0,tailRing); // done by p_Init
    10111023
    10121024  p_Setm(m1, tailRing);
Note: See TracChangeset for help on using the changeset viewer.