11 init(dimension, order);
25 std::vector<std::vector<int> > v;
32 for(
unsigned int i=0; i < v.size(); i++) sort((v[i]).rbegin(), (v[i]).rend());
33 sort(v.rbegin(), v.rend());
34 std::vector< std::vector<int> >::iterator
35 lastUnique = unique(v.begin(), v.end());
36 v.erase(lastUnique, v.end());
38 for(
unsigned int j=0; j < v.size(); j++){
39 if(dbThis)cout << v[j] << endl;
48 , std::vector<std::vector<int> >& v){
49 if(dimension <=0)
return true;
51 std::vector<int> p(dimension,0);
55 for(
int od = order-1; od > 0; od--){
56 std::vector<int> p(dimension,0);
58 std::vector<std::vector<int> > v2;
60 for(
unsigned int i=0; i < v2.size(); i++){
61 std::vector<int>& p2(p);
62 std::vector<int>& tv2(v2[i]);
63 for(
unsigned int k=0; k < tv2.size() && k + 1 < p2.size(); k++){
73 for(
unsigned int i=0; i < this->
size(); i++){
74 if(0 != i) os <<
"\n\t + ";
void push_back(const symPolyTerm &c)
std::ostream & operator<<(std::ostream &os, const symMultiPolyTerm &smpt)
void print(std::ostream &os=std::cout) const
unsigned int size() const
symMultiPolyTerm(int dimension, int order=0)
bool init(int dimension, int order)
bool createTerms(int dimension, int order)