Files
toddcox-visualize/tc/include/tc/groups.hpp
2022-09-23 16:53:59 -04:00

24 lines
653 B
C++

#pragma once
#include <vector>
#include <tc/group.hpp>
namespace tc {
/**
* Construct a group from a (simplified) Schlafli Symbol of the form [a, b, ..., c]
* @param mults: The sequence of multiplicites between adjacent generators.
*/
Group schlafli(const std::vector<unsigned int> &mults);
Group coxeter(const std::string &symbol);
Group vcoxeter(const std::string &symbol, std::vector<unsigned int> &values);
template<typename ...Args>
Group coxeter(const std::string &symbol, const Args &... args) {
std::vector<unsigned int> values = {{args...}};
return vcoxeter(symbol, values);
}
}