接口 RealMatrixChangingVisitor
- 所有已知实现类:
-
DefaultRealMatrixChangingVisitor
public interface RealMatrixChangingVisitor
Interface defining a visitor for matrix entries.
- 另请参阅:
-
方法概要
-
方法详细资料
-
start
void start(int rows, int columns, int startRow, int endRow, int startColumn, int endColumn) Start visiting a matrix.This method is called once before any entry of the matrix is visited.
- 参数:
-
rows
- 矩阵的行数 -
columns
- 矩阵的列数 -
startRow
- 初始行索引 -
endRow
- 最终行索引(包括) -
startColumn
- 初始列索引 -
endColumn
- 最终列索引(包括)
-
visit
double visit(int row, int column, double value) Visit one matrix entry.- 参数:
-
row
- 条目的行索引 -
column
- 条目的列索引 -
value
- 条目的当前值 - 返回:
- 要设置为该条目的新值
-
end
double end()End visiting a matrix.This method is called once after all entries of the matrix have been visited.
- 返回:
-
walkInXxxOrder
必须返回的值
-