From 37f727ac0746fd85504aa46c1f023c09b3eff33a Mon Sep 17 00:00:00 2001 From: hibby Date: Fri, 16 Feb 2018 15:17:14 +0000 Subject: New upstream version 1.8.0+repack --- lib/ldpc/peg/CyclesOfGraph.C | 237 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 lib/ldpc/peg/CyclesOfGraph.C (limited to 'lib/ldpc/peg/CyclesOfGraph.C') diff --git a/lib/ldpc/peg/CyclesOfGraph.C b/lib/ldpc/peg/CyclesOfGraph.C new file mode 100644 index 00000000..77c98b59 --- /dev/null +++ b/lib/ldpc/peg/CyclesOfGraph.C @@ -0,0 +1,237 @@ +#include "CyclesOfGraph.h" + +NodesOfGraph::NodesOfGraph(void) { parityConnections=NULL;symbolConnections=NULL; +} +NodesOfGraph::~NodesOfGraph(void) { + delete [] parityConnections; + delete [] symbolConnections; + delete [] symbolMapping; + +} + +void NodesOfGraph::setParityConnections(int num, int *value) { + numOfParityConnections=num; + parityConnections=new int[num]; + for(int i=0;itmpCycles[j]) + cyclesTable[i]=tmpCycles[j]; + } + //OUTPUT cycles per symbol node + //cout<<"i="<cyclesTable[i]) girth=cyclesTable[i]; + return(girth); +} + +void CyclesOfGraph::printCyclesTable(void){ + using namespace std; + int i, temp[20]; + /* + for(i=0;i