8#ifndef model_PERMUTATIONWITHREPETITION_H_
9#define model_PERMUTATIONWITHREPETITION_H_
23 static constexpr int k=
_k;
25 static_assert(
k>0,
"k MUST BE >0.");
28 template<
typename T,
int N>
34 for(
size_t p=0;
p<
N;++
p)
51 static constexpr int k=1;
54 template<
typename T,
int N>
static constexpr int pow(int x, int n)
A compile-time implementation of the power function.
static const Eigen::Matrix< T, k, CTM::pow(N, k)> & permute(const Eigen::Matrix< T, 1, N > &pool)
static Eigen::Matrix< T, k, CTM::pow(N, k)> permute(const Eigen::Matrix< T, 1, N > &pool)