Пример #1
0
 @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));
     }
   }
 }
Пример #2
0
 @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));
     }
   }
 }
Пример #3
0
 @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));
     }
   }
 }
Пример #4
0
 @Override
 public void eachInColumn(int j, MatrixProcedure procedure) {
   for (int i = 0; i < rows; i++) {
     procedure.apply(i, j, get(i, j));
   }
 }
Пример #5
0
 @Override
 public void eachInRow(int i, MatrixProcedure procedure) {
   for (int j = 0; j < columns; j++) {
     procedure.apply(i, j, get(i, j));
   }
 }