Changeset a241bd in git


Ignore:
Timestamp:
Jun 21, 2020, 3:19:29 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
28160bf3da8b285f95c9c99722a2c405c62d7af2
Parents:
b8c4c79e672b9f92ac6010f6a968f8c437e1eccc
Message:
polynomail division via syz for nc-rings
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    rb8c4c7 ra241bd  
    5252  }
    5353#endif
    54   if (pNext(q)!=NULL)
     54  if ((pNext(q)!=NULL)||rIsNCRing(r))
    5555  { /* This means that q != 0 consists of at least two terms*/
    56     if (rIsLPRing(r))
    57     {
    58       WerrorS("not implemented for letterplace rings");
    59       return NULL;
    60     }
    6156    if(p_GetComp(p,r)==0)
    6257    {
    6358      if((rFieldType(r)==n_transExt)
    6459      &&(convSingTrP(p,r))
    65       &&(convSingTrP(q,r)))
     60      &&(convSingTrP(q,r))
     61      &&(!rIsNCRing(r)))
    6662      {
    6763        poly res=singclap_pdivide(p, q, r);
     
    7167      }
    7268      else if ((r->cf->convSingNFactoryN!=ndConvSingNFactoryN)
    73       &&(!rField_is_Ring(r)))
     69      &&(!rField_is_Ring(r))
     70      &&(!rIsNCRing(r)))
    7471      {
    7572        poly res=singclap_pdivide(p, q, r);
     
    127124          if((rFieldType(r)==n_transExt)
    128125          &&(convSingTrP(I->m[i],r))
    129           &&(convSingTrP(q,r)))
     126          &&(convSingTrP(q,r))
     127          &&(!rIsNCRing(r)))
    130128          {
    131129            h=singclap_pdivide(I->m[i],q,r);
    132130          }
    133131          else if ((r->cf->convSingNFactoryN!=ndConvSingNFactoryN)
    134           &&(!rField_is_Ring(r)))
     132          &&(!rField_is_Ring(r))
     133          &&(!rIsNCRing(r)))
    135134            h=singclap_pdivide(I->m[i],q,r);
    136135          else
     
    188187    return NULL;
    189188  }
    190   if (pNext(q)!=NULL)
     189  if ((pNext(q)!=NULL)||rIsNCRing(r))
    191190  { /* This means that q != 0 consists of at least two terms*/
    192     if (rIsLPRing(r))
    193     {
    194       WerrorS("not implemented for letterplace rings");
    195       return NULL;
    196     }
    197191    if(p_GetComp(p,r)==0)
    198192    {
    199193      if((rFieldType(r)==n_transExt)
    200194      &&(convSingTrP(p,r))
    201       &&(convSingTrP(q,r)))
     195      &&(convSingTrP(q,r))
     196      &&(!rIsNCRing(r)))
    202197      {
    203198        poly res=singclap_pdivide(p, q, r);
     
    205200      }
    206201      else if ((r->cf->convSingNFactoryN!=ndConvSingNFactoryN)
    207       &&(!rField_is_Ring(r)))
     202      &&(!rField_is_Ring(r))
     203      &&(!rIsNCRing(r)))
    208204      {
    209205        poly res=singclap_pdivide(p, q, r);
     
    261257          if((rFieldType(r)==n_transExt)
    262258          &&(convSingTrP(I->m[i],r))
    263           &&(convSingTrP(q,r)))
     259          &&(convSingTrP(q,r))
     260          &&(!rIsNCRing(r)))
    264261          {
    265262            h=singclap_pdivide(I->m[i],q,r);
    266263          }
    267264          else if ((r->cf->convSingNFactoryN!=ndConvSingNFactoryN)
    268           &&(!rField_is_Ring(r)))
     265          &&(!rField_is_Ring(r))
     266          &&(!rIsNCRing(r)))
    269267            h=singclap_pdivide(I->m[i],q,r);
    270268          else
  • libpolys/polys/monomials/p_polys.cc

    rb8c4c7 ra241bd  
    15691569  if(!p_IsConstant(b,r))
    15701570  {
    1571     if (rIsLPRing(r))
    1572     {
    1573       WerrorS("not implemented for letterplace rings");
     1571    if (rIsNCRing(r))
     1572    {
     1573      WerrorS("p_DivideM not implemented for non-commuative rings");
    15741574      return NULL;
    15751575    }
Note: See TracChangeset for help on using the changeset viewer.