Gecode::Set::Distinct::Binomial Class Reference
List of all members.Detailed Description
Computing binomial coefficients using dynamic programming.
Definition at line 30 of file binomial.icc.
Constructors and initialization | |
Binomial (void) | |
Default constructor. | |
Binomial (const Binomial &b) | |
Copy constructor. | |
Binomial (unsigned int nmax) | |
Initialize with maximum precomputed binomial coefficient ![]() | |
Value access | |
unsigned int | c (unsigned int n, unsigned int m) |
Return binomial coefficient ![]() ![]() | |
Cloning | |
void | update (bool share, Binomial &b) |
Update this binomial table to be a copy of b. |
Constructor & Destructor Documentation
Gecode::Set::Distinct::Binomial::Binomial | ( | void | ) | [inline] |
Gecode::Set::Distinct::Binomial::Binomial | ( | const Binomial & | b | ) | [inline] |
Gecode::Set::Distinct::Binomial::Binomial | ( | unsigned int | nmax | ) | [inline] |
Initialize with maximum precomputed binomial coefficient .
Definition at line 139 of file binomial.icc.
Member Function Documentation
unsigned int Gecode::Set::Distinct::Binomial::c | ( | unsigned int | n, | |
unsigned int | m | |||
) | [inline] |
void Gecode::Set::Distinct::Binomial::update | ( | bool | share, | |
Binomial & | b | |||
) | [inline] |
Update this binomial table to be a copy of b.
If share is true, the copy is identical. Otherwise an independent copy is created.
Definition at line 154 of file binomial.icc.
The documentation for this class was generated from the following files:
- gecode/set/distinct/binomial.icc (Revision: 2640)
- gecode/set/distinct/binomial.cc (Revision: 3188)