Changeset ec80dd9 in git


Ignore:
Timestamp:
Nov 10, 2017, 2:33:53 PM (6 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
e15211f00c3feac6f7ff37e9a3cf5744fed00b56
Parents:
1715602d17a9218dca6af50fee1160038d9649e2
git-author:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2017-11-10 14:33:53+01:00
git-committer:
Andreas Steenpass <steenpass@mathematik.uni-kl.de>2017-12-15 12:17:08+01:00
Message:
chg: replace IDELEMS(.) by .->ncols
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/syz4.cc

    r171560 rec80dd9  
    2828{
    2929    const ring R = currRing;
    30     const int l = IDELEMS(L)-1;
     30    const int l = L->ncols-1;
    3131    int k;
    3232    for (int j = R->N; j > 0; j--) {
     
    7373{
    7474    const ring R = currRing;
    75     const int n_elems = IDELEMS(L);
     75    const int n_elems = L->ncols;
    7676    for (int k = 0; k < n_elems; k++) {
    7777        const poly a = L->m[k];
     
    262262    const ring r = currRing;
    263263    int i, j;
    264     int k = IDELEMS(id)-1;
     264    int k = id->ncols-1;
    265265    for (i = k; i >= 0; i--) {
    266266        for (j = k; j > i; j--) {
     
    450450    for (int i = G->ncols-2; i >= 0; i--) {
    451451        if (M[i] != NULL) {
    452             omFreeSize(M[i]->m, IDELEMS(M[i])*sizeof(poly));
     452            omFreeSize(M[i]->m, M[i]->ncols*sizeof(poly));
    453453            omFreeBin(M[i], sip_sideal_bin);
    454454        }
    455455    }
    456456    omFree(M);
    457     qsort(frame->m, IDELEMS(frame), sizeof(poly), compare_Mi);
     457    qsort(frame->m, frame->ncols, sizeof(poly), compare_Mi);
    458458    return frame;
    459459}
Note: See TracChangeset for help on using the changeset viewer.