#include <sumofpowers.h>

Public Types | |
| typedef std::map< CacheKey, VC > | Cache |
| typedef std::pair< PRR, int > | CacheKey |
| typedef std::pair< Real, Real > | PRR |
| typedef std::vector< Cmplx > | VC |
Public Member Functions | |
| Real | binom (int a, int b) |
| const VC & | cached (Cmplx a, int kmax, int nrep) |
| Cmplx | compute (Cmplx a, int k, int n) |
| naively computes {l=0}^{n-1} a^l l^k. | |
| SumOfPowers () | |
| ~SumOfPowers () | |
Static Public Member Functions | |
| static SumOfPowers & | getInstance () |
| static Cmplx | powi (Cmplx x, int power) |
Private Attributes | |
| Cache | cache |
Static Private Attributes | |
| static SumOfPowers | g_instance |
Definition at line 10 of file sumofpowers.h.
| typedef std::map<CacheKey, VC> concepts::SumOfPowers::Cache |
Definition at line 15 of file sumofpowers.h.
| typedef std::pair<PRR, int> concepts::SumOfPowers::CacheKey |
Definition at line 14 of file sumofpowers.h.
| typedef std::pair<Real, Real> concepts::SumOfPowers::PRR |
Definition at line 13 of file sumofpowers.h.
| typedef std::vector<Cmplx> concepts::SumOfPowers::VC |
Definition at line 12 of file sumofpowers.h.
| concepts::SumOfPowers::SumOfPowers | ( | ) | [inline] |
Definition at line 17 of file sumofpowers.h.
| concepts::SumOfPowers::~SumOfPowers | ( | ) | [inline] |
Definition at line 21 of file sumofpowers.h.
| Real concepts::SumOfPowers::binom | ( | int | a, |
| int | b | ||
| ) |
naively computes {l=0}^{n-1} a^l l^k.
| static SumOfPowers& concepts::SumOfPowers::getInstance | ( | ) | [inline, static] |
Definition at line 24 of file sumofpowers.h.
Definition at line 35 of file sumofpowers.h.
Cache concepts::SumOfPowers::cache [private] |
Definition at line 42 of file sumofpowers.h.
SumOfPowers concepts::SumOfPowers::g_instance [static, private] |
Definition at line 40 of file sumofpowers.h.