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

Examples of net.fec.openrq.util.linearalgebra.vector.dense.BasicByteVector


        Indexables.checkIndexBounds(i, rows());

        byte result[] = new byte[columns()];
        System.arraycopy(self[row(i)], 0, result, 0, columns());

        return new BasicByteVector(result);
    }
View Full Code Here


        final int length = toColumn - fromColumn;
        byte[] result = new byte[length];
        System.arraycopy(self[row(i)], fromColumn, result, 0, length);

        return new BasicByteVector(result);
    }
View Full Code Here

        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();
        }

        // ISDCodeWriter.instance().writePhase3Code(X, Xrows, Xcols, d); // DEBUG

        // DEBUG
View Full Code Here

        Indexables.checkIndexBounds(i, rows());

        byte result[] = new byte[columns()];
        System.arraycopy(self[i], 0, result, 0, columns());

        return new BasicByteVector(result);
    }
View Full Code Here

        final int length = toColumn - fromColumn;
        byte[] result = new byte[length];
        System.arraycopy(self[i], fromColumn, result, 0, length);

        return new BasicByteVector(result);
    }
View Full Code Here

        Indexables.checkIndexBounds(i, rows());

        byte result[] = new byte[columns()];
        System.arraycopy(self, i * columns(), result, 0, columns());

        return new BasicByteVector(result);
    }
View Full Code Here

        final int length = toColumn - fromColumn;
        byte[] result = new byte[length];
        System.arraycopy(self, (i * columns()) + fromColumn, result, 0, length);

        return new BasicByteVector(result);
    }
View Full Code Here

public abstract class BasicFactory extends Factory {

    @Override
    public ByteVector createVector() {

        return new BasicByteVector();
    }
View Full Code Here

    }

    @Override
    public ByteVector createVector(int length) {

        return new BasicByteVector(length);
    }
View Full Code Here

    }

    @Override
    public ByteVector createVector(byte[] array) {

        return new BasicByteVector(array);
    }
View Full Code Here

TOP

Related Classes of net.fec.openrq.util.linearalgebra.vector.dense.BasicByteVector

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.