Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::CombinationWithoutRepetition< N, k > Struct Template Reference

#include <CombinationWithoutRepetition.h>

Collaboration diagram for model::CombinationWithoutRepetition< N, k >:

Static Public Member Functions

template<typename T>
static Eigen::Matrix< T, value, k > combine (const Eigen::Matrix< T, 1, N > &pool)

Static Public Attributes

static constexpr int value =Binomial<N,k>::value

Detailed Description

template<int N, int k>
struct model::CombinationWithoutRepetition< N, k >

Class template that computes C(N,k), the combination without repetition of k values taken from a pool of N values.

C(N,k) represents the number of ways to form un-ordered sets of k objects taken from a pool of N objects if repetition is not allowed.

Definition at line 26 of file CombinationWithoutRepetition.h.

Member Function Documentation

◆ combine()

template<int N, int k>
template<typename T>
Eigen::Matrix< T, value, k > model::CombinationWithoutRepetition< N, k >::combine ( const Eigen::Matrix< T, 1, N > & pool)
inlinestatic
Parameters
[in]poola row vector of N values
Returns
a matrix having in each row the

Definition at line 36 of file CombinationWithoutRepetition.h.

Member Data Documentation

◆ value

template<int N, int k>
int model::CombinationWithoutRepetition< N, k >::value =Binomial<N,k>::value
staticconstexpr

Definition at line 31 of file CombinationWithoutRepetition.h.


The documentation for this struct was generated from the following file: