1
0

Templatize tc::Group and tc::Tables

This commit is contained in:
David Allemang
2021-11-01 08:58:11 -04:00
parent 6874faac1d
commit 68065f4a56
6 changed files with 183 additions and 186 deletions

View File

@@ -15,24 +15,24 @@ void test(const G &group) {
int order = cosets.size();
std::cout
<< std::setw(7) << group.name << ", "
<< std::setw(7) << group.name() << ", "
<< std::setw(7) << order << ", "
<< std::fixed << std::setprecision(6) << diff << "s"
<< std::endl;
}
int main() {
test(tc::group::H(2));
test(tc::group::H(3));
test(tc::group::H(4));
test(tc::group::H<2>());
test(tc::group::H<3>());
test(tc::group::H<4>());
test(tc::group::T(100));
test(tc::group::T(500));
test(tc::group::T(1000));
test(tc::group::E(6));
test(tc::group::E(7));
test(tc::group::B(6));
test(tc::group::B(7));
test(tc::group::B(8));
test(tc::group::E<6>());
test(tc::group::E<7>());
test(tc::group::B<6>());
test(tc::group::B<7>());
test(tc::group::B<8>());
return 0;
}