diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
| commit | 37f727ac0746fd85504aa46c1f023c09b3eff33a (patch) | |
| tree | c8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/ldpc/peg/BigGirth.h | |
| parent | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff) | |
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/ldpc/peg/BigGirth.h')
| -rw-r--r-- | lib/ldpc/peg/BigGirth.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/ldpc/peg/BigGirth.h b/lib/ldpc/peg/BigGirth.h new file mode 100644 index 00000000..d30a05a1 --- /dev/null +++ b/lib/ldpc/peg/BigGirth.h @@ -0,0 +1,54 @@ +#ifndef BIGGIRTH +#define BIGGIRTH 1 + +#include <cstdlib> +#include <iostream> // C++ I/O library header +#include "Random.h" + +class NodesInGraph{ + public: + int numOfConnectionParityBit; + int *connectionParityBit; + int numOfConnectionSymbolBit; + int *connectionSymbolBit; + int maxDegParity; + + NodesInGraph(void); + ~NodesInGraph(void); + void setNumOfConnectionSymbolBit(int deg); + void initConnectionParityBit(void); + void initConnectionParityBit(int deg); +}; + +class BigGirth { + public: + int M, N; + int K; + int EXPAND_DEPTH; + const char *filename; + int *(*H); + + int *localGirth; + + NodesInGraph *nodesInGraph; + Random *myrandom; + + BigGirth(int m, int n, int *symbolDegSequence, const char *filename, int sglConcent, int tgtGirth, bool verbose_ = true); + BigGirth(void); + + void writeToFile_Hcompressed(void); + void writeToFile_Hmatrix(void); + void writeToFile(void); + + void loadH(void); + + ~BigGirth(void); + + private: + int selectParityConnect(int kthSymbol, int mthConnection, int & cycle); + void updateConnection(int kthSymbol); + bool verbose; + +}; + +#endif |
