|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.linear.DefaultFieldMatrixPreservingVisitor<Fraction>
org.apache.commons.math3.linear.MatrixUtils.FractionMatrixConverter
private static class MatrixUtils.FractionMatrixConverter
Converter for FieldMatrix
/Fraction
.
Field Summary | |
---|---|
private double[][] |
data
Converted array. |
Constructor Summary | |
---|---|
MatrixUtils.FractionMatrixConverter()
Simple constructor. |
Method Summary | |
---|---|
(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,
Fraction value)
Visit one matrix entry. |
Methods inherited from class org.apache.commons.math3.linear.DefaultFieldMatrixPreservingVisitor |
---|
end |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double[][] data
Constructor Detail |
---|
public MatrixUtils.FractionMatrixConverter()
Method Detail |
---|
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<Fraction>
start
in class DefaultFieldMatrixPreservingVisitor<Fraction>
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, Fraction value)
visit
in interface FieldMatrixPreservingVisitor<Fraction>
visit
in class DefaultFieldMatrixPreservingVisitor<Fraction>
row
- row index of the entrycolumn
- column index of the entryvalue
- current value of the entryArray2DRowRealMatrix getConvertedMatrix()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |