Changeset e0bdeb in git


Ignore:
Timestamp:
May 19, 2016, 2:03:00 PM (8 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
7469aa20af424401c78c3e52b77df92d932a2029
Parents:
c4d7bc34d1d48aa613e938c83b0f95b1641c2c08
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2016-05-19 14:03:00+02:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2017-12-15 12:17:07+01:00
Message:
fix: set correct indices in class CLCM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/syz4.cc

    rc4d7bc re0bdeb  
    6666  {
    6767    const int l = IDELEMS(L);
    68     resize(l, false);
     68    resize(currRing->N, false);
    6969    for( int k = l - 1; k >= 0; k-- )
    7070    {
    7171      const poly a = L->m[k];
    7272      for (unsigned int j = m_N; j > 0; j--)
    73         if ( !(*this)[j] )
    74           (*this)[j] = (p_GetExp(a, j, R) > 0);
     73        if ( !(*this)[j-1] )
     74          (*this)[j-1] = (p_GetExp(a, j, R) > 0);
    7575    }
    7676    m_compute = true;
     
    8484    const ring R = currRing;
    8585    for (unsigned int j = m_N; j > 0; j--)
    86       if ( (*this)[j] )
     86      if ( (*this)[j-1] )
    8787        if(p_GetExp(m, j, R) > 0)
    8888          return true;
Note: See TracChangeset for help on using the changeset viewer.