Actually i am not getting about the type of decoder concerned with partially parallel or fully serial bcoz I have to implement the LDPC decoder with the help of belief propagation algorithm.In that process i have been provided with a H matrix,code word like [0 0 1 0 1 1] for a 4*6 matrix.The received word is r=[1 0 1 0 1 1] with a cross over probability of p=0.2.

Now the steps which i have to follow for computation is as follows:-

Code: the first step using logp/1-p i have to find out the received word and it comes like

2.Since it is a 4*6 matrix
M11=r1=-1.3863 and M31=r1=-1.3863
for i=2,M12=r2=1.3863 and M22=r2=1.3863
for i=6 M36=r6=-1.3863 and M46=r6=-1.3863

3.Extrensic information.It is calculated by using formula

Like that i have to calculate for eacha nd every node and finally a E matrix has been formed

4.calculation of LLR
L1=r1+E11+E31=some value
L6=some value
finally on the basis of BPSK scheme
Z=[0 0 1 0 1 1]

5.To check if Z is a valid codeword
S=Z.H transpose
if it comes like [0 0 0 0] then my code word is correct otherwise have to go for next iteration.
Please tell me how should i proceed.Its a total mathematical calculation.I am stuck with the point of taking matrix as a input.If i take it as an array also then how should i calculate that tanh calculation.