[MN-dev] [mndiff]: r198 - trunk/noe/ldpc.c
michael
subversion at mplayerhq.hu
Tue Jul 13 19:17:25 CEST 2010
Author: michael
Date: Tue Jul 13 19:17:25 2010
New Revision: 198
Log:
Name matrix factorization function appropriately.
Modified:
trunk/noe/ldpc.c
Modified: trunk/noe/ldpc.c
==============================================================================
--- trunk/noe/ldpc.c Tue Jul 13 19:17:24 2010 (r197)
+++ trunk/noe/ldpc.c Tue Jul 13 19:17:25 2010 (r198)
@@ -46,7 +46,7 @@ typedef struct LDPCContext{
typedef uint8_t ELEM;
-static int inverse(ELEM *matrix, int width, int height, int solvew, unsigned int row_weight[], unsigned int col_weight[], int erasure_pos[], int (*op_table)[2]){
+static int factor(ELEM *matrix, int width, int height, int solvew, unsigned int row_weight[], unsigned int col_weight[], int erasure_pos[], int (*op_table)[2]){
int i, j, k, m, p;
int (*logline)[2]= malloc((width+1)*sizeof(*logline));
int ops=0;
@@ -262,7 +262,7 @@ int EXT(init_matrixLDPC)(LDPCContext *c,
col_weight[i]= nzc;
}
- rank= inverse(inv_matrix, parity_len, parity_len, erasure_count, row_weight, col_weight, erasure_pos, c->op_table);
+ rank= factor(inv_matrix, parity_len, parity_len, erasure_count, row_weight, col_weight, erasure_pos, c->op_table);
x=0;
for(j=erasure_count-1; j>=0; j--){
for(i=0; i<parity_len; i++){
More information about the Mndiff-dev
mailing list