Changeset 99e6fde in git for Singular/ipshell.cc


Ignore:
Timestamp:
Aug 4, 2005, 2:21:37 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ad408c91cc440f15e25c340805838886deb55e13
Parents:
1dcad287ef1372af510684f7a97e7e484a817dd2
Message:
*hannes: rCompose: fixed counting block start after order a


git-svn-id: file:///usr/local/Singular/svn/trunk@8487 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r1dcad28 r99e6fde  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.121 2005-08-03 12:14:16 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.122 2005-08-04 12:21:37 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    18951895      R->order[j]=rOrderName(omStrDup((char*)vv->m[0].Data())); // assume STRING
    18961896      if (j==0) R->block0[0]=1;
    1897       else      R->block0[j]=R->block1[j-1]+1;
     1897      else
     1898      {
     1899         int jj=j-1;
     1900         while((jj>0)
     1901         && ((R->order[jj]== ringorder_a) || (R->order[jj]== ringorder_aa)))
     1902           jj--;
     1903         R->block0[j]=R->block1[jj]+1;
     1904      }
    18981905      intvec *iv;
    18991906      if (vv->m[1].Typ()==INT_CMD)
     
    19021909        iv=ivCopy((intvec*)vv->m[1].Data()); //assume INTVEC
    19031910      R->block1[j]=si_max(R->block0[j],R->block0[j]+iv->length()-1);
     1911      //Print("block %d from %d to %d\n",j,R->block0[j], R->block1[j]);
    19041912      int i;
    19051913      switch (R->order[j])
     
    19081916         case ringorder_Ws:
    19091917            R->OrdSgn=-1;
     1918         case ringorder_aa:
     1919         case ringorder_a:
    19101920         case ringorder_wp:
    19111921         case ringorder_Wp:
     
    19281938           R->block1[j]=R->block0[j]-1;
    19291939           break;
    1930          case ringorder_aa:
    1931          case ringorder_a:
    1932            R->wvhdl[j] =( int *)omAlloc((iv->length())*sizeof(int));
    1933            for (i=0; i<iv->length();i++) R->wvhdl[j][i]=(*iv)[i];
     1940         case ringorder_M:
    19341941         // todo
    19351942           break;
    1936          case ringorder_M:
    1937          // todo
     1943         case 0:
    19381944           break;
    19391945      }
Note: See TracChangeset for help on using the changeset viewer.