Changeset 91c0af in git


Ignore:
Timestamp:
Jun 20, 2014, 3:34:18 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
68f5d0048b22a105171d0b1bbd91967a3129cc13
Parents:
85d8e82781d0ff9a659021b880317d46083f09b5
Message:
fix: assign def,def=matrix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r85d8e82 r91c0af  
    743743#ifdef HAVE_RINGS
    744744  ideal id = (ideal)a->Data(); //?
    745   const int cpos = idPosConstant(id); 
     745  const int cpos = idPosConstant(id);
    746746  if(rField_is_Ring(currRing))
    747747    if (cpos >= 0)
     
    756756  ring qr = rCopy(currRing);
    757757  assume(qr->cf == currRing->cf);
    758  
     758
    759759  if ( qr->cf != newcf )
    760760  {
    761761    nKillChar ( qr->cf ); // ???
    762762    qr->cf = newcf;
    763   } 
     763  }
    764764                 // we have to fill it, but the copy also allocates space
    765765  idhdl h=(idhdl)res->data; // we have res->rtyp==IDHDL
    766766  IDRING(h)=qr;
    767  
     767
    768768  ideal qid;
    769769
     
    773773      int i, j;
    774774      int *perm = (int *)omAlloc0((qr->N+1)*sizeof(int));
    775      
    776       for(i=qr->N;i>0;i--) 
     775
     776      for(i=qr->N;i>0;i--)
    777777        perm[i]=i;
    778778
     
    786786#endif
    787787      qid = idrCopyR(id,currRing,qr);
    788      
     788
    789789  idSkipZeroes(qid);
    790790  //idPrint(qid);
     
    12281228    IDLIST((idhdl)l->data)=L;
    12291229    IDTYP((idhdl)l->data)=LIST_CMD; // was possibly DEF_CMD
    1230     ipMoveId((idhdl)l->data);
     1230    if (lRingDependend(L)) ipMoveId((idhdl)l->data);
    12311231  }
    12321232  else
     
    13941394      h=l->next;
    13951395      l->next=NULL;
     1396      idhdl hh=NULL;
     1397      if ((l->rtyp==IDHDL)&&(l->Typ()==DEF_CMD)) hh=(idhdl)l->data;
    13961398      nok=jiAssign_1(l,&t);
     1399      if (hh!=NULL) { ipMoveId(hh);hh=NULL;}
    13971400      l->next=h;
    13981401      if (nok)
Note: See TracChangeset for help on using the changeset viewer.