clean up zero forcing Rx
This commit is contained in:
@@ -2314,14 +2314,13 @@ uint8_t nr_zero_forcing_rx(int **rxdataF_comp,
|
|||||||
nb_rb_0,
|
nb_rb_0,
|
||||||
shift);
|
shift);
|
||||||
}
|
}
|
||||||
nr_construct_HhH_elements(conjH_H_elements[ctx*n_tx+rtx],
|
nr_construct_HhH_elements(conjH_H_elements[ctx*n_tx+rtx],n_rx,nb_rb_0);
|
||||||
n_rx,
|
|
||||||
nb_rb_0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t k,rr[n_tx-1],cc[n_tx-1];
|
int16_t k,rr[n_tx-1],cc[n_tx-1];
|
||||||
int fpshift = 8;
|
int fpshift = 8;
|
||||||
|
|
||||||
//Allocate the matrix inv elements
|
//Allocate the matrix inv elements
|
||||||
int32_t ** inv_H_h_H;
|
int32_t ** inv_H_h_H;
|
||||||
inv_H_h_H = (int32_t **)malloc16_clear( n_tx*n_tx*sizeof(int32_t *) );
|
inv_H_h_H = (int32_t **)malloc16_clear( n_tx*n_tx*sizeof(int32_t *) );
|
||||||
@@ -2330,6 +2329,7 @@ uint8_t nr_zero_forcing_rx(int **rxdataF_comp,
|
|||||||
inv_H_h_H[ctx*n_tx+rtx] = (int32_t *)malloc16_clear( 12*nb_rb*sizeof(int32_t) );
|
inv_H_h_H[ctx*n_tx+rtx] = (int32_t *)malloc16_clear( 12*nb_rb*sizeof(int32_t) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Compute Inversion of the H^*H matrix
|
//Compute Inversion of the H^*H matrix
|
||||||
/* For 2x2 MIMO matrix, we compute
|
/* For 2x2 MIMO matrix, we compute
|
||||||
* |(conj_H_00xH_00+conj_H_10xH_10) (conj_H_00xH_01+conj_H_10xH_11)|
|
* |(conj_H_00xH_00+conj_H_10xH_10) (conj_H_00xH_01+conj_H_10xH_11)|
|
||||||
@@ -2433,7 +2433,6 @@ uint8_t nr_zero_forcing_rx(int **rxdataF_comp,
|
|||||||
print_shorts("nr_det_4x4",(int16_t*)&determ_fin[0]);
|
print_shorts("nr_det_4x4",(int16_t*)&determ_fin[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// multiply Matrix inversion pf H_h_H by the rx signal vector
|
// multiply Matrix inversion pf H_h_H by the rx signal vector
|
||||||
int32_t outtemp[12*nb_rb] __attribute__((aligned(32)));
|
int32_t outtemp[12*nb_rb] __attribute__((aligned(32)));
|
||||||
int32_t **rxdataF_zforcing;
|
int32_t **rxdataF_zforcing;
|
||||||
|
|||||||
Reference in New Issue
Block a user