|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface MatrixDecomposition<N extends Number>
Some standard matrix names:
| Method Summary | |
|---|---|
boolean |
compute(Access2D<?> aMtrx)
|
boolean |
equals(MatrixDecomposition<N> aDecomp,
NumberContext aCntxt)
|
boolean |
equals(MatrixStore<N> aMtrx,
NumberContext aCntxt)
|
MatrixStore<N> |
getInverse()
The output must be a "right inverse" and a "generalised inverse". |
MatrixStore<N> |
getInverse(DecompositionStore<N> preallocated)
Implementiong this method is optional. |
boolean |
isComputed()
|
boolean |
isFullSize()
|
boolean |
isSolvable()
|
MatrixStore<N> |
reconstruct()
|
void |
reset()
Delete computed results, and resets attributes to default values |
MatrixStore<N> |
solve(MatrixStore<N> aRHS)
[A][X]=[B] or [this][return]=[aRHS] |
MatrixStore<N> |
solve(MatrixStore<N> aRHS,
DecompositionStore<N> preallocated)
Implementiong this method is optional. |
| Method Detail |
|---|
boolean compute(Access2D<?> aMtrx)
aMtrx - A matrix to decompose
boolean equals(MatrixDecomposition<N> aDecomp,
NumberContext aCntxt)
boolean equals(MatrixStore<N> aMtrx,
NumberContext aCntxt)
MatrixStore<N> getInverse()
BasicMatrix.invert()MatrixStore<N> getInverse(DecompositionStore<N> preallocated)
Implementiong this method is optional.
Exactly how a specific implementation makes use of preallocated
is not specified by this interface. It must be documented for each
implementation.
Should produce the same results as calling getInverse().
preallocated - Preallocated memory for the results, possibly some
intermediate results. You must assume this is modified, but you
cannot assume it will contain the full/final/correct solution.
boolean isComputed()
compute(Access2D),
isSolvable()boolean isFullSize()
boolean isSolvable()
solve(MatrixStore),
isComputed()MatrixStore<N> reconstruct()
void reset()
MatrixStore<N> solve(MatrixStore<N> aRHS)
MatrixStore<N> solve(MatrixStore<N> aRHS,
DecompositionStore<N> preallocated)
Implementiong this method is optional.
Exactly how a specific implementation makes use of preallocated
is not specified by this interface. It must be documented for each
implementation.
Should produce the same results as calling solve(MatrixStore).
aRHS - The Right Hand Side, wont be modfiedpreallocated - Preallocated memory for the results, possibly some
intermediate results. You must assume this is modified, but you
cannot assume it will contain the full/final/correct solution.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||