forked from mirror/toddcox-faster
add missing operator definitions
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <utility>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
|
||||
namespace tc {
|
||||
Action::Action(int from_idx, int gen)
|
||||
@@ -149,4 +150,12 @@ namespace tc {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Group operator*(const Group &g, const Group &h) {
|
||||
return g.product(h);
|
||||
}
|
||||
|
||||
Group operator^(const Group &g, int p) {
|
||||
return g.power(p);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user