add simple docs and use namespaced tc::solve

This commit is contained in:
2020-01-03 22:36:32 -05:00
parent 0c94d48235
commit f1c57b241f
2 changed files with 31 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ int main() {
for (const auto &group : groups) {
auto s = std::clock(); // to measure CPU time
auto cosets = solve(group);
auto cosets = tc::solve(group);
auto e = std::clock();
double diff = (double) (e - s) / CLOCKS_PER_SEC;

View File

@@ -39,24 +39,54 @@ namespace tc {
Group schlafli(const std::vector<int> &mults);
namespace group {
/**
* Simplex
*/
Group A(int dim);
/**
* Cube, Orthoplex
*/
Group B(int dim);
/**
* Demicube, Orthoplex
*/
Group D(int dim);
/**
* E groups
*/
Group E(int dim);
/**
* 24 Cell
*/
Group F4();
/**
* Hexagon
*/
Group G2();
/**
* Icosahedron
*/
Group H(int dim);
/**
* Polygonal
*/
Group I2(int n);
/**
* Toroidal. I2(n) * I2(m)
*/
Group T(int n, int m);
/**
* Toroidal. T(n, n)
*/
Group T(int n);
}
}