linbox
ModularNChooseK< Field > Class Template Reference

#include <pascal.h>

Public Types

typedef Field::Element Element
 

Public Member Functions

int reduceZeros (int x)
 
void initFactorials ()
 
void initPowerList ()
 
 ModularNChooseK (Field &F, int q, int maxN)
 
Elementcompute (Element &d, int n, int k)
 

Protected Attributes

Field F_
 
int q_
 
std::vector< int > powerList_
 
std::vector< ElementfactList_
 
int maxN_
 

Member Typedef Documentation

◆ Element

template<class Field>
typedef Field::Element Element

Constructor & Destructor Documentation

◆ ModularNChooseK()

template<class Field>
ModularNChooseK ( Field & F,
int q,
int maxN )
inline

Member Function Documentation

◆ reduceZeros()

template<class Field>
int reduceZeros ( int x)
inline

◆ initFactorials()

template<class Field>
void initFactorials ( )
inline

◆ initPowerList()

template<class Field>
void initPowerList ( )
inline

◆ compute()

template<class Field>
Element & compute ( Element & d,
int n,
int k )
inline

Field Documentation

◆ F_

template<class Field>
Field F_
protected

◆ q_

template<class Field>
int q_
protected

◆ powerList_

template<class Field>
std::vector<int> powerList_
protected

◆ factList_

template<class Field>
std::vector<Element> factList_
protected

◆ maxN_

template<class Field>
int maxN_
protected

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