code: public void updateAt(int i, int j, MatrixFunction function) {
          set(i, j, function.evaluate(i, j, get(i, j)));
      }
docs: Updates the specified element of this matrix by applying given {@code function}.
  
  @param i the row index
  @param j the column index
  @param function the matrix function