|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.matrix.linalg.LUDecompositionQuick
@Deprecated public class LUDecompositionQuick
Field Summary | |
---|---|
protected int[] |
work2
Deprecated. |
Constructor Summary | |
---|---|
LUDecompositionQuick()
Deprecated. Constructs and returns a new LU Decomposition object with default tolerance 1.0E-9 for singularity detection. |
|
LUDecompositionQuick(double tolerance)
Deprecated. Constructs and returns a new LU Decomposition object which uses the given tolerance for singularity detection; |
Method Summary | |
---|---|
void |
decompose(DoubleMatrix2D A)
Deprecated. Decomposes matrix A into L and U (in-place). |
void |
decompose(DoubleMatrix2D A,
int semiBandwidth)
Deprecated. Decomposes the banded and square matrix A into L and U (in-place). |
double |
det()
Deprecated. Returns the determinant, det(A). |
protected double[] |
getDoublePivot()
Deprecated. Returns pivot permutation vector as a one-dimensional double array |
DoubleMatrix2D |
getL()
Deprecated. Returns the lower triangular factor, L. |
DoubleMatrix2D |
getLU()
Deprecated. Returns a copy of the combined lower and upper triangular factor, LU. |
int[] |
getPivot()
Deprecated. Returns the pivot permutation vector (not a copy of it). |
DoubleMatrix2D |
getU()
Deprecated. Returns the upper triangular factor, U. |
boolean |
isNonsingular()
Deprecated. Returns whether the matrix is nonsingular (has an inverse). |
protected boolean |
isNonsingular(DoubleMatrix2D matrix)
Deprecated. Returns whether the matrix is nonsingular. |
protected static DoubleMatrix2D |
lowerTriangular(DoubleMatrix2D A)
Deprecated. Modifies the matrix to be a lower triangular matrix. |
protected int |
m()
Deprecated. |
protected int |
n()
Deprecated. |
void |
setLU(DoubleMatrix2D LU)
Deprecated. Sets the combined lower and upper triangular factor, LU. |
void |
solve(DoubleMatrix1D B)
Deprecated. Solves the system of equations A*X = B (in-place). |
void |
solve(DoubleMatrix2D B)
Deprecated. Solves the system of equations A*X = B (in-place). |
java.lang.String |
toString()
Deprecated. Returns a String with (propertyName, propertyValue) pairs. |
protected static DoubleMatrix2D |
upperTriangular(DoubleMatrix2D A)
Deprecated. Modifies the matrix to be an upper triangular matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient int[] work2
Constructor Detail |
---|
public LUDecompositionQuick()
public LUDecompositionQuick(double tolerance)
Method Detail |
---|
public void decompose(DoubleMatrix2D A)
A
- any matrix.public void decompose(DoubleMatrix2D A, int semiBandwidth)
decompose(DoubleMatrix2D)
.
semiBandwidth
- == 1 --> A is diagonal, == 2 --> A is tridiagonal.A
- any matrix.public double det()
java.lang.IllegalArgumentException
- if A.rows() != A.columns() (Matrix must be square).protected double[] getDoublePivot()
public DoubleMatrix2D getL()
public DoubleMatrix2D getLU()
public int[] getPivot()
public DoubleMatrix2D getU()
public boolean isNonsingular()
protected boolean isNonsingular(DoubleMatrix2D matrix)
protected static DoubleMatrix2D lowerTriangular(DoubleMatrix2D A)
Examples:
3 x 5 matrix: 9, 9, 9, 9, 9 9, 9, 9, 9, 9 9, 9, 9, 9, 9 | triang.Upper ==> | 3 x 5 matrix: 9, 9, 9, 9, 9 0, 9, 9, 9, 9 0, 0, 9, 9, 9 |
5 x 3 matrix: 9, 9, 9 9, 9, 9 9, 9, 9 9, 9, 9 9, 9, 9 | triang.Upper ==> | 5 x 3 matrix: 9, 9, 9 0, 9, 9 0, 0, 9 0, 0, 0 0, 0, 0 |
3 x 5 matrix: 9, 9, 9, 9, 9 9, 9, 9, 9, 9 9, 9, 9, 9, 9 | triang.Lower ==> | 3 x 5
matrix: 1, 0, 0, 0, 0 9, 1, 0, 0, 0 9, 9, 1, 0, 0 |
5 x 3
matrix: 9, 9, 9 9, 9, 9 9, 9, 9 9, 9, 9 9, 9, 9 | triang.Lower ==> | 5 x 3 matrix: 1, 0, 0 9, 1, 0 9, 9, 1 9, 9, 9 9, 9, 9 |
protected int m()
protected int n()
public void setLU(DoubleMatrix2D LU)
public void solve(DoubleMatrix1D B)
B
- A vector with B.size() == A.rows().
java.lang.IllegalArgumentException
- if B.size() != A.rows().
java.lang.IllegalArgumentException
- if A is singular, that is, if !isNonsingular().
java.lang.IllegalArgumentException
- if A.rows() < A.columns().public void solve(DoubleMatrix2D B)
B
- A matrix with as many rows as A and any number of columns.
java.lang.IllegalArgumentException
- if B.rows() != A.rows().
java.lang.IllegalArgumentException
- if A is singular, that is, if !isNonsingular().
java.lang.IllegalArgumentException
- if A.rows() < A.columns().public java.lang.String toString()
rank : 3 trace : 0
toString
in class java.lang.Object
protected static DoubleMatrix2D upperTriangular(DoubleMatrix2D A)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |