diff --git a/src/main.cpp b/src/main.cpp index 12543c9..9c98f6c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,40 @@ #include using namespace std; +ostream& operator<<(ostream&o, ccr::polynomial p) +{ + o << "polynomial degree " << p.degree() << ':' << endl; + for(int i=0,e=p.degree();i<=e;++i) o << p[i] << ' '; + o << endl; + return o; +} + +ostream& operator<<(ostream&o, ccr::permutation p) +{ + o << "permutation over " << p.size() << " elements:" << endl; + for(uint i=0;i