Gecode::Set::Distinct::Binomial Class Reference
List of all members.Detailed Description
Computing binomial coefficients using dynamic programming.
Definition at line 27 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
|
Default constructor.
Definition at line 127 of file binomial.icc. |
|
Copy constructor.
Definition at line 132 of file binomial.icc. |
|
Initialize with maximum precomputed binomial coefficient
Definition at line 136 of file binomial.icc. |
Member Function Documentation
|
Return binomial coefficient
Definition at line 142 of file binomial.icc. |
|
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 151 of file binomial.icc. |
The documentation for this class was generated from the following files:
- gecode/set/distinct/binomial.icc (Revision: 3344)
- gecode/set/distinct/binomial.cc (Revision: 3188)