Changeset 32a8db2 in git
- Timestamp:
- Aug 30, 2012, 3:06:12 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
- Children:
- 9d572a5ef6cc92ef31d96bc9c05d28e5a1e27bff
- Parents:
- bf4c6ef72e2d8a1ee598aebcb4ca4ca73a2f2efa
- git-author:
- Martin Lee <martinlee84@web.de>2012-08-30 15:06:12+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-09-05 15:00:02+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_factor.cc
rbf4c6e r32a8db2 393 393 if ( f.inCoeffDomain() ) 394 394 return CFFList( f ); 395 int mv=f.level();396 int org_v=mv;397 395 //out_cf("factorize:",f,"==================================\n"); 398 396 if (! f.isUnivariate() ) … … 425 423 if(isOn(SW_USE_NTL_SORT)) Unhomoglist.sort(cmpCF); 426 424 return Unhomoglist; 427 }428 mv=find_mvar(f);429 if ( getCharacteristic() == 0 )430 {431 if (mv!=f.level())432 {433 swapvar(f,Variable(mv),f.mvar());434 }435 }436 else437 {438 if (mv!=1)439 {440 swapvar(f,Variable(mv),Variable(1));441 org_v=1;442 }443 425 } 444 426 } … … 694 676 } 695 677 696 if ((mv!=org_v) && (! f.isUnivariate() ))697 {698 CFFListIterator J=F;699 for ( ; J.hasItem(); J++)700 {701 swapvar(J.getItem().factor(),Variable(mv),Variable(org_v));702 }703 swapvar(f,Variable(mv),Variable(org_v));704 }705 678 //out_cff(F); 706 679 if(isOn(SW_USE_NTL_SORT)) F.sort(cmpCF);
Note: See TracChangeset
for help on using the changeset viewer.