Changeset 2ffd25 in git for Singular/ipassign.cc


Ignore:
Timestamp:
Jun 14, 2018, 2:59:48 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
1f37c3385e83e4bc34dab711cc9b9797b6290c84
Parents:
db48f3ea705fcb451c2ea640a2b72f643bae2f22
Message:
introduce smatrix (sparse matrix)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    rdb48f3e r2ffd25  
    687687      jjNormalizeQRingP(p);
    688688    }
    689     pDelete(&MATELEM(m,i,j));
    690     MATELEM(m,i,j)=p;
    691     /* for module: update rank */
    692     if ((p!=NULL) && (pGetComp(p)!=0))
    693     {
    694       m->rank=si_max(m->rank,pMaxComp(p));
     689    if (res->rtyp==SMATRIX_CMD)
     690    {
     691      p=pSub(p,SMATELEM(m,i-1,j-1,currRing));
     692      pSetCompP(p,i);
     693      m->m[j-1]=pAdd(m->m[j-1],p);
     694    }
     695    else
     696    {
     697      pDelete(&MATELEM(m,i,j));
     698      MATELEM(m,i,j)=p;
     699      /* for module: update rank */
     700      if ((p!=NULL) && (pGetComp(p)!=0))
     701      {
     702        m->rank=si_max(m->rank,pMaxComp(p));
     703      }
    695704    }
    696705  }
Note: See TracChangeset for help on using the changeset viewer.