Package net.fec.openrq.util.linearalgebra.io

Examples of net.fec.openrq.util.linearalgebra.io.ByteVectorIterator.index()


        int n = 0;
        ByteVectorIterator it = nonZeroColumnIterator(j, fromRow, toRow);
        while (it.hasNext()) {
            it.next();
            positions[n++] = it.index();
        }

        return positions;
    }
View Full Code Here


    public void eachInRow(int i, MatrixProcedure procedure) {

        ByteVectorIterator it = rowIterator(i);
        while (it.hasNext()) {
            it.next();
            procedure.apply(i, it.index(), it.get());
        }
    }

    @Override
    public void eachInRow(int i, MatrixProcedure procedure, int fromColumn, int toColumn) {
View Full Code Here

    public void eachInRow(int i, MatrixProcedure procedure, int fromColumn, int toColumn) {

        ByteVectorIterator it = rowIterator(i, fromColumn, toColumn);
        while (it.hasNext()) {
            it.next();
            procedure.apply(i, it.index(), it.get());
        }
    }

    @Override
    public void eachInColumn(int j, MatrixProcedure procedure) {
View Full Code Here

    public void eachInColumn(int j, MatrixProcedure procedure) {

        ByteVectorIterator it = columnIterator(j);
        while (it.hasNext()) {
            it.next();
            procedure.apply(it.index(), j, it.get());
        }
    }

    @Override
    public void eachInColumn(int j, MatrixProcedure procedure, int fromRow, int toRow) {
View Full Code Here

    public void eachInColumn(int j, MatrixProcedure procedure, int fromRow, int toRow) {

        ByteVectorIterator it = columnIterator(j, fromRow, toRow);
        while (it.hasNext()) {
            it.next();
            procedure.apply(it.index(), j, it.get());
        }
    }

    @Override
    public void eachNonZero(MatrixProcedure procedure) {
View Full Code Here

    public void eachNonZeroInRow(int i, MatrixProcedure procedure) {

        ByteVectorIterator it = nonZeroRowIterator(i);
        while (it.hasNext()) {
            it.next();
            procedure.apply(i, it.index(), it.get());
        }
    }

    @Override
    public void eachNonZeroInRow(int i, MatrixProcedure procedure, int fromColumn, int toColumn) {
View Full Code Here

    public void eachNonZeroInRow(int i, MatrixProcedure procedure, int fromColumn, int toColumn) {

        ByteVectorIterator it = nonZeroRowIterator(i, fromColumn, toColumn);
        while (it.hasNext()) {
            it.next();
            procedure.apply(i, it.index(), it.get());
        }
    }

    @Override
    public void eachNonZeroInColumn(int j, MatrixProcedure procedure) {
View Full Code Here

    public void eachNonZeroInColumn(int j, MatrixProcedure procedure) {

        ByteVectorIterator it = nonZeroColumnIterator(j);
        while (it.hasNext()) {
            it.next();
            procedure.apply(it.index(), j, it.get());
        }
    }

    @Override
    public void eachNonZeroInColumn(int j, MatrixProcedure procedure, int fromRow, int toRow) {
View Full Code Here

    public void eachNonZeroInColumn(int j, MatrixProcedure procedure, int fromRow, int toRow) {

        ByteVectorIterator it = nonZeroColumnIterator(j, fromRow, toRow);
        while (it.hasNext()) {
            it.next();
            procedure.apply(it.index(), j, it.get());
        }
    }

    @Override
    public void update(MatrixFunction function) {
View Full Code Here

    public void updateRow(int i, MatrixFunction function) {

        ByteVectorIterator it = rowIterator(i);
        while (it.hasNext()) {
            it.next();
            it.set(function.evaluate(i, it.index(), it.get()));
        }
    }

    @Override
    public void updateRow(int i, MatrixFunction function, int fromColumn, int toColumn) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.