Changeset 213596e in git


Ignore:
Timestamp:
Sep 17, 2014, 11:34:20 AM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
5b53cb58091cb3a67624dc9a430ac91504effa28
Parents:
258f6335e22e091c2215931d3099f5881f63f2aa
Message:
fix: bucket multiplication for domains
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/maps/fast_maps.cc

    r258f63 r213596e  
    437437{
    438438  // substitute the monomial: go through macoeff
    439   int len=pLength(p);
     439  int len;
     440  BOOLEAN zero_div= (rField_is_Ring(dest_r) && !rField_is_Domain(dest_r));
    440441  int done=0;
    441442  while (c!=NULL)
     
    443444    done++;
    444445    poly t=pp_Mult_nn(p,c->n,dest_r);
     446    #ifdef HAVE_RINGS
     447    if (zero_div) len=pLength(t);
     448    #endif
    445449    sBucket_Add_p(c->bucket, t, len);
    446450    c=c->next;
Note: See TracChangeset for help on using the changeset viewer.