Changeset 313806 in git


Ignore:
Timestamp:
Feb 21, 2024, 2:40:39 PM (2 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
12d338b9360721f933ace848728103c748c7cf45
Parents:
2d5d7e969be169286decf139f1ba0d2d47c38dba
Message:
fix: ring from list with ordering M
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r2d5d7e9 r313806  
    26052605        &&(R->order[j_in_R]!=ringorder_C))
    26062606        {
    2607           R->block1[j_in_R]=si_max(R->block0[j_in_R],R->block0[j_in_R]+iv_len-1);
     2607          if (R->order[j_in_R]==ringorder_M)
     2608          {
     2609            int sq=(int)sqrt((double)(iv_len));
     2610            R->block1[j_in_R]=si_max(R->block0[j_in_R],R->block0[j_in_R]+sq-1);
     2611          }
     2612          else
     2613            R->block1[j_in_R]=si_max(R->block0[j_in_R],R->block0[j_in_R]+iv_len-1);
    26082614          if (R->block1[j_in_R]>R->N)
    26092615          {
    26102616            if (R->block0[j_in_R]>R->N)
    26112617            {
     2618            Print("R->block0[j_in_R]=%d,N=%d\n",R->block0[j_in_R],R->N);
    26122619              Werror("not enough variables for ordering %d (%s)",j_in_R,rSimpleOrdStr(R->order[j_in_R]));
    26132620              return TRUE;
     
    26162623            iv_len=R->block1[j_in_R]-R->block0[j_in_R]+1;
    26172624          }
    2618           //Print("block %d from %d to %d\n",j,R->block0[j], R->block1[j]);
     2625          //Print("block %d(%s) from %d to %d\n",j_in_R,
     2626          //  rSimpleOrdStr(R->order[j_in_R]),R->block0[j_in_R], R->block1[j_in_R]);
    26192627        }
    26202628        int i;
     
    26502658             R->wvhdl[j_in_R] =( int *)omAlloc((iv->length())*sizeof(int));
    26512659             for (i=0; i<iv->length();i++) R->wvhdl[j_in_R][i]=(*iv)[i];
    2652              R->block1[j_in_R]=si_max(R->block0[j_in_R],R->block0[j_in_R]+(int)sqrt((double)(iv->length())));
    26532660             if (R->block1[j_in_R]>R->N)
    26542661             {
  • Tst/Short/ok_s.lst

    r2d5d7e9 r313806  
    3737bug_ring_red
    3838bug_ringlist
     39bug_ringlist_M
    3940bug_sca
    4041bug_sheafcoh
Note: See TracChangeset for help on using the changeset viewer.