public class LUDecomposition
extends java.lang.Object
Constructor and Description |
---|
LUDecomposition(Matrix matrix)
Creates a new instance of LUDecomposition.
|
Modifier and Type | Method and Description |
---|---|
double |
getDeterminant()
Returns the determinant value of a invertible, non-singular, non-square,
matrix.
|
Matrix |
getL()
Returns the lower triangular matrix that is created by storing a
representative of each elementary row operation.
|
int[] |
getPivot()
Returns the pivot element of the matrix.
|
Matrix |
getU()
Returns the upper triangular matrix that resulted from reducing the
original matrix into row echelon form by way of elementary row
operations(excluding row interchange).
|
boolean |
isMatrixSingular()
Returns true if the matrix does not have a matrix inverse, its
determinant is 0.
|
Matrix |
solveForMatrix(Matrix B)
If the instance is A and the argument is B, solve for X in the expression
A*X = B.
|
public LUDecomposition(Matrix matrix)
matrix
- the NxN matrix to decompose.public boolean isMatrixSingular()
public double getDeterminant()
public Matrix getL()
public Matrix getU()
public int[] getPivot()
public Matrix solveForMatrix(Matrix B)
B
- the identity matrix B.Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.