Changeset 63df50e in git


Ignore:
Timestamp:
Jun 28, 2020, 1:03:54 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
78242cd9e20b3bbe063e29767e95ac64f65545d6
Parents:
a7235589fb2e045397d9d6de8846aeccb51f4074
Message:
factory: use correct first root via flint
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_map_ext.cc

    ra723558 r63df50e  
    8484    fq_nmod_poly_factor_init(fac,ctx);
    8585    fq_nmod_poly_roots(fac, mipo2, 0, ctx);
    86      // root of first factor:
     86    // root of first (linear) factor: -absolute Term
    8787    fq_nmod_t r0;
    8888    fq_nmod_init(r0, ctx);
    8989    fq_nmod_poly_get_coeff(r0,fac->poly,0,ctx);
     90    fq_nmod_neg(r0, r0, ctx);
    9091    // convert
    9192    CanonicalForm r1=convertFq_nmod_t2FacCF(r0,beta);
     
    398399  fq_nmod_poly_factor_init(fac,ctx);
    399400  fq_nmod_poly_roots(fac, FLINT_beta_mipo, 0, ctx);
    400   // root of first factor:
     401  // root of first (linear) factor: -absolute Term
    401402  fq_nmod_t r0;
    402403  fq_nmod_init(r0, ctx);
    403404  fq_nmod_poly_get_coeff(r0,fac->poly,0,ctx);
     405  fq_nmod_neg(r0, r0, ctx);
    404406  // convert
    405407  CanonicalForm r1=convertFq_nmod_t2FacCF(r0,alpha);
     
    461463    fq_nmod_poly_factor_init(fac,ctx);
    462464    fq_nmod_poly_roots(fac, mipo2, 0, ctx);
    463      // root of first factor:
     465    // root of first (linear) factor: -absolute Term
    464466    fq_nmod_t r0;
    465467    fq_nmod_init(r0, ctx);
    466468    fq_nmod_poly_get_coeff(r0,fac->poly,0,ctx);
     469    fq_nmod_neg(r0, r0, ctx);
    467470    // convert
    468471    CanonicalForm r1=convertFq_nmod_t2FacCF(r0,beta);
Note: See TracChangeset for help on using the changeset viewer.