public class DoubleMatrix extends Object
Constructor and Description |
---|
DoubleMatrix() |
DoubleMatrix(DoubleMatrix matrix) |
DoubleMatrix(int nColumns) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ArrayList<Double> column) |
void |
addLine(ArrayList<Double> line) |
void |
appendColumns(DoubleMatrix columns) |
void |
appendLines(DoubleMatrix lines) |
void |
columnPermutation(int column1,
int column2) |
boolean |
equals(DoubleMatrix anotherMatrix) |
ArrayList<Double> |
getColumn(int columnIndex) |
ArrayList<ArrayList<Double>> |
getColumns() |
double |
getDeterminant() |
static DoubleMatrix |
getIdentityMatrix(int n) |
ArrayList<Double> |
getLine(int lineIndex) |
ArrayList<ArrayList<Double>> |
getLines() |
int |
getNColumns() |
int |
getNLines() |
double |
getNonDiagonalScore()
Returns a score based on the non-diagonal values.
|
DoubleMatrix |
getSubMatrix(int lineStart,
int lineStop,
int columnStart,
int columnStop) |
double |
getTrace() |
Double |
getValueAt(int lineIndex,
int columnIndex)
Returns the value of the matrix at given indexes.
|
boolean |
isSquare() |
void |
linePermutation(int line1,
int line2) |
void |
setColumn(int columnIndex,
ArrayList<Double> column) |
void |
setLine(int lineIndex,
ArrayList<Double> line) |
void |
setValueAt(int lineIndex,
int columnIndex,
Double value) |
static DoubleMatrix |
transpose(DoubleMatrix matrix) |
public DoubleMatrix()
public DoubleMatrix(int nColumns)
public DoubleMatrix(DoubleMatrix matrix)
public int getNColumns()
public int getNLines()
public boolean isSquare()
public Double getValueAt(int lineIndex, int columnIndex)
lineIndex
- the line indexcolumnIndex
- the column indexpublic void setValueAt(int lineIndex, int columnIndex, Double value)
public static DoubleMatrix transpose(DoubleMatrix matrix)
public boolean equals(DoubleMatrix anotherMatrix)
public static DoubleMatrix getIdentityMatrix(int n)
public double getTrace()
public DoubleMatrix getSubMatrix(int lineStart, int lineStop, int columnStart, int columnStop)
public void appendColumns(DoubleMatrix columns)
public void appendLines(DoubleMatrix lines)
public double getDeterminant()
public double getNonDiagonalScore()
public void linePermutation(int line1, int line2)
public void columnPermutation(int column1, int column2)
Copyright © 2016. All rights reserved.