20 #include <Eigen/Geometry> 31 static bool getNextCombination(
const std::vector<unsigned int>::iterator first, std::vector<unsigned int>::iterator k,
const std::vector<unsigned int>::iterator last)
33 if ((first == last) || (first == k) || (last == k))
36 std::vector<unsigned int>::iterator it1 = first;
37 std::vector<unsigned int>::iterator it2 = last;
49 std::vector<unsigned int>::iterator j = k;
50 while (!(*it1 < *j)) ++j;
51 std::iter_swap(it1,j);
55 std::rotate(it1,j,last);
61 std::rotate(k,it2,last);
65 std::rotate(first,k,last);
static bool getNextCombination(const std::vector< unsigned int >::iterator first, std::vector< unsigned int >::iterator k, const std::vector< unsigned int >::iterator last)
this namespace contains all generally usable classes.