public class LSProblem extends Object
Ax = b
Constructor and Description |
---|
LSProblem(Matrix A,
Vector b)
Constructs a system of linear equations Ax = b.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMatrix |
A()
Gets the homogeneous part, the coefficient matrix, of the linear system.
|
ImmutableVector |
b()
Gets the non-homogeneous part, the right-hand side vector, of the linear system.
|
Vector |
getInitialGuess()
Gets the initial guess of the solution for the problem.
|
Preconditioner |
getLeftPreconditioner()
Gets the left preconditioner.
|
int |
getMaxIteration()
Gets the specified maximum number of iterations.
|
Preconditioner |
getRightPreconditioner()
Gets the right preconditioner.
|
Tolerance |
getTolerance()
Gets the specified
Tolerance instance. |
int |
size()
Gets the number of variables in the linear system.
|
LSProblem |
withInitialGuess(Vector initialGuess)
Overrides the initial guess of the solution.
|
LSProblem |
withLeftPreconditioner(Preconditioner preconditioner)
Overrides the left preconditioner.
|
LSProblem |
withMaxIteration(int maxIteration)
Overrides the maximum count of iterations.
|
LSProblem |
withRightPreconditioner(Preconditioner preconditioner)
Overrides the right preconditioner.
|
LSProblem |
withTolerance(Tolerance tolerance)
Overrides the tolerance instance.
|
public ImmutableMatrix A()
public ImmutableVector b()
public int size()
public LSProblem withMaxIteration(int maxIteration)
maxIteration
- the maximum count of iterationspublic int getMaxIteration()
public LSProblem withTolerance(Tolerance tolerance)
tolerance
- the criteria which determines when the solution converges and the iteration
stopspublic Tolerance getTolerance()
Tolerance
instance.Tolerance
instancepublic LSProblem withInitialGuess(Vector initialGuess)
initialGuess
- the initial guess of the solutionpublic Vector getInitialGuess()
public LSProblem withLeftPreconditioner(Preconditioner preconditioner)
IdentityPreconditioner
.preconditioner
- the preconditionerpublic Preconditioner getLeftPreconditioner()
public LSProblem withRightPreconditioner(Preconditioner preconditioner)
IdentityPreconditioner
.preconditioner
- the preconditionerpublic Preconditioner getRightPreconditioner()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.