|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixMathImpl<T>
com.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixStorageImpl<DenseMatrix>
com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense.DenseMatrix
com.numericalmethod.suanshu.matrix.doubles.operation.Inverse
public class Inverse
For a square matrix A,
A-1,
if the inverse exists.
This equality holds true:
A.multiply(A.inverse()) == A.ONE()
There are multiple ways to compute the inverse of A.
They are,
| Field Summary | |
|---|---|
int |
dim
dimension of the square matrix |
double |
epsilon
a precision parameter: when a number |x| ≤ ε, it is considered 0 |
| Constructor Summary | |
|---|---|
Inverse(LowerTriangularMatrix L,
double epsilon)
Invert a lower triangular matrix. |
|
Inverse(Matrix A)
Construct a DenseMatrix that is the inverse of a DenseMatrix A. |
|
Inverse(Matrix A,
double epsilon)
Construct a DenseMatrix that is the inverse of a DenseMatrix A. |
|
Inverse(UpperTriangularMatrix U,
double epsilon)
Invert an upper triangular matrix. |
|
| Method Summary |
|---|
| Methods inherited from class com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense.DenseMatrix |
|---|
add, deepCopy, getColumn, getColumn, getMatrixData, getRow, getRow, getSample, minus, multiply, multiply, ONE, overwrite, scaled, t, toDense, ZERO |
| Methods inherited from class com.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixStorageImpl |
|---|
equals, get, hashCode, set, setMatrixData |
| Methods inherited from class com.numericalmethod.suanshu.matrix.doubles.matrixtype.MatrixMathImpl |
|---|
add, call, minus, multiply, nCols, nRows, opposite, setColumn, setColumn, setRow, setRow, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int dim
public final double epsilon
| Constructor Detail |
|---|
public Inverse(Matrix A,
double epsilon)
A.
A - a DenseMatrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0public Inverse(Matrix A)
A.
A - a DenseMatrix
public Inverse(UpperTriangularMatrix U,
double epsilon)
U - an upper triangular matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
public Inverse(LowerTriangularMatrix L,
double epsilon)
L - a lower triangular matrixepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||