- Timestamp:
- May 5, 2014, 5:22:51 PM (10 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 2a1008a43e16989a659f416d3aea369943c415b4
- Parents:
- 320ca656a049b44638dd1949fd1b8982a1226531
- git-author:
- Martin Lee <martinlee84@web.de>2014-05-05 17:22:51+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2014-05-12 14:35:02+02:00
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfCharSets.cc
r320ca6 re3cdb4 1256 1256 /// modified medial set 1257 1257 CFList 1258 modCharSet (const CFList& L, StoreFactors& StoredFactors )1258 modCharSet (const CFList& L, StoreFactors& StoredFactors, bool removeContents) 1259 1259 { 1260 1260 CFList QS= L, RS= L, CSet, tmp, contents, initial, removedFactors; … … 1262 1262 CanonicalForm r, cF; 1263 1263 bool noRemainder= true; 1264 StoreFactors StoredFactors2 , StoredFactors3;1264 StoreFactors StoredFactors2; 1265 1265 1266 1266 QS= uniGcd (L); … … 1288 1288 { 1289 1289 noRemainder= false; 1290 removeContent (r, cF); 1291 1292 if (!cF.isZero()) 1293 contents= Union (contents, factorPSet (CFList(cF))); //factorPSet maybe too much it should suffice to do a squarefree factorization instead 1290 if (removeContents) 1291 { 1292 removeContent (r, cF); 1293 1294 if (!cF.isZero()) 1295 contents= Union (contents, factorPSet (CFList(cF))); //factorPSet maybe too much it should suffice to do a squarefree factorization instead 1296 } 1294 1297 1295 1298 removeFactors (r, StoredFactors2, removedFactors); … … 1303 1306 } 1304 1307 1305 if ( !noRemainder)1308 if (removeContents && !noRemainder) 1306 1309 { 1307 1310 StoredFactors.FS1= Union (StoredFactors2.FS1, contents); … … 1325 1328 /// characteristic set via modified medial set 1326 1329 CFList 1327 charSetViaModCharSet (const CFList& PS, StoreFactors& StoredFactors )1328 { 1329 CFList result= modCharSet (PS, StoredFactors );1330 charSetViaModCharSet (const CFList& PS, StoreFactors& StoredFactors, bool removeContents) 1331 { 1332 CFList result= modCharSet (PS, StoredFactors, removeContents); 1330 1333 if (result.isEmpty() || result.getFirst().inCoeffDomain()) 1331 1334 return CFList(1); … … 1342 1345 return result; 1343 1346 1344 return charSetViaModCharSet (Union (PS, Union (RS, result)), StoredFactors );1347 return charSetViaModCharSet (Union (PS, Union (RS, result)), StoredFactors, removeContents); 1345 1348 } 1346 1349 1347 1350 CFList 1348 charSetViaModCharSet (const CFList& PS )1351 charSetViaModCharSet (const CFList& PS, bool removeContents) 1349 1352 { 1350 1353 StoreFactors tmp; 1351 return charSetViaModCharSet (PS, tmp); 1352 } 1353 1354 CFList 1355 modCharSet (const CFList& PS) 1356 { 1357 StoreFactors tmp; 1358 return modCharSet (PS, tmp); 1354 return charSetViaModCharSet (PS, tmp, removeContents); 1359 1355 } 1360 1356 -
factory/cfCharSets.h
r320ca6 re3cdb4 54 54 /// modified medial set 55 55 CFList 56 modCharSet (const CFList& PS, StoreFactors& StoredFactors); 57 58 /// wrapper for modCharSet 59 CFList 60 modCharSet (const CFList& PS); 56 modCharSet (const CFList& PS, StoreFactors& StoredFactors, bool removeContents= true); 61 57 62 58 /// modified characteristic set, i.e. a characteristic set with certain 63 59 /// factors removed 64 60 CFList 65 charSetViaModCharSet (const CFList& PS); 61 charSetViaModCharSet (const CFList& PS, StoreFactors& StoredFactors, bool removeContents= true); 62 63 /// modified characteristic set, i.e. a characteristic set with certain 64 /// factors removed 65 CFList 66 charSetViaModCharSet (const CFList& PS, bool removeContents= true); 66 67 67 68 /// characteristic series -
factory/facAlgFunc.cc
r320ca6 re3cdb4 1503 1503 // factor F with minimal polys given in asnew 1504 1504 asnew.append (F); 1505 asnew= charSetViaModCharSet (asnew ); // TODO use modCharSet1505 asnew= charSetViaModCharSet (asnew, false); 1506 1506 1507 1507 F= asnew.getLast(); … … 1549 1549 factor= M (factor); 1550 1550 transform.append (factor); 1551 transform= charSetViaModCharSet (transform ); //TODO use modCharSet1551 transform= charSetViaModCharSet (transform, false); 1552 1552 for (i= transform; i.hasItem(); i++) 1553 1553 {
Note: See TracChangeset
for help on using the changeset viewer.