forked from mirror/toddcox-faster
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.
18 lines
485 B
C++
18 lines
485 B
C++
#include "common.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
int main(int argc, char **argv) {
|
|
auto vsymbol = parse_vec(argv[1]);
|
|
auto vgens = parse_vec(argv[2]);
|
|
auto target = std::stoul(argv[3]);
|
|
|
|
tc::Symbol symbol(vsymbol.size());
|
|
symbol << Eigen::Map<tc::Symbol>(vsymbol.data(), vsymbol.size());
|
|
tc::Group group = tc::schlafli(symbol);
|
|
auto order = compute(group, vgens);
|
|
|
|
std::cout << "Order: " << order << ":" << target << std::endl;
|
|
return order != target;
|
|
}
|