QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
PascalTriangle Class Reference

Pascal triangle coefficients calculator. More...

#include <pascaltriangle.hpp>

+ Collaboration diagram for PascalTriangle:

Static Public Member Functions

static const std::vector< BigNatural > & get (Size order)
 Get and store one vector of coefficients after another. More...
 

Private Member Functions

 PascalTriangle ()=default
 

Static Private Member Functions

static void nextOrder ()
 

Static Private Attributes

static std::vector< std::vector< BigNatural > > coefficients_
 

Detailed Description

Pascal triangle coefficients calculator.

Definition at line 34 of file pascaltriangle.hpp.

Constructor & Destructor Documentation

◆ PascalTriangle()

PascalTriangle ( )
privatedefault

Member Function Documentation

◆ get()

const std::vector< BigNatural > & get ( Size  order)
static

Get and store one vector of coefficients after another.

Definition at line 28 of file pascaltriangle.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextOrder()

void nextOrder ( )
staticprivate

Definition at line 44 of file pascaltriangle.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ coefficients_

std::vector< std::vector< BigNatural > > coefficients_
staticprivate

Definition at line 41 of file pascaltriangle.hpp.