HyperHDG
Classes | Functions | Variables
binomial.cc File Reference
#include <iomanip>
#include <iostream>
#include <stdexcept>
#include <tpcc/combinations.h>
Include dependency graph for binomial.cc:

Classes

struct  print_combination< n, k >
 

Functions

template<typename T , std::size_t N>
std::ostream & operator<< (std::ostream &os, std::array< T, N > a)
 
template<std::size_t N>
std::ostream & operator<< (std::ostream &os, std::array< bool, N > a)
 
template<int n, int k = n>
void pascal (unsigned int padding=n)
 
int main ()
 

Variables

unsigned int pascal_data [11][11]
 
const char * combination_data_0 [] = { "fffff" }
 
const char * combination_data_1 [] = { "tffff", "ftfff", "fftff", "ffftf", "fffft" }
 
const char * combination_data_2 []
 
const char * combination_data_3 []
 
const char * combination_data_4 [] = { "ttttf", "tttft", "ttftt", "tfttt", "ftttt" }
 
const char * combination_data_5 [] = { "ttttt" }
 
const char ** combination_data []
 

Function Documentation

◆ main()

int main ( )
Here is the call graph for this function:

◆ operator<<() [1/2]

template<std::size_t N>
std::ostream& operator<< ( std::ostream &  os,
std::array< bool, N >  a 
)

◆ operator<<() [2/2]

template<typename T , std::size_t N>
std::ostream& operator<< ( std::ostream &  os,
std::array< T, N >  a 
)

◆ pascal()

template<int n, int k = n>
void pascal ( unsigned int  padding = n)
Here is the call graph for this function:

Variable Documentation

◆ combination_data

const char** combination_data[]

◆ combination_data_0

const char* combination_data_0[] = { "fffff" }

◆ combination_data_1

const char* combination_data_1[] = { "tffff", "ftfff", "fftff", "ffftf", "fffft" }

◆ combination_data_2

const char* combination_data_2[]
Initial value:
= { "ttfff", "tftff", "fttff", "tfftf", "ftftf",
"ffttf", "tffft", "ftfft", "fftft", "ffftt" }

◆ combination_data_3

const char* combination_data_3[]
Initial value:
= { "tttff", "ttftf", "tfttf", "ftttf", "ttfft",
"tftft", "fttft", "tfftt", "ftftt", "ffttt" }

◆ combination_data_4

const char* combination_data_4[] = { "ttttf", "tttft", "ttftt", "tfttt", "ftttt" }

◆ combination_data_5

const char* combination_data_5[] = { "ttttt" }

◆ pascal_data

unsigned int pascal_data[11][11]
Initial value:
= { { 1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1 },
{ 1, 9, 36, 84, 126, 126, 84, 36, 9, 1, 0 },
{ 1, 8, 28, 56, 70, 56, 28, 8, 1, 0, 0 },
{ 1, 7, 21, 35, 35, 21, 7, 1, 0, 0, 0 },
{ 1, 6, 15, 20, 15, 6, 1, 0, 0, 0, 0 },
{ 1, 5, 10, 10, 5, 1, 0, 0, 0, 0, 0 },
{ 1, 4, 6, 4, 1, 0, 0, 0, 0, 0, 0 },
{ 1, 3, 3, 1, 0, 0, 0, 0, 0, 0, 0 },
{ 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
combination_data_1
const char * combination_data_1[]
Definition: binomial.cc:23
combination_data_3
const char * combination_data_3[]
Definition: binomial.cc:28
combination_data_5
const char * combination_data_5[]
Definition: binomial.cc:33
combination_data_4
const char * combination_data_4[]
Definition: binomial.cc:31
combination_data_2
const char * combination_data_2[]
Definition: binomial.cc:25
combination_data_0
const char * combination_data_0[]
Definition: binomial.cc:21