Changeset 86f1dc in git for libpolys


Ignore:
Timestamp:
Nov 23, 2015, 5:52:47 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
1d06d1ede01d762c37e91bbba1ba61873ff384c16ba950e5cfaadf94bd8ecc90e29bc1fe2bbc7d3a
Parents:
66b765e3f29eeafd84422812424a97ffb5ec7c22
Message:
fix: some assume violations in debug mode
Location:
libpolys/polys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r66b765e r86f1dc  
    34163416  int i;
    34173417  poly p=p_One(r);
    3418   p_SetExp(p,1,1,r);p_Setm(p,r);
     3418  p_SetExp(p,1,1,r);
     3419  p_Setm(p,r);
    34193420  int vz=sign(p_FDeg(p,r));
    34203421  for(i=2;i<=rVar(r);i++)
     
    38053806    i++; j++;
    38063807  }
    3807   // No use of j anymore!!!????
    38083808
    38093809  if (i==r->pCompIndex) i++;
    3810   r->pOrdIndex=i; // How came it is "i" here???!!!! exp[r->pOrdIndex] is order of a poly... This may be wrong!!! IS
     3810  r->pOrdIndex=i;
    38113811
    38123812  // ----------------------------
  • libpolys/polys/nc/old.gring.cc

    r66b765e r86f1dc  
    28022802
    28032803#ifndef SING_NDEBUG
    2804   id_Test((ideal)CCC, curr);
    2805   id_Test((ideal)DDD, curr);
     2804  if (CCC!=NULL) id_Test((ideal)CCC, curr);
     2805  if (DDD!=NULL) id_Test((ideal)DDD, curr);
    28062806  p_Test(CCN, curr);
    28072807  p_Test(DDN, curr);
  • libpolys/polys/sparsmat.cc

    r66b765e r86f1dc  
    508508  int i;
    509509
    510   for (i=crd; i; i--) res->m[i-1] = sm_Smpoly2Poly(m_res[i],_R);
    511   res->rank = id_RankFreeModule(res,_R);
     510  for (i=crd; i; i--)
     511  {
     512    res->m[i-1] = sm_Smpoly2Poly(m_res[i],_R);
     513    res->rank=si_max(res->rank, (long)p_MaxComp(res->m[i-1],_R));
     514  }
    512515  return res;
    513516}
Note: See TracChangeset for help on using the changeset viewer.