1
0
Files
toddcox-faster/Testing/special.cpp
David Allemang fa13493569 Un-template groups.
Templating the groups doesn't improve performance that much, but it severely hinders usability. Switch things to be dynamically sized so that different ranked groups are the same type.

Could also now separate headers and implementation... but will probably leave it for now.
2021-11-07 20:40:34 -05:00

38 lines
755 B
C++

#include "common.hpp"
#include <iostream>
int main(int argc, char **argv) {
auto name = std::string(argv[1]);
auto vgens = parse_vec(argv[2]);
auto target = std::stoul(argv[3]);
unsigned int order;
tc::Group group(0);
if (name == "E6") {
group = tc::group::E(6);
}
if (name == "E7") {
group = tc::group::E(7);
}
if (name == "E8") {
group = tc::group::E(8);
}
if (name == "B6") {
group = tc::group::B(6);
}
if (name == "B7") {
group = tc::group::B(7);
}
if (name == "B8") {
group = tc::group::B(8);
}
order = compute(group, vgens);
std::cout << "Order: " << order << ":" << target << std::endl;
return order != target;
}