Changeset a40b28 in git for libpolys


Ignore:
Timestamp:
Jul 5, 2019, 1:22:19 PM (5 years ago)
Author:
tthsqe12 <tthsqe12@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f846acd24f4deb73b0e1179f7ea25a1d457c0c11
Parents:
d7e478b022286a7b9c6c3b8ad497909018f6560d
Message:
normalize gcd before converting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/flint_mpoly.cc

    rd7e478b ra40b28  
    823823  if (ok)
    824824  {
     825    // Flint normalizes the gcd to be monic.
     826    // Singular wants a gcd defined over ZZ that is primitive and has a positive leading coeff.
     827    if (!fmpq_mpoly_is_zero(res, ctx))
     828    {
     829      fmpq_t content;
     830      fmpq_init(content);
     831      fmpq_mpoly_content(content, res, ctx);
     832      fmpq_mpoly_scalar_div_fmpq(res, res, content, ctx);
     833      fmpq_clear(content);
     834    }
    825835    pres=convFlintMPSingP(res,ctx,r);
    826836    p_Test(pres,r);
Note: See TracChangeset for help on using the changeset viewer.