Changeset 45e474 in git for factory/facFqBivar.cc
- Timestamp:
- Dec 16, 2013, 5:47:14 PM (9 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 84ac5994873dbb564fbbae08f3f16a378f8abfa0
- Parents:
- 0ebf2c731d149c10e2377cfd061cddf19c85502b
- git-author:
- Martin Lee <martinlee84@web.de>2013-12-16 17:47:14+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2014-01-20 16:45:03+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facFqBivar.cc
r0ebf2c r45e474 163 163 "univariate polynomial expected or constant expected"); 164 164 CFFList factorsA; 165 #ifndef HAVE_FLINT 165 166 if (fac_NTL_char != getCharacteristic()) 166 167 { … … 168 169 zz_p::init (getCharacteristic()); 169 170 } 171 #endif 170 172 if (GF) 171 173 { … … 178 180 if (getCharacteristic() > 2) 179 181 { 182 #if (HAVE_FLINT && __FLINT_VERSION_MINOR >= 4) 183 nmod_poly_t FLINTmipo, leadingCoeff; 184 fq_nmod_ctx_t fq_con; 185 fq_nmod_poly_t FLINTA; 186 fq_nmod_poly_factor_t FLINTFactorsA; 187 188 nmod_poly_init (FLINTmipo, getCharacteristic()); 189 convertFacCF2nmod_poly_t (FLINTmipo, mipo.mapinto()); 190 191 fq_nmod_ctx_init_modulus (fq_con, FLINTmipo, "Z"); 192 193 convertFacCF2Fq_nmod_poly_t (FLINTA, A, fq_con); 194 fq_nmod_poly_make_monic (FLINTA, FLINTA, fq_con); 195 196 fq_nmod_poly_factor_init (FLINTFactorsA, fq_con); 197 nmod_poly_init (leadingCoeff, getCharacteristic()); 198 199 fq_nmod_poly_factor (FLINTFactorsA, leadingCoeff, FLINTA, fq_con); 200 201 factorsA= convertFLINTFq_nmod_poly_factor2FacCFFList (FLINTFactorsA, x, beta, fq_con); 202 203 fq_nmod_poly_factor_clear (FLINTFactorsA, fq_con); 204 fq_nmod_poly_clear (FLINTA, fq_con); 205 nmod_poly_clear (FLINTmipo); 206 nmod_poly_clear (leadingCoeff); 207 fq_nmod_ctx_clear (fq_con); 208 #else 180 209 zz_pX NTLMipo= convertFacCF2NTLzzpX (mipo.mapinto()); 181 210 zz_pE::init (NTLMipo); … … 186 215 factorsA= convertNTLvec_pair_zzpEX_long2FacCFFList (NTLFactorsA, multi, 187 216 x, beta); 217 #endif 188 218 } 189 219 else … … 210 240 if (getCharacteristic() > 2) 211 241 { 242 #if (HAVE_FLINT && __FLINT_VERSION_MINOR >= 4) 243 nmod_poly_t FLINTmipo, leadingCoeff; 244 fq_nmod_ctx_t fq_con; 245 fq_nmod_poly_t FLINTA; 246 fq_nmod_poly_factor_t FLINTFactorsA; 247 248 nmod_poly_init (FLINTmipo, getCharacteristic()); 249 convertFacCF2nmod_poly_t (FLINTmipo, getMipo (alpha)); 250 251 fq_nmod_ctx_init_modulus (fq_con, FLINTmipo, "Z"); 252 253 convertFacCF2Fq_nmod_poly_t (FLINTA, A, fq_con); 254 fq_nmod_poly_make_monic (FLINTA, FLINTA, fq_con); 255 256 fq_nmod_poly_factor_init (FLINTFactorsA, fq_con); 257 nmod_poly_init (leadingCoeff, getCharacteristic()); 258 259 fq_nmod_poly_factor (FLINTFactorsA, leadingCoeff, FLINTA, fq_con); 260 261 factorsA= convertFLINTFq_nmod_poly_factor2FacCFFList (FLINTFactorsA, x, alpha, fq_con); 262 263 fq_nmod_poly_factor_clear (FLINTFactorsA, fq_con); 264 fq_nmod_poly_clear (FLINTA, fq_con); 265 nmod_poly_clear (FLINTmipo); 266 nmod_poly_clear (leadingCoeff); 267 fq_nmod_ctx_clear (fq_con); 268 #else 212 269 zz_pX NTLMipo= convertFacCF2NTLzzpX (getMipo (alpha)); 213 270 zz_pE::init (NTLMipo); … … 218 275 factorsA= convertNTLvec_pair_zzpEX_long2FacCFFList (NTLFactorsA, multi, 219 276 x, alpha); 277 #endif 220 278 } 221 279 else
Note: See TracChangeset
for help on using the changeset viewer.