Changeset c78b59f in git


Ignore:
Timestamp:
Jan 29, 2018, 10:46:21 PM (6 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6bef24b048918c16662f685673bbd69b06f04e18
Parents:
68395808f4180002f73bcf7dd2f2447899b0d865
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2018-01-29 22:46:21+01:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2018-02-02 11:16:48+01:00
Message:
fix: in fres(), sort terms of all non-zero modules
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/syz4.cc

    r683958 rc78b59f  
    626626    const ring R = currRing;
    627627    poly p, q;
    628     for (int i = length-2; i > 0; i--) {
    629         for (int j = res[i]->ncols-1; j >= 0; j--) {
    630             insert_first_term(res[i]->m[j]->next, p, q, R);
    631             insert_first_term(res[i]->m[j], p, q, R);
    632         }
     628    int index = 1;
     629    while (index < length && !idIs0(res[index])) {
     630        for (int j = res[index]->ncols-1; j >= 0; j--) {
     631            insert_first_term(res[index]->m[j]->next, p, q, R);
     632            insert_first_term(res[index]->m[j], p, q, R);
     633        }
     634        index++;
    633635    }
    634636}
Note: See TracChangeset for help on using the changeset viewer.