Changeset 5ce0932 in git
- Timestamp:
- Aug 30, 2014, 1:04:36 PM (9 years ago)
- Branches:
- (u'spielwiese', '91e5db82acc17434e4062bcfa44e6efa7d41fd30')
- Children:
- 3b6f1bf8adb986d207f385b4473052dca49baf56
- Parents:
- be56d6d38f95c7e07d9b7061b326b0851e840fe4
- Location:
- factory
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfCharSets.cc
rbe56d6d r5ce0932 437 437 l= tmp.getFirst(); 438 438 439 tmp= Difference (tmp, l , operator==);439 tmp= Difference (tmp, l); 440 440 441 441 select (ppi, l.length(), ppi1, ppi2); … … 444 444 445 445 if (count > 0) 446 ppi= Union (ppi1, ListCFList (l) , operator==);446 ppi= Union (ppi1, ListCFList (l)); 447 447 else 448 448 ppi= ListCFList(); … … 455 455 if (charset.length() > 0 && charset.getFirst().level() > 0) 456 456 { 457 result= Union (ListCFList (charset), result , operator==);457 result= Union (ListCFList (charset), result); 458 458 ini= factorsOfInitials (charset); 459 459 … … 468 468 469 469 tmp2= adjoin (ini, l, qqi); 470 tmp= Union (tmp2, tmp , operator==);470 tmp= Union (tmp2, tmp); 471 471 472 472 StoredFactors.FS1= CFList(); … … 616 616 { 617 617 nr_of_iteration += 1; 618 ppi= Union (ppi1, ListCFList (qs) , operator==);618 ppi= Union (ppi1, ListCFList (qs)); 619 619 } 620 620 … … 636 636 if (!isSubset (cs,qs)) 637 637 cs= charSetViaCharSetN (Union (qs,cs)); 638 if (!find (pi, cs , operator==))638 if (!find (pi, cs)) 639 639 { 640 pi= Union (ListCFList (cs), pi , operator==);640 pi= Union (ListCFList (cs), pi); 641 641 if (cs.getFirst().level() > 0) 642 642 { … … 645 645 if (indexRed <= 0) //irreducible 646 646 { 647 qsi= Union (ListCFList(cs), qsi , operator==);647 qsi= Union (ListCFList(cs), qsi); 648 648 if (cs.length() == highestlevel) 649 649 is= factorPSet (factorset); … … 674 674 } 675 675 is= Union (factorsOfInitials (cst), is); 676 iss= Union (adjoinb (ts, qs, qqi, cst), adjoin (is, qs, qqi) , operator==);676 iss= Union (adjoinb (ts, qs, qqi, cst), adjoin (is, qs, qqi)); 677 677 } 678 678 else … … 685 685 { 686 686 qhi.removeFirst(); 687 qhi= Union (iss, qhi , operator==);687 qhi= Union (iss, qhi); 688 688 } 689 689 else -
factory/cfCharSetsUtil.cc
rbe56d6d r5ce0932 487 487 { 488 488 elem= i.getItem(); 489 if ((!elem.isEmpty()) && (!find (b, elem , operator==)))489 if ((!elem.isEmpty()) && (!find (b, elem))) 490 490 b.insert(elem); 491 491 } … … 509 509 return iss; 510 510 511 qhi= Difference (qh, qs , operator==);511 qhi= Difference (qh, qs); 512 512 length= qhi.length(); 513 513 … … 547 547 if (iscopy.isEmpty()) 548 548 return iss; 549 qhi= Difference (qh, qs , operator==);549 qhi= Difference (qh, qs); 550 550 length= qhi.length(); 551 551 for (i= iscopy; i.hasItem(); i++) … … 940 940 { 941 941 iitem= i.getItem(); 942 if (!find (mem, iitem , operator==))942 if (!find (mem, iitem)) 943 943 { 944 944 j= i; … … 947 947 { 948 948 jitem= j.getItem(); 949 if (!find (mem, jitem , operator==))949 if (!find (mem, jitem)) 950 950 { 951 951 if (contractsub (iitem, jitem)) … … 963 963 } 964 964 } 965 return Difference (cs,ts , operator==);966 } 967 965 return Difference (cs,ts); 966 } 967 -
factory/ftmpl_inst.cc
rbe56d6d r5ce0932 153 153 template int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &); 154 154 template List<CanonicalForm> Union ( const List<CanonicalForm> &, const List<CanonicalForm> & ); 155 template List< List<CanonicalForm> > Union ( const List<List<CanonicalForm> >&, const List<List<CanonicalForm> >&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &));155 template List<CFList> Union ( const List<CFList>&, const List<CFList>&); 156 156 template List<CanonicalForm> Difference ( const List<CanonicalForm> &, const List<CanonicalForm> & ); 157 template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<List<CanonicalForm> >&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &)); 158 template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&, int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &)); 157 template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<List<CanonicalForm> >&); 158 template List<List<CanonicalForm> > Difference ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&); 159 159 160 template CanonicalForm prod ( const List<CanonicalForm> & ); 160 161 template bool find ( const List<CanonicalForm> &, const CanonicalForm&); 161 template bool find ( const List<List<CanonicalForm> >&, const List<CanonicalForm>& , int operator== (const List<CanonicalForm> &, const List<CanonicalForm> &));162 template bool find ( const List<List<CanonicalForm> >&, const List<CanonicalForm>&); 162 163 // place here your own template stuff, not yet instantiated by factory 163 164 // -
factory/include/factory/templates/ftmpl_list.h
rbe56d6d r5ce0932 127 127 128 128 template <class T> 129 List<T> Difference ( const List<T> & F, const T & G); 130 131 template <class T> 129 132 List<T> Difference ( const List<T> & F, const T & G, int (*ecmpf)( const T&, const T& )); 130 133 -
factory/templates/ftmpl_list.cc
rbe56d6d r5ce0932 673 673 674 674 template <class T> 675 List<T> Difference ( const List<T> & F, const T & G) 676 { 677 List<T> L; 678 ListIterator<T> i; 679 int found; 680 for ( i = F; i.hasItem(); ++i ) 681 { 682 found = G == i.getItem(); 683 if ( ! found ) 684 L.append( i.getItem() ); 685 } 686 return L; 687 } 688 689 template <class T> 675 690 T prod ( const List<T> & F ) 676 691 {
Note: See TracChangeset
for help on using the changeset viewer.