@Override public void eachNonZeroInColumn(int j, MatrixProcedure procedure) { for (int i = 0; i < rows; i++) { if (Math.abs(get(i, j)) > Matrices.EPS) { procedure.apply(i, j, get(i, j)); } } }
@Override public void eachNonZeroInRow(int i, MatrixProcedure procedure) { for (int j = 0; j < columns; j++) { if (Math.abs(get(i, j)) > Matrices.EPS) { procedure.apply(i, j, get(i, j)); } } }
@Override public void each(MatrixProcedure procedure) { for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { procedure.apply(i, j, get(i, j)); } } }
@Override public void eachInColumn(int j, MatrixProcedure procedure) { for (int i = 0; i < rows; i++) { procedure.apply(i, j, get(i, j)); } }
@Override public void eachInRow(int i, MatrixProcedure procedure) { for (int j = 0; j < columns; j++) { procedure.apply(i, j, get(i, j)); } }