#include <symMultiPolyTerm.h>
|
bool | createTerms (int dimension, int order) |
|
bool | createTerms (int dimension, int order, std::vector< std::vector< int > > &v) |
|
bool | init (int dimension, int order) |
|
Definition at line 10 of file symMultiPolyTerm.h.
◆ symMultiPolyTerm() [1/2]
symMultiPolyTerm::symMultiPolyTerm |
( |
int |
dimension, |
|
|
int |
order = 0 |
|
) |
| |
◆ symMultiPolyTerm() [2/2]
◆ ~symMultiPolyTerm()
virtual symMultiPolyTerm::~symMultiPolyTerm |
( |
| ) |
|
|
inlinevirtual |
◆ createTerms() [1/2]
bool symMultiPolyTerm::createTerms |
( |
int |
dimension, |
|
|
int |
order |
|
) |
| |
|
private |
Definition at line 22 of file symMultiPolyTerm.cpp.
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;
void push_back(const symPolyTerm &c)
bool createTerms(int dimension, int order)
◆ createTerms() [2/2]
bool symMultiPolyTerm::createTerms |
( |
int |
dimension, |
|
|
int |
order, |
|
|
std::vector< std::vector< int > > & |
v |
|
) |
| |
|
private |
Definition at line 47 of file symMultiPolyTerm.cpp.
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++){
bool createTerms(int dimension, int order)
◆ init()
bool symMultiPolyTerm::init |
( |
int |
dimension, |
|
|
int |
order |
|
) |
| |
|
private |
◆ print()
void symMultiPolyTerm::print |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 72 of file symMultiPolyTerm.cpp.
73 for(
unsigned int i=0; i < this->
size(); i++){
74 if(0 != i) os <<
"\n\t + ";
unsigned int size() const
The documentation for this class was generated from the following files: