Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
concepts::SumOfPowers Class Reference

#include <sumofpowers.h>

Collaboration diagram for concepts::SumOfPowers:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< CacheKey, VCCache
typedef std::pair< PRR, int > CacheKey
typedef std::pair< Real, RealPRR
typedef std::vector< CmplxVC

Public Member Functions

Real binom (int a, int b)
const VCcached (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 SumOfPowersgetInstance ()
static Cmplx powi (Cmplx x, int power)

Private Attributes

Cache cache

Static Private Attributes

static SumOfPowers g_instance

Detailed Description

Definition at line 10 of file sumofpowers.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

concepts::SumOfPowers::SumOfPowers ( ) [inline]

Definition at line 17 of file sumofpowers.h.

concepts::SumOfPowers::~SumOfPowers ( ) [inline]

Definition at line 21 of file sumofpowers.h.


Member Function Documentation

Real concepts::SumOfPowers::binom ( int  a,
int  b 
)
const VC& concepts::SumOfPowers::cached ( Cmplx  a,
int  kmax,
int  nrep 
)
Cmplx concepts::SumOfPowers::compute ( Cmplx  a,
int  k,
int  n 
)

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.

static Cmplx concepts::SumOfPowers::powi ( Cmplx  x,
int  power 
) [inline, static]

Definition at line 35 of file sumofpowers.h.


Member Data Documentation

Definition at line 42 of file sumofpowers.h.

Definition at line 40 of file sumofpowers.h.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)