public class Linear extends Object
| Constructor and Description |
|---|
Linear() |
| Modifier and Type | Method and Description |
|---|---|
static AMatrix |
solve(AMatrix A,
AMatrix B)
A general linear system solver,
For a matrix A, returns a matrix whose each column is the
solution to the equation A.x = b, where b is the corresponding column
of B.
|
static AVector |
solve(AMatrix A,
AVector b)
A general linear system solver,
Returns the solution to the equation A.x = b, returns null if A is square and
has no unique solution.
|
static AMatrix |
solveLeastSquares(AMatrix A,
AMatrix B)
Returns the least squares solution to the equation A.X = B
Use this in the case of over-determined (more equations than unknowns) or
under-determined (more unknowns than equations)
|
static AVector |
solveLeastSquares(AMatrix A,
AVector b)
Returns the least squares solution to the equation A.x = b
Use this in the case of over-determined (more equations than unknowns) or
under-determined (more unknowns than equations)
|
public static AVector solveLeastSquares(AMatrix A, AVector b)
A - b - public static AMatrix solveLeastSquares(AMatrix A, AMatrix B)
A - B - public static AVector solve(AMatrix A, AVector b)
A - b - public static AMatrix solve(AMatrix A, AMatrix B)
A - B - Copyright © 2016. All rights reserved.