First implementation of the Todd-Coxeter algorithm for Coxeter groups. Based on github.com/allemangD/toddcox-fast

This commit is contained in:
JCRaymond
2019-12-23 01:55:33 -05:00
commit ed69ba6dc0
3 changed files with 302 additions and 0 deletions

19
test.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "groups.cpp"
#include <chrono>
#include <iostream>
int main() {
Group g = B(9);
auto s = std::chrono::system_clock::now();
auto cosets = g.solve();
auto e = std::chrono::system_clock::now();
std::chrono::duration<double> diff = e - s;
int order = cosets.len;
std::cout << order << std::endl;
std::cout << diff.count() << std::endl;
return 0;
}