Changeset ece1ce in git


Ignore:
Timestamp:
Mar 2, 2012, 12:13:46 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
ecf01903b0f6a2aacb4b83bf49802240d6226a9f
Parents:
f93c5e9d617ac7c7445a38a6607c400467d15ef7
Message:
fix: rCompose/NegOffset for ordering am/
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rf93c5e9 rece1ce  
    23192319           }
    23202320           break;
     2321         case ringorder_am:
     2322           R->wvhdl[j] =( int *)omAlloc((iv->length()+1)*sizeof(int));
     2323           for (i=0; i<iv_len;i++)
     2324           {
     2325             R->wvhdl[j][i]=(*iv)[i];
     2326           }
     2327           R->wvhdl[j][i]=iv->length() - iv_len;
     2328           //printf("ivlen:%d,iv->len:%d,mod:%d\n",iv_len,iv->length(),R->wvhdl[j][i]);
     2329           for (; i<iv->length(); i++)
     2330           {
     2331              R->wvhdl[j][i+1]=(*iv)[i];
     2332           }
     2333           break;
    23212334         case ringorder_M:
    23222335           R->wvhdl[j] =( int *)omAlloc((iv->length())*sizeof(int));
  • libpolys/polys/monomials/ring.cc

    rf93c5e9 rece1ce  
    33473347    for(i=0;i<r->OrdSize;i++)
    33483348    {
    3349       if(r->typ[i].ord_typ==ro_wp_neg) l++;
     3349      if((r->typ[i].ord_typ==ro_wp_neg)
     3350      ||(r->typ[i].ord_typ==ro_am))
     3351        l++;
    33503352    }
    33513353    if (l>0)
     
    33593361        {
    33603362          r->NegWeightL_Offset[l]=r->typ[i].data.wp.place;
     3363          l++;
     3364        }
     3365        else if(r->typ[i].ord_typ==ro_am)
     3366        {
     3367          r->NegWeightL_Offset[l]=r->typ[i].data.am.place;
    33613368          l++;
    33623369        }
Note: See TracChangeset for help on using the changeset viewer.