Changeset d12f186 in git


Ignore:
Timestamp:
Jul 7, 2011, 11:18:50 AM (12 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
44d898208ddc75d14a68b3bf09b8a1971b2ee1f6
Parents:
6c19d854882ab99fd19b9b972a32606106c2f2ee
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-07-07 11:18:50+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:12+01:00
Message:
bug in coeffs.h, removing nested fractions in ext. fields over Q
Location:
libpolys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r6c19d8 rd12f186  
    317317
    318318/// conversion to int; 0 if not possible
    319 static inline int n_Int(number n,        const coeffs r)
     319static inline int n_Int(number &n,       const coeffs r)
    320320{ assume(r != NULL); assume(r->cfInt!=NULL); return r->cfInt(n,r); }
    321321
  • libpolys/coeffs/longrat.cc

    r6c19d8 rd12f186  
    221221           everything is computed correctly and no seg fault appears.
    222222           Maybe the test is not appropriate in this case. */
    223   //omCheckIf(omCheckAddrSize(a,sizeof(*a)), return FALSE);
     223  omCheckIf(omCheckAddrSize(a,sizeof(*a)), return FALSE);
    224224  if (a->debug!=123456)
    225225  {
  • libpolys/polys/ext_fields/transext.cc

    r6c19d8 rd12f186  
    591591  if (!p_IsConstant(DEN(f), ntRing))
    592592  { /* step (1); see documentation of this procedure above */
     593    p_Normalize(NUM(f), ntRing);
     594    p_Normalize(DEN(f), ntRing);
    593595    number lcmOfDenominators = n_Init(1, ntCoeffs);
    594596    number c; number tmp;
     
    616618    { /* multiply NUM(f) and DEN(f) with lcmOfDenominators */
    617619      NUM(f) = p_Mult_nn(NUM(f), lcmOfDenominators, ntRing);
     620      p_Normalize(NUM(f), ntRing);
    618621      DEN(f) = p_Mult_nn(DEN(f), lcmOfDenominators, ntRing);
     622      p_Normalize(DEN(f), ntRing);
    619623    }
    620624    n_Delete(&lcmOfDenominators, ntCoeffs);
     
    646650                                                     ntCoeffs);
    647651        NUM(f) = p_Mult_nn(NUM(f), inverseOfGcdOfCoefficients, ntRing);
     652        p_Normalize(NUM(f), ntRing);
    648653        DEN(f) = p_Mult_nn(DEN(f), inverseOfGcdOfCoefficients, ntRing);
     654        p_Normalize(DEN(f), ntRing);
    649655        n_Delete(&inverseOfGcdOfCoefficients, ntCoeffs);
    650656      }
Note: See TracChangeset for help on using the changeset viewer.