OKlibrary  0.2.1.6
Combinatorics::Binom_integer_over_integer< Int > Class Template Reference

Functor for computing integral binomial coefficients; with helper function binom_integer_over_integer. More...

#include <Combinatorics.hpp>

List of all members.

Public Member Functions

Int operator() (Int n, Int k) const

Detailed Description

template<typename Int>
class Combinatorics::Binom_integer_over_integer< Int >

Functor for computing integral binomial coefficients; with helper function binom_integer_over_integer.

Uses the dynamic programming method; not very efficient, but does not unnecessary overflow.

Todo:
It seems that in the implementation some further special cases could be treated?!

Definition at line 94 of file Combinatorics.hpp.


Member Function Documentation

template<typename Int >
Int Combinatorics::Binom_integer_over_integer< Int >::operator() ( Int  n,
Int  k 
) const [inline]

Definition at line 95 of file Combinatorics.hpp.


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