Package net.fec.openrq.util.linearalgebra.matrix.dense

Examples of net.fec.openrq.util.linearalgebra.matrix.dense.RowIndirected2DByteMatrix


        // decoding process
        final int Drows = Xrows;
        final int Dcols = (D.length == 0) ? 0 : D[0].length;
        final byte[][] DShallowCopy = Arrays.copyOf(D, D.length);
        final ByteMatrix DM = new RowIndirected2DByteMatrix(Drows, Dcols, DShallowCopy, d);

        for (int row = 0; row < Xrows; row++) {
            // multiply X[row] by D
            BasicByteVector prod = (BasicByteVector)X.multiplyRow(row, DM, 0, Xcols, LinearAlgebra.BASIC2D_FACTORY);
            D[d[row]] = prod.getInternalArray();
View Full Code Here


        }

        @Override
        public byte[][] apply(byte[][] D) {

            ByteMatrix DM = new RowIndirected2DByteMatrix(Xrows, Dcols(D), DShallowCopy(D), d);
            for (int row = 0; row < Xrows; row++) {
                D[d[row]] = getInnerArray(X.multiplyRow(row, DM, 0, Xcols, LinearAlgebra.BASIC1D_FACTORY));
            }

            return D;
View Full Code Here

TOP

Related Classes of net.fec.openrq.util.linearalgebra.matrix.dense.RowIndirected2DByteMatrix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.