AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_FACTORED_UTILS_HEADER_FILE
2 #define AI_TOOLBOX_FACTORED_UTILS_HEADER_FILE
57 template <
typename Gen>
60 for (
size_t i = 0; i < space.size(); ++i) {
61 std::uniform_int_distribution<size_t> dist(0, space[i]-1);
62 retval[i] = dist(rnd);
128 bool match(
const std::vector<std::pair<size_t, size_t>> & matches,
const Factors & lhs,
const Factors & rhs);
353 template <
typename It>
355 for (
auto key : ids) {
356 *begin =
id % space[key];
665 size_t factorToSkipId_;
752 size_t curr_, currLen_;