|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.linear.FieldLUDecomposition.Solver<T>
private static class FieldLUDecomposition.Solver<T extends FieldElement<T>>
Specialized solver.
| Field Summary | |
|---|---|
private Field<T> |
field
Field to which the elements belong. |
private T[][] |
lu
Entries of LU decomposition. |
private int[] |
pivot
Pivot permutation associated with LU decomposition. |
private boolean |
singular
Singularity indicator. |
| Constructor Summary | |
|---|---|
private |
FieldLUDecomposition.Solver(Field<T> field,
T[][] lu,
int[] pivot,
boolean singular)
Build a solver from decomposed matrix. |
| Method Summary | |
|---|---|
FieldMatrix<T> |
getInverse()
Get the inverse (or pseudo-inverse) of the decomposed matrix. |
boolean |
isNonSingular()
Check if the decomposed matrix is non-singular. |
ArrayFieldVector<T> |
solve(ArrayFieldVector<T> b)
Solve the linear equation A × X = B. |
FieldMatrix<T> |
solve(FieldMatrix<T> b)
Solve the linear equation A × X = B for matrices A. |
FieldVector<T> |
solve(FieldVector<T> b)
Solve the linear equation A × X = B for matrices A. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Field<T extends FieldElement<T>> field
private final T extends FieldElement<T>[][] lu
private final int[] pivot
private final boolean singular
| Constructor Detail |
|---|
private FieldLUDecomposition.Solver(Field<T> field,
T[][] lu,
int[] pivot,
boolean singular)
field - field to which the matrix elements belonglu - entries of LU decompositionpivot - pivot permutation associated with LU decompositionsingular - singularity indicator| Method Detail |
|---|
public boolean isNonSingular()
isNonSingular in interface FieldDecompositionSolver<T extends FieldElement<T>>public FieldVector<T> solve(FieldVector<T> b)
The A matrix is implicit, it is provided by the underlying decomposition algorithm.
solve in interface FieldDecompositionSolver<T extends FieldElement<T>>b - right-hand side of the equation A × X = B
public ArrayFieldVector<T> solve(ArrayFieldVector<T> b)
The A matrix is implicit here. It is
b - right-hand side of the equation A × X = B
DimensionMismatchException - if the matrices dimensions do not match.
SingularMatrixException - if the decomposed matrix is singular.public FieldMatrix<T> solve(FieldMatrix<T> b)
The A matrix is implicit, it is provided by the underlying decomposition algorithm.
solve in interface FieldDecompositionSolver<T extends FieldElement<T>>b - right-hand side of the equation A × X = B
public FieldMatrix<T> getInverse()
getInverse in interface FieldDecompositionSolver<T extends FieldElement<T>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||