public interface SolverTask<N extends Number> extends MatrixTask<N>
| Modifier and Type | Interface and Description |
|---|---|
static class |
SolverTask.Factory<N extends Number> |
| Modifier and Type | Field and Description |
|---|---|
static SolverTask.Factory<BigDecimal> |
BIG |
static SolverTask.Factory<ComplexNumber> |
COMPLEX |
static SolverTask.Factory<Double> |
PRIMITIVE |
static SolverTask.Factory<Quaternion> |
QUATERNION |
static SolverTask.Factory<RationalNumber> |
RATIONAL |
| Modifier and Type | Method and Description |
|---|---|
default PhysicalStore<N> |
preallocate(int numberOfEquations,
int numberOfVariables,
int numberOfSolutions) |
PhysicalStore<N> |
preallocate(Structure2D templateBody,
Structure2D templateRHS)
Will create a PhysicalStore instance suitable for use with
solve(Access2D, Access2D, PhysicalStore). |
default MatrixStore<N> |
solve(Access2D<?> body,
Access2D<?> rhs)
[A][X]=[B] or [body][return]=[rhs]
|
MatrixStore<N> |
solve(Access2D<?> body,
Access2D<?> rhs,
PhysicalStore<N> preallocated)
Exactly how (if at all) a specific implementation makes use of
preallocated is not
specified by this interface. |
static final SolverTask.Factory<BigDecimal> BIG
static final SolverTask.Factory<ComplexNumber> COMPLEX
static final SolverTask.Factory<Double> PRIMITIVE
static final SolverTask.Factory<Quaternion> QUATERNION
static final SolverTask.Factory<RationalNumber> RATIONAL
default PhysicalStore<N> preallocate(int numberOfEquations, int numberOfVariables, int numberOfSolutions)
PhysicalStore<N> preallocate(Structure2D templateBody, Structure2D templateRHS)
Will create a PhysicalStore instance suitable for use with
solve(Access2D, Access2D, PhysicalStore). The dimensions of the returned instance is not
specified by this interface - it is specified by the behaviour/requirements of each implementation.
When solving an equation system [A][X]=[B] ([mxn][nxb]=[mxb]) the preallocated memory/matrix will typically be either mxb or nxb.
templateBody - templateRHS - default MatrixStore<N> solve(Access2D<?> body, Access2D<?> rhs) throws RecoverableCondition
RecoverableConditionMatrixStore<N> solve(Access2D<?> body, Access2D<?> rhs, PhysicalStore<N> preallocated) throws RecoverableCondition
Exactly how (if at all) 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(Access2D, Access2D).
Use preallocate(Structure2D, Structure2D) to obtain a suitbale preallocated.
rhs - 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.RecoverableConditionCopyright © 2018 Optimatika. All rights reserved.