mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user