Changeset f7286a in git for libpolys/polys


Ignore:
Timestamp:
Oct 31, 2012, 3:12:54 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
880433df635f3b50ff607d57901f88cba3333ebd
Parents:
6a05fd20a1813f28c0b8400fef5f3d7026c6334c
Message:
fix: idrCopyR need equal coeffs, fixed dim(i),dim(i,j) for ring-cf
Location:
libpolys/polys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r6a05fd rf7286a  
    158158  const poly num = NUM(t);
    159159  assume(num != NULL);   /**< t != 0 ==> numerator(t) != 0 */
    160   assume( p_Test(num, ntRing) );
     160  assume( _p_Test(num, ntRing,1) );
    161161
    162162  const poly den = DEN(t);
     
    164164  if (den != NULL) // !DENIS1(f)
    165165  {
    166     assume( p_Test(den, ntRing) );
     166    assume( _p_Test(den, ntRing,1) );
    167167
    168168    if(p_IsConstant(den, ntRing) && (n_IsOne(pGetCoeff(den), ntRing->cf)))
  • libpolys/polys/polys0.cc

    r6a05fd rf7286a  
    150150    while (p!=NULL)
    151151    {
     152      assume(!n_IsZero(p->coef,tailRing->cf));
    152153      if ((p->coef==NULL)||n_GreaterZero(p->coef,tailRing->cf))
    153154        StringAppendS("+");
  • libpolys/polys/prCopy.cc

    r6a05fd rf7286a  
    144144{
    145145  if (id == NULL) return NULL;
     146  assume(src_r->cf==dest_r->cf);
    146147  poly p;
    147148  ideal res = idInit(IDELEMS(id), id->rank);
     
    159160ideal idrCopyR(ideal id, ring src_r, ring dest_r)
    160161{
     162  assume(src_r->cf==dest_r->cf);
    161163  ideal res;
    162164  prCopyProc_t prproc;
     
    171173ideal idrCopyR_NoSort(ideal id, ring src_r, ring dest_r)
    172174{
     175  assume(src_r->cf==dest_r->cf);
    173176  ideal res;
    174177  prCopyProc_t prproc;
     
    198201idrMove(ideal &id, ring src_r, ring dest_r, prCopyProc_t prproc)
    199202{
     203  assume(src_r->cf==dest_r->cf);
    200204  if (id == NULL) return NULL;
    201205  ideal res = id;
     
    210214ideal idrMoveR(ideal &id, ring src_r, ring dest_r)
    211215{
     216  assume(src_r->cf==dest_r->cf);
    212217  prCopyProc_t prproc;
    213218  ideal res;
     
    222227ideal idrMoveR_NoSort(ideal &id, ring src_r, ring dest_r)
    223228{
     229  assume(src_r->cf==dest_r->cf);
    224230  prCopyProc_t prproc;
    225231  ideal res;
  • libpolys/polys/prCopyTemplate.cc

    r6a05fd rf7286a  
    1010(poly &src, ring r_src, ring r_dest)
    1111{
     12  if (src==NULL) return NULL;
    1213  spolyrec dest_s;
    1314  poly dest = &dest_s;
     
    3031  p_Test(dest, r_dest);
    3132  return dest;
    32   (void)(r_src);
    3333}
Note: See TracChangeset for help on using the changeset viewer.