Changeset cf8a274 in git


Ignore:
Timestamp:
Jun 15, 2022, 4:34:39 PM (23 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f310c1ab923e20456d0f7eacc446c4f8b7eb8f82
Parents:
879b16c36b60be58d3260bd3cf7514bdd24ef7ae
Message:
opt: id_DelDiv_Sorted
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/simpleideals.cc

    r879b16 rcf8a274  
    415415  id_Test(id, r);
    416416
    417   int i, j;
    418417  int k = IDELEMS(id)-1;
    419   for (i=0; i<k; i++)
     418  for (int i=0; i<k; i++)
    420419  {
    421420    if (id->m[i] != NULL)
    422421    {
    423       for (j=i+1; j<=k; j++)
     422      poly m_i=id->m[i];
     423      for (int j=i+1; j<=k; j++)
    424424      {
    425425        if (id->m[j]!=NULL)
    426426        {
    427           if (p_LmDivisibleByNoComp(id->m[i], id->m[j],r))
     427          if (p_LmDivisibleByNoComp(m_i, id->m[j],r))
    428428          {
    429429            p_Delete(&id->m[j],r);
    430             if (j==k) k--;
    431             while(id->m[k]==NULL) k--;
    432430          }
    433           else if (p_LmDivisibleByNoComp(id->m[j], id->m[i],r))
     431          else if (p_LmDivisibleByNoComp(id->m[j], m_i,r))
    434432          {
    435433            p_Delete(&id->m[i],r);
Note: See TracChangeset for help on using the changeset viewer.