libDAI
Namespaces | Functions
createfg.h File Reference

Provides functionality for input/output of data structures in various file formats. More...

#include <dai/factor.h>
#include <vector>
#include <map>

Go to the source code of this file.

Namespaces

 dai
 Namespace for libDAI.
 

Functions

 dai::DAI_ENUM (FactorType, ISINGGAUSS, ISINGUNIFORM, EXPGAUSS, POTTS)
 Possible factor types. More...
 
FactorGraph dai::createFG (const GraphAL &G, FactorType ft, size_t states, const PropertySet &props)
 Creates a factor graph from a pairwise interactions graph. More...
 
FactorGraph dai::createHOIFG (size_t N, size_t M, size_t k, Real beta)
 Return a random factor graph with higher-order interactions. More...
 
BipartiteGraph dai::createRandomBipartiteGraph (size_t N1, size_t N2, size_t d1, size_t d2)
 Creates a regular random bipartite graph. More...
 
int dai::powmod (int x, int n, int p)
 Returns x**n % p, assuming p is prime. More...
 
size_t dai::order (int x, int p)
 Returns order of x in GF(p) with p prime. More...
 
bool dai::isPrime (size_t n)
 Returns whether n is a prime number. More...
 
BipartiteGraph dai::createSmallLDPCGraph ()
 Constructs a regular LDPC graph with N=6, j=2, K=4, k=3. More...
 
BipartiteGraph dai::createGroupStructuredLDPCGraph (size_t p, size_t j, size_t k)
 Creates group-structured LDPC code. More...
 
void dai::createParityCheck (Real *result, size_t n, Real eps)
 

Detailed Description

Provides functionality for input/output of data structures in various file formats.