Changeset 9e20b9f in git
- Timestamp:
- Jul 5, 2020, 4:13:40 PM (3 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- d6c852edab73f91c0b7fd573de9f4cb9c4880d7bf8d27e1651a82b4063c80d3de252b7aee270308f
- Parents:
- 89005e409e564feafbec751f5c65109638c47368
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facFqBivar.cc
r89005e r9e20b9f 805 805 Variable chooseExtension (const Variable & alpha, const Variable& beta, int k) 806 806 { 807 #if defined(HAVE_FLINT)808 nmod_poly_t Irredpoly;809 nmod_poly_init(Irredpoly,getCharacteristic());810 #elif defined(HAVE_NTL)811 if (fac_NTL_char != getCharacteristic())812 {813 fac_NTL_char= getCharacteristic();814 zz_p::init (getCharacteristic());815 }816 zz_pX NTLIrredpoly;817 #endif818 807 int i=1, m= 2; 819 808 // extension of F_p needed … … 839 828 } 840 829 #if defined(HAVE_FLINT) 830 nmod_poly_t Irredpoly; 831 nmod_poly_init(Irredpoly,getCharacteristic()); 841 832 nmod_poly_randtest_monic_irreducible(Irredpoly,FLINTrandom,i*m+1); 842 833 CanonicalForm newMipo= convertnmod_poly_t2FacCF(Irredpoly,Variable (1)); 843 834 #elif defined(HAVE_NTL) 835 if (fac_NTL_char != getCharacteristic()) 836 { 837 fac_NTL_char= getCharacteristic(); 838 zz_p::init (getCharacteristic()); 839 } 840 zz_pX NTLIrredpoly; 844 841 BuildIrred (NTLIrredpoly, i*m); 845 842 CanonicalForm newMipo= convertNTLzzpX2CF (NTLIrredpoly, Variable (1));
Note: See TracChangeset
for help on using the changeset viewer.