Chombo + EB  3.2
Macros | Functions
Factorial.H File Reference
#include "MayDay.H"
#include "RealVect.H"
#include "IndexTM.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for Factorial.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _FACTORIAL_H_
 

Functions

Real factorial (const int n)
 Calculates factorial for an integer. More...
 
Real POW (const Real &a_x, const int &a_p)
 computes x^p More...
 
Real nCk (const int n, const int k)
 Calculates the binomial coefficient, "n choose k". More...
 
template<int Dim>
Real pfactorial (const IndexTM< int, Dim > p)
 Calculates factorials for a multinomial. More...
 
template<int Dim>
Real pCk (const IndexTM< int, Dim > &p, const IndexTM< int, Dim > &k)
 Calculates the multinomial coefficient, "p choose k". More...
 
template<int Dim>
Real power (const IndexTM< Real, Dim > &a_x, const IndexTM< int, Dim > &a_p)
 calculate x^p More...
 

Macro Definition Documentation

#define _FACTORIAL_H_

Function Documentation

Real factorial ( const int  n)
inline
Real POW ( const Real a_x,
const int &  a_p 
)
inline
Real nCk ( const int  n,
const int  k 
)
inline

Calculates the binomial coefficient, "n choose k".

References CH_assert, and factorial().

Referenced by pCk().

template<int Dim>
Real pfactorial ( const IndexTM< int, Dim >  p)
inline

Calculates factorials for a multinomial.

References CH_assert, and factorial().

Referenced by IndexedMoments< Dim, P >::divideByFactorial(), and IndexedMoments< Dim, P >::multiplyByFactorial().

template<int Dim>
Real pCk ( const IndexTM< int, Dim > &  p,
const IndexTM< int, Dim > &  k 
)
inline

Calculates the multinomial coefficient, "p choose k".

References nCk().

template<int Dim>
Real power ( const IndexTM< Real, Dim > &  a_x,
const IndexTM< int, Dim > &  a_p 
)
inline

calculate x^p

References ipow().