public class TridiagonalMatrix extends Object implements Matrix
| Constructor and Description |
|---|
TridiagonalMatrix(double[] a,
double[] b,
double[] c) |
| Modifier and Type | Method and Description |
|---|---|
int |
dimensions() |
boolean |
equals(Object obj) |
double[] |
getDiagonal() |
double[] |
getDiagonalData()
Direct access to Diagonal Data.
|
double |
getEntry(int... index)
Gets the entry for the indices.
|
double[] |
getLowerSubDiagonal() |
double[] |
getLowerSubDiagonalData()
Direct access to lower sub-Diagonal Data.
|
double[] |
getUpperSubDiagonal() |
double[] |
getUpperSubDiagonalData()
Direct access to upper sub-Diagonal Data.
|
int |
hashCode() |
int |
size() |
DoubleMatrix |
toDoubleMatrix() |
public TridiagonalMatrix(double[] a,
double[] b,
double[] c)
a - An array containing the diagonal values of the matrix, not nullb - An array containing the upper sub-diagonal values of the matrix, not null.
Its length must be one less than the length of the diagonal arrayc - An array containing the lower sub-diagonal values of the matrix, not null.
Its length must be one less than the length of the diagonal arraypublic double[] getDiagonalData()
public double[] getDiagonal()
public double[] getUpperSubDiagonalData()
public double[] getUpperSubDiagonal()
public double[] getLowerSubDiagonalData()
public double[] getLowerSubDiagonal()
public DoubleMatrix toDoubleMatrix()
DoubleMatrixpublic int dimensions()
dimensions in interface Matrixpublic double getEntry(int... index)
index - the indicesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.