C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 15th, 2017, 06:47 AM
Thaus_015 Thaus_015 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2017
Posts: 1 Thaus_015 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 45 sec
Reputation Power: 0
General - How to make LDPC parity check matrix H from non-systematic to systematic in C/C++

Hi,

I am working LDPC encoding and decoding for hardware implementation.Through Vivado HLS, I need to transform a parity-check matrix H (that only consists of ones and zeros) from a non-standard to a standard form through C/C++ programming language. Here below you may find samples of non-standard parity check matrices in which Gauss-Jordan elimination (over GF(2)) can be applied.

Initially, i am trying encoding part via C/C++ programming logic. please help me if you do have any idea about LDPC. I would need a method that works out with matrices of any dimension.

this is, express it as

Hsys = [I| P]

This is my H matrix

H=[1 1 0 0 1 0
1 0 0 1 0 1
1 1 1 0 0 1];

Expected Systematic H matrix

Hsys=[1 0 0 1 0 1
0 1 0 1 1 1
0 0 1 0 1 1];
Code:
{
    // encoding
    int i,j;
    int message;
    int H_Matrix[3][6]={{1,1,0,0,1,0},{1,0,0,1,0,1},{1,1,1,0,0,1}};
    int temp[3][6]={0};
for(j=0;j<6;j++)
    {
        temp[1][j]=(H_Matrix[1][j]^H_Matrix[0][j]);
        H_Matrix[1][j] = temp[1][j];
        temp[2][j]=(H_Matrix[2][j]^H_Matrix[0][j]);
        H_Matrix[2][j] = temp[2][j];
        temp[0][j]=(H_Matrix[0][j]^H_Matrix[1][j]);
        H_Matrix[0][j] = temp[0][j];
    }
  
for(i=0;i<3;i++)
{
    for(j=0;j<6;j++)
    {
        printf("%d\t ",H_Matrix[i][j]);
    }
    printf("\n");
}
}

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > General - How to make LDPC parity check matrix H from non-systematic to systematic in C/C++


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap