org.apache.commons.math.linear
private static class MatrixUtils.BigFractionMatrixConverter extends DefaultFieldMatrixPreservingVisitor<BigFraction>
FieldMatrix
/BigFraction
.Modifier and Type | Field and Description |
---|---|
private double[][] |
data
Converted array.
|
Constructor and Description |
---|
MatrixUtils.BigFractionMatrixConverter()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) Array2DRowRealMatrix |
getConvertedMatrix()
Get the converted matrix.
|
void |
start(int rows,
int columns,
int startRow,
int endRow,
int startColumn,
int endColumn)
Start visiting a matrix.
|
void |
visit(int row,
int column,
BigFraction value)
Visit one matrix entry.
|
end
public MatrixUtils.BigFractionMatrixConverter()
public void start(int rows, int columns, int startRow, int endRow, int startColumn, int endColumn)
This method is called once before any entry of the matrix is visited.
start
in interface FieldMatrixPreservingVisitor<BigFraction>
start
in class DefaultFieldMatrixPreservingVisitor<BigFraction>
rows
- number of rows of the matrixcolumns
- number of columns of the matrixstartRow
- Initial row indexendRow
- Final row index (inclusive)startColumn
- Initial column indexendColumn
- Final column index (inclusive)public void visit(int row, int column, BigFraction value)
visit
in interface FieldMatrixPreservingVisitor<BigFraction>
visit
in class DefaultFieldMatrixPreservingVisitor<BigFraction>
row
- row index of the entrycolumn
- column index of the entryvalue
- current value of the entryArray2DRowRealMatrix getConvertedMatrix()
Copyright (c) 2003-2016 Apache Software Foundation