mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2026-01-24 06:39:20 -05:00
First implementation of the Todd-Coxeter algorithm for Coxeter groups. Based on github.com/allemangD/toddcox-fast
This commit is contained in:
19
test.cpp
Normal file
19
test.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user