hichamjanati / pyldpc

Creation of LDPC codes & simulation of coding and decoding binary data. Applications to sound and image files.
BSD 3-Clause "New" or "Revised" License
118 stars 32 forks source link

LDPC:regular | irregular #18

Open lingr7 opened 4 years ago

lingr7 commented 4 years ago

https://github.com/hichamjanati/pyldpc/blob/2eeea2634710318b175953f1f11a12f980d0dcb6/pyldpc/decoder.py#L34 Comparison of matrix multiplication results use* ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

hichamjanati commented 4 years ago

Can you show a small script that led to this error please so I can debug ?

lingr7 commented 4 years ago

H.npy parity_check_matrix array(64,128) np.int32 H_npy.zip this parity_check_matrix should choose solver = _logbp_numba_regular or solver = _logbp_numba

kaushiksv commented 3 years ago

I'm having the same issue. (64,128) matrix.. Any solutions?

hichamjanati commented 3 years ago

Please show me the code snippet you ran so I can debug, use the code brackets in the formatting here