|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.linear.FieldLUDecompositionImpl.Solver<T>
private static class FieldLUDecompositionImpl.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 static long |
serialVersionUID
Serializable version identifier. |
private boolean |
singular
Singularity indicator. |
Constructor Summary | |
---|---|
private |
FieldLUDecompositionImpl.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. |
T[] |
solve(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 static final long serialVersionUID
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 FieldLUDecompositionImpl.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 indicatorMethod Detail |
---|
public boolean isNonSingular()
isNonSingular
in interface FieldDecompositionSolver<T extends FieldElement<T>>
public T[] solve(T[] b) throws IllegalArgumentException, InvalidMatrixException
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
IllegalArgumentException
- if matrices dimensions don't match
InvalidMatrixException
- if decomposed matrix is singularpublic FieldVector<T> solve(FieldVector<T> b) throws IllegalArgumentException, InvalidMatrixException
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
IllegalArgumentException
- if matrices dimensions don't match
InvalidMatrixException
- if decomposed matrix is singularpublic ArrayFieldVector<T> solve(ArrayFieldVector<T> b) throws IllegalArgumentException, InvalidMatrixException
The A matrix is implicit here. It is
b
- right-hand side of the equation A × X = B
IllegalArgumentException
- if matrices dimensions don't match
InvalidMatrixException
- if decomposed matrix is singularpublic FieldMatrix<T> solve(FieldMatrix<T> b) throws IllegalArgumentException, InvalidMatrixException
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
IllegalArgumentException
- if matrices dimensions don't match
InvalidMatrixException
- if decomposed matrix is singularpublic FieldMatrix<T> getInverse() throws InvalidMatrixException
getInverse
in interface FieldDecompositionSolver<T extends FieldElement<T>>
InvalidMatrixException
- if decomposed matrix is singular
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |