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 , where . | |
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 130 of file binomial.icc. |
|
|
Copy constructor.
Definition at line 135 of file binomial.icc. |
|
|
Initialize with maximum precomputed binomial coefficient
Definition at line 139 of file binomial.icc. |
Member Function Documentation
|
||||||||||||
|
Return binomial coefficient
Definition at line 145 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 154 of file binomial.icc. |
The documentation for this class was generated from the following files:
- set/distinct/binomial.icc (Revision: 2640)
- set/distinct/binomial.cc (Revision: 2275)

.
, where
.