mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 03:52:48 -05:00
Correctly typed cosets/indexes
Coset type is now `unsigned int`. Half the size as before; speeds up malloc. Index type is now `size_t` for correctness. More expressive and ___might___ speed up array lookup?? Difference seems negligible since we aren't allocating tons and tons of those.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
int main(int argc, char *argv[]) {
|
||||
std::string key = argv[1];
|
||||
|
||||
std::vector<std::tuple<std::string, tc::Group, std::vector<size_t>, size_t>> groups;
|
||||
std::vector<std::tuple<std::string, tc::Group, std::vector<tc::Coset>, size_t>> groups;
|
||||
|
||||
// See the group orders here https://en.wikipedia.org/wiki/Coxeter_group#Properties
|
||||
if (key == "A") {
|
||||
|
||||
Reference in New Issue
Block a user