Changeset 1bc7201 in git for Singular/links/ssiLink.cc


Ignore:
Timestamp:
Oct 19, 2012, 6:38:35 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c879eea1669e963fb4c7287a3963abb287d00a49
Parents:
b37b3984a12e1552c7bafc9fd5a7849240ea79806bbe944402dfca102dcc3e036c4f2f119be41e44
Message:
Merge pull request #192 from mmklee/algExtGCD_sw

Alg ext gcd sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ssiLink.cc

    r6bbe94 r1bc7201  
    243243}
    244244
    245 void ssiWritePoly(ssiInfo *d, int typ, poly p)
     245void ssiWritePoly(ssiInfo *d, poly p)
    246246{
    247247  SSI_BLOCK_CHLD;
     
    267267void ssiWriteIdeal(ssiInfo *d, int typ,ideal I)
    268268{
    269    // syntax: 7 # of elements <poly 1> <poly2>.....
    270    // syntax: 8 <rows> <cols> <poly 1> <poly2>.....
     269   // syntax ideal/module: 7 # of elements <poly 1> <poly2>.....
     270   // syntax matrix: 8 <rows> <cols> <poly 1> <poly2>.....
    271271   matrix M=(matrix)I;
    272272   SSI_BLOCK_CHLD;
     
    278278
    279279   int i;
    280    int tt;
    281    if (typ==MODUL_CMD) tt=VECTOR_CMD;
    282    else                tt=POLY_CMD;
    283280
    284281   for(i=0;i<IDELEMS(I);i++)
    285282   {
    286      ssiWritePoly(d,tt,I->m[i]);
     283     ssiWritePoly(d,I->m[i]);
    287284   }
    288285}
     
    516513  //Print("poly: terms:%d\n",n);
    517514  poly p;
    518   int j;
    519   j=0;
    520515  poly ret=NULL;
    521516  poly prev=NULL;
     
    944939        SI_LINK_SET_RW_OPEN_P(l);
    945940        d->send_quit_at_exit=1;
    946         fprintf(d->f_write,"98 %d %d %u %u\n",SSI_VERSION,MAX_TOK,test,verbose);
     941        fprintf(d->f_write,"98 %d %d %u %u\n",SSI_VERSION,MAX_TOK,si_opt_1,si_opt_2);
    947942      }
    948943      // ----------------------------------------------------------------------
     
    10211016          {
    10221017            d->f_write = outfile;
    1023             fprintf(d->f_write,"98 %d %d %u %u\n",SSI_VERSION,MAX_TOK,test,verbose);
     1018            fprintf(d->f_write,"98 %d %d %u %u\n",SSI_VERSION,MAX_TOK,si_opt_1,si_opt_2);
    10241019          }
    10251020        }
     
    12101205                  Print("// opening ssi-%d, MAX_TOK=%d\n",n98_v,n98_m);
    12111206                #endif
    1212                 test=n98_o1;
    1213                 verbose=n98_o2;
     1207                si_opt_1=n98_o1;
     1208                si_opt_2=n98_o2;
    12141209                return ssiRead1(l);
    12151210             }
     
    12801275                        if(tt==POLY_CMD) fputs("6 ",d->f_write);
    12811276                        else             fputs("9 ",d->f_write);
    1282                         ssiWritePoly(d,tt,(poly)dd);
     1277                        ssiWritePoly(d,(poly)dd);
    12831278                        break;
    12841279          case IDEAL_CMD:
     
    17961791**/
    17971792/*---------------------------------------------------------------------*/
    1798 void sig_chld_hdl(int sig)
     1793void sig_chld_hdl(int)
    17991794{
    18001795  pid_t kidpid;
Note: See TracChangeset for help on using the changeset viewer.