forked from mirror/toddcox-faster
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.
This commit is contained in:
@@ -21,11 +21,10 @@ std::vector<unsigned int> parse_vec(const std::string &part) {
|
||||
return res;
|
||||
}
|
||||
|
||||
template<unsigned int N>
|
||||
int compute(
|
||||
const tc::Group<N> &group,
|
||||
size_t compute(
|
||||
const tc::Group &group,
|
||||
const std::vector<unsigned int> &vgens
|
||||
) {
|
||||
auto table = tc::solve<N>(group, vgens);
|
||||
auto table = tc::solve(group, vgens);
|
||||
return table.order();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user