Class to compute and store binomial coefficients.
More...
#include <binomial.h>
Class to compute and store binomial coefficients.
◆ BinomialCoefficients()
occ::dma::BinomialCoefficients::BinomialCoefficients |
( |
int |
max_order = 20 | ) |
|
Constructor.
- Parameters
-
max_order | Maximum order of binomial coefficients to compute |
◆ binomial()
double occ::dma::BinomialCoefficients::binomial |
( |
int |
k, |
|
|
int |
m |
|
) |
| const |
Get binomial coefficient (n choose k)
- Parameters
-
k | First parameter |
m | Second parameter |
- Returns
- Binomial coefficient
◆ binomial_matrix()
const Mat & occ::dma::BinomialCoefficients::binomial_matrix |
( |
| ) |
const |
Get matrix of all binomial coefficients.
- Returns
- Reference to matrix of binomial coefficients
◆ sqrt_binomial()
double occ::dma::BinomialCoefficients::sqrt_binomial |
( |
int |
k, |
|
|
int |
m |
|
) |
| const |
Get square root of binomial coefficient.
- Parameters
-
k | First parameter |
m | Second parameter |
- Returns
- Square root of binomial coefficient
◆ sqrt_binomial_matrix()
const Mat & occ::dma::BinomialCoefficients::sqrt_binomial_matrix |
( |
| ) |
const |
Get matrix of all square roots of binomial coefficients.
- Returns
- Reference to matrix of square roots of binomial coefficients
The documentation for this class was generated from the following file:
- /home/runner/work/occ/occ/include/occ/dma/binomial.h