From b22e2177fe86e23432ad7c7c0ff3ba61eef20b00 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Thu, 5 Apr 2012 14:55:02 +0200 Subject: [PATCH] useful debug info --- src/main.cpp | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) 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