/** * @return the dimension of the code */ public int getK() { return matrixG.getNumRows(); } }
/** * @return the dimension of the code */ public int getK() { return g.getNumRows(); }
/** * @return the dimension of the code */ public int getK() { return g.getNumRows(); }
/** * @return the dimension of the code */ public int getK() { return matrixG.getNumRows(); }
/** * Copy constructor. * * @param a another {@link GF2Matrix} */ public GF2Matrix(GF2Matrix a) { numColumns = a.getNumColumns(); numRows = a.getNumRows(); length = a.length; matrix = new int[a.matrix.length][]; for (int i = 0; i < matrix.length; i++) { matrix[i] = IntUtils.clone(a.matrix[i]); } }
/** * Copy constructor. * * @param a another {@link GF2Matrix} */ public GF2Matrix(GF2Matrix a) { numColumns = a.getNumColumns(); numRows = a.getNumRows(); length = a.length; matrix = new int[a.matrix.length][]; for (int i = 0; i < matrix.length; i++) { matrix[i] = IntUtils.clone(a.matrix[i]); } }
public static void main( String[] args ) { System.out.println("ceil: [" + (15 >>> 5) + "]"); System.out.println("ceil: [" + (31 >>> 5) + "]"); System.out.println("ceil: [" + (32 >>> 5) + "]"); System.out.println("ceil: [" + (36 >>> 5) + "]"); System.out.println("ceil: [" + (63 >>> 5) + "]"); System.out.println("ceil: [" + (64 >>> 5) + "]"); System.out.println("ceil: [" + (66 >>> 5) + "]"); GF2Matrix m = new GF2Matrix(33, GF2Matrix.MATRIX_TYPE_RANDOM_REGULAR); System.out.println("Matrix: " + m.toString()); final int[][] a = m.getIntArray(); for(int i=0; i<m.getNumRows(); i++){ System.out.println("MatrixEnc["+i+"]: [" + Utils.toBinaryString(a[i])+ "]"); } System.out.println("MatrixEncLen: [" + m.getEncoded().length + "]"); System.out.println("MatrixEncHex: [" + IntUtils.toHexString(m.getRow(0)) + "]"); } }
int k = shortG.getNumRows();
int k = shortG.getNumRows();
int k = shortG.getNumRows();
int k = shortG.getNumRows();