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:
David Allemang
2022-09-14 20:44:40 -04:00
parent c346817743
commit 4347f1f9ec
4 changed files with 26 additions and 28 deletions

View File

@@ -10,5 +10,7 @@
#include "group.hpp"
namespace tc {
Cosets solve(const Group &group, const std::vector<size_t> &sub_gens);
using Coset = unsigned int;
Cosets solve(const Group &group, const std::vector<Coset> &sub_gens);
}