Changeset c3c832 in git for libpolys/polys/clapsing.cc


Ignore:
Timestamp:
Sep 30, 2021, 11:50:24 AM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
348ae69282271d1294a9b41bd9c15b897966c0ce
Parents:
4dc97bfcb251c1bcfa5ad66d1a61c6a41e7f0c86
Message:
gcd over Z via flint
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapsing.cc

    r4dc97b rc3c832  
    7878      poly res=Flint_GCD_MP(f,pLength(f),g,pLength(g),ctx,r);
    7979      res=p_Cleardenom(res,r);
     80      return res;
     81    }
     82  }
     83  else
     84  if (rField_is_Z(r))
     85  {
     86    fmpz_mpoly_ctx_t ctx;
     87    if (!convSingRFlintR(ctx,r))
     88    {
     89      // leading coef. positive, all coeffs in Z
     90      poly res=Flint_GCD_MP(f,pLength(f),g,pLength(g),ctx,r);
    8091      return res;
    8192    }
Note: See TracChangeset for help on using the changeset viewer.