|
Mechanics of Defect Evolution Library
|
#include <StarsAndBars.h>
Static Public Member Functions | |
| static Eigen::Matrix< int, r1+r2, N > | sAb () |
Static Public Attributes | |
| static constexpr int | r1 =CombinationWithRepetition<N,k-j-1>::value |
| static constexpr int | r2 =CombinationWithRepetition<N-1,k-j>::value |
Class template that computes the possible sets of N integers whose sum is a given integer k. This is the solution of the Diophantine equation \(x_1+\ldots + x_N=k\).
Definition at line 23 of file StarsAndBars.h.
|
inlinestatic |
| [in] | pool | a row vector of N values |
Definition at line 36 of file StarsAndBars.h.
|
staticconstexpr |
Definition at line 33 of file StarsAndBars.h.
|
staticconstexpr |
Definition at line 34 of file StarsAndBars.h.