Changeset 21263cf in git
- Timestamp:
- Aug 1, 2012, 5:56:22 PM (11 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- 18368851c078420078f8f9bd4ca3c74977a6c3a8
- Parents:
- 5ab7d6cc38ed01ca8113b42dcf789145642047c0
- git-author:
- Martin Lee <martinlee84@web.de>2012-08-01 17:56:22+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-08-03 10:03:18+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/libfac/factor/Factor.cc
r5ab7d6 r21263cf 392 392 generate_mipo( int degree_of_Extension , const Variable & Extension ){ 393 393 FFRandom gen; 394 if ( degree(Extension) > 0 ) GFRandom gen; 395 else { 396 if ( degree(Extension) == 0 ) FFRandom gen; 397 else 398 { 399 factoryError("libfac: evaluate: Extension not inFF() or inGF() !"); 400 } 401 } 394 if (degree (Extension) < 0) 395 factoryError("libfac: evaluate: Extension not inFF() or inGF() !"); 402 396 return find_irreducible( degree_of_Extension, gen, Variable(1) ); 403 397 } … … 480 474 if ( ! working_over_extension ) 481 475 { 482 minpoly= rootOf(generate_mipo( extended,Extension )); 476 if (!hasMipo(Extension)) 477 minpoly= rootOf (generate_mipo (extended, Extension)); 478 else 479 { 480 setReduce (Extension, false); 481 setMipo (minpoly, generate_mipo ( extended, Extension)); 482 setReduce (Extension, true); 483 } 483 484 Extension= minpoly; 484 485 ok= try_specializePoly(f,minpoly,deg,Substitutionlist,i,j); 485 486 if (!ok) 486 {487 487 Substitutionlist=origS; 488 // very bad hack: TODO489 // we want to remove the newly created variable minpoly:490 extern char *var_names_ext;491 var_names_ext[strlen(var_names_ext)]='\0';492 }493 488 } 494 489 else
Note: See TracChangeset
for help on using the changeset viewer.