Changeset 7b5b09 in git for kernel/GBEngine/kInline.h


Ignore:
Timestamp:
Feb 15, 2021, 6:05:19 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
036a5e8306f215e00ce97716eea046b0e6d7cdc1
Parents:
02d0097719c7fc27a723a27a4d763bdaa9c76b95
Message:
add. TObject::pContent
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kInline.h

    r02d009 r7b5b09  
    505505}
    506506
     507KINLINE void  sTObject::pContent()
     508{
     509  assume(p != NULL);
     510  if (t_p != NULL)
     511  {
     512    p_SimpleContent(t_p, 1, tailRing);
     513    if (!n_GreaterZero(pGetCoeff(t_p),tailRing->cf))
     514    {
     515      t_p=p_Neg (t_p,tailRing);
     516    }
     517    pSetCoeff0(p, pGetCoeff(t_p));
     518  }
     519  else
     520  {
     521    p_SimpleContent(p, 1, currRing);
     522    if (!n_GreaterZero(pGetCoeff(p),currRing->cf))
     523    {
     524      p=p_Neg (p,currRing);
     525    }
     526  }
     527}
     528
    507529KINLINE void sTObject::pNorm() // pNorm seems to be a _bad_ method name...
    508530{
Note: See TracChangeset for help on using the changeset viewer.