parity_to_systematic

Function parity_to_systematic 

Source
pub fn parity_to_systematic(h: &SparseMatrix) -> Result<SparseMatrix, Error>
Expand description

Permutes the columns of the parity check matrix to obtain a parity check matrix that supports systematic encoding using the first variables.

This function returns a parity check matrix obtaining by permuting the columns of h in such a way that the square submatrix formed by the last columns is invertible.